View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014099 | mantisbt | localization | public | 2012-03-26 15:14 | 2017-02-14 17:23 |
Reporter | atrol | Assigned To | dregad | ||
Priority | normal | Severity | block | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0dev | ||||
Target Version | 1.3.0-beta.1 | ||||
Summary | 0014099: Implement new message format for master branch at translatewiki | ||||
Description | Commit [1] introduced a new message format and converted all language files. 1) Synchronize messages in translatewiki (new / removed messages in master) | ||||
Tags | No tags attached. | ||||
I've ditched this format in the 'next' branch and opted to use PHP's built-in gettext support. The Accept-Language header is used to correctly set the locale of the PHP instance so that first time/anonymous users can view the sign-up/login/etc pages in their native language. Relevant commits: https://github.com/mantisbt/mantisbt/commit/9f7894bfa3c15b809d924524061b80c5644b014f https://github.com/mantisbt/mantisbt/commit/0816817885992463b648f122ac5657dd654db57d https://github.com/mantisbt/mantisbt/commit/a50248866598592c210bcfe30c54cc08d69e6c47 I've talked to Siebrand (who co-runs the Translatewiki project) and he has advised that gettext is already implemented via another project that Translatewiki supports. gettext can be misused and we can't just dump work on TW. We need to ensure that all translations are:
Furthermore, it's up to us to develop the TW plugin. This is easier to achieve now that another project on TW already uses gettext. Given that gettext is an "industry standard" which most translation tools have supported for well over a decade, a lot of work has already been completed for us. |
|
@dhx, I'm not sure I understand the work involved here. However, if I'm understanding you correctly, here is what you are saying:
If that is correct, then I wonder if we should go with:
My preference is option 1. We should really avoid having half backed feature that act as blockers for future releases. Changing the localization format should include a story for integration with translatewiki, otherwise, it is not ready for checkin. In any case, are you working on this? I would really like to get 1.3.0rc1 out soon. |
|
Pinging @dhx |
|
Atrol, This format was added for performance [it's a lot quicker then the current setup, whilst also having the side benefit of having fewer global variables IIRC]. However, I've moved to trying to fix up the rest of dhx's gettext support - personally, I quite liked the new format in this commit, however the general consensus was to move to gettext when discussing was to move to gettext, as it's more of a standard. Therefore it would seem sensible to focus on whats needed around gettext then to improve this. Paul |
|
Reopened, |
|
This was resolved by reverting the language format back to the legacy 1.2.x style |
|
MantisBT: master 4728ff7c 2013-06-12 00:05 Damien Regad Details Diff |
Fix 0014099: reverting to old language strings format |
Affected Issues 0014099 |
|
mod - config_defaults_inc.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/Configuration.xml | Diff File | ||
mod - docbook/Admin_Guide/en-US/Customizing.xml | Diff File | ||
mod - docbook/Admin_Guide/en-US/Installation.xml | Diff File | ||
mod - lang/strings_afrikaans.txt | Diff File | ||
mod - lang/strings_amharic.txt | Diff File | ||
mod - lang/strings_arabic.txt | Diff File | ||
mod - lang/strings_arabicegyptianspoken.txt | Diff File | ||
mod - lang/strings_breton.txt | Diff File | ||
mod - lang/strings_bulgarian.txt | Diff File | ||
mod - lang/strings_catalan.txt | Diff File | ||
mod - lang/strings_chinese_simplified.txt | Diff File | ||
mod - lang/strings_chinese_traditional.txt | Diff File | ||
mod - lang/strings_croatian.txt | Diff File | ||
mod - lang/strings_czech.txt | Diff File | ||
mod - lang/strings_danish.txt | Diff File | ||
mod - lang/strings_dutch.txt | Diff File | ||
mod - lang/strings_english.txt | Diff File | ||
mod - lang/strings_estonian.txt | Diff File | ||
mod - lang/strings_finnish.txt | Diff File | ||
mod - lang/strings_french.txt | Diff File | ||
mod - lang/strings_galician.txt | Diff File | ||
mod - lang/strings_german.txt | Diff File | ||
mod - lang/strings_greek.txt | Diff File | ||
mod - lang/strings_hebrew.txt | Diff File | ||
mod - lang/strings_hungarian.txt | Diff File | ||
mod - lang/strings_icelandic.txt | Diff File | ||
mod - lang/strings_italian.txt | Diff File | ||
mod - lang/strings_japanese.txt | Diff File | ||
mod - lang/strings_korean.txt | Diff File | ||
mod - lang/strings_latvian.txt | Diff File | ||
mod - lang/strings_lithuanian.txt | Diff File | ||
mod - lang/strings_macedonian.txt | Diff File | ||
mod - lang/strings_norwegian_bokmal.txt | Diff File | ||
mod - lang/strings_norwegian_nynorsk.txt | Diff File | ||
mod - lang/strings_occitan.txt | Diff File | ||
mod - lang/strings_polish.txt | Diff File | ||
mod - lang/strings_portuguese_brazil.txt | Diff File | ||
mod - lang/strings_portuguese_standard.txt | Diff File | ||
mod - lang/strings_qqq.txt | Diff File | ||
mod - lang/strings_ripoarisch.txt | Diff File | ||
mod - lang/strings_romanian.txt | Diff File | ||
mod - lang/strings_russian.txt | Diff File | ||
mod - lang/strings_serbian.txt | Diff File | ||
mod - lang/strings_slovak.txt | Diff File | ||
mod - lang/strings_slovene.txt | Diff File | ||
mod - lang/strings_spanish.txt | Diff File | ||
mod - lang/strings_swedish.txt | Diff File | ||
mod - lang/strings_swissgerman.txt | Diff File | ||
mod - lang/strings_tagalog.txt | Diff File | ||
mod - lang/strings_turkish.txt | Diff File | ||
mod - lang/strings_ukrainian.txt | Diff File | ||
mod - lang/strings_urdu.txt | Diff File | ||
mod - lang/strings_volapuk.txt | Diff File | ||
MantisBT: master 6f267af2 2013-06-12 00:54 Damien Regad Details Diff |
Fix error_string() following revert to old string format Did not realize during testing of issue 0014099 that the error api had been modified as well... reverting that change too. |
Affected Issues 0014099 |
|
mod - core/error_api.php | Diff File | ||
MantisBT: master 71d31deb 2013-10-11 09:23 Details Diff |
Revert language api changes for array message format Cherry-pick of d679a60b136c0e2522c40c10bc436c9b5f5c47de, excluding changes to language files. Issue 0014099 |
Affected Issues 0014099 |
|
mod - core/lang_api.php | Diff File |