Closed Bug 128717 Opened 24 years ago Closed 14 years ago

Use po file format for translations

Categories

(Core :: Internationalization: Localization, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jdahlin, Unassigned)

Details

(Keywords: intl)

Mozilla's translation system is scary for translators. Most translators (in the unix world) are used to gettext. I know gettext can't handle xml files at the moment, but intltool (used by the gnome project) can.
Is this referring to the .properties files? Or the DTD files? Is this a request to have a completely different setup for localizing Mozilla?
Well, not completetly, i'm quite sure parts of the current setup can be used. I just think it's too hard to learn the whole translation system, and it has a few flaws. From a translators point of view, the current things should be fixed: * All translatable strings should be in the same file. * Only need to translate the same string once * Get the original string next to the translated one, eg: msgid "A string that should be translated" msgstr "(translated string)" I'm not sure if it requires gettext, but i'll probably be better to use an existing program than writing a new one.
> * All translatable strings should be in the same file. Not at all, since there are multiple components involved which may not all be installed (browser, editor, irc client, js debugger, inspector, mailnews, etc) > * Only need to translate the same string once Only applies if the string actually means the same thing. Very often places that use the same string in one language will need different strings in other languages. > * Get the original string next to the translated one, eg: That could be useful, yes. All the files in question support comments. you left one out: * Needs to work identically on Mac, Windows, and Unix.
Also fuzzy-matching of new strings that match similar already translated strings is useful, and fuzzy-matching of strings that have been changed and need manual attention.
> > * All translatable strings should be in the same file. > > Not at all, since there are multiple components involved which may not all be > installed (browser, editor, irc client, js debugger, inspector, mailnews, > etc) The question of what files and components are installed is probably a very different one from what source files and po files need be in the source tree. > > * Only need to translate the same string once > > Only applies if the string actually means the same thing. Very often places > that use the same string in one language will need different strings in > other languages. In the majority of cases, this is not true. The translation system used should optimize for the common case and not require the translator to translate the very same thing over and over. That's something that usually takes all the fun out of translating, and makes it more of an annoyance than fun. The problem of the few cases where different translations are needed can be solved by added special keywords to these messages, intltool has a feature that supports this. > > * Get the original string next to the translated one, eg: > > That could be useful, yes. All the files in question support comments. With gettext the original text is mandatory and an integral and automated part of the translation format, and not something that every programmer has to add (and remember to add) manually. > you left one out: > > * Needs to work identically on Mac, Windows, and Unix. This is an interesting problem, but it is not unsolvable. One of many solution could be to use po format but not gettext directly, but extract translations from po format into whatever format is best suited for the platform in question.
->l10n
Assignee: yokoyama → rchen
Component: Internationalization → Localization
Kasumi-san, could you plaese look into this bug? Thank you.
Keywords: intl
QA Contact: ruixu → kasumi
Can someone confirm it then ?
give this to tao to handle the communication issue.
Assignee: rchen → tao
There are two parts of this: 1. how localizable resources are organized: we request most commonly used modules to put localizable resources into en-US.jar. Others like platform-specific or optional components are in their own jar files. 2. what localization/leveraging tools you use: a good localization tool addresses most of your concerns. Lots of the Mozilla Localization Project contributors (http://www.mozilla.org/projects/l10n/mlp_status.html#contrib) use MozillaTranslator (http://www.mozillatranslator.org/).
Assignee: tao → dbragg
>1. how localizable resources are organized: we request most commonly used > modules to put localizable resources into en-US.jar. Others like > platform-specific or optional components are in their own jar files. This part is fully understandable. For various reasons it is useful and good practice for very large software projects to split translation into multiple catalogs for various parts. > 2. what localization/leveraging tools you use: a good localization tool > addresses most of your concerns. Lots of the Mozilla Localization > Project contributors > (http://www.mozilla.org/projects/l10n/mlp_status.html#contrib) > use MozillaTranslator (http://www.mozillatranslator.org/). From your response, it seems it does not adress all of them and I remain mystified why the po format wasn't chosen for translations. This would make use of a lot of already existing and heavily tested software translation tools (editors, translation memories, validators etc.) possible and make the translation effort of Mozilla a lot more painless for the majority of free software translators, since po format based tools are what they already use.
A lot of very good points were raised here. I'm not sure exactly what the problem is though. Mozilla is an open source project therefore anyone can use or create any tools they prefer. They range from a translation of the raw files by hand to the Mozilla translation tool Tao mentioned to something inbetween. There was no tool "chosen" for translation as such. The strings to be translated are all in clear text and as such all translators are free to choose the best mehtod for them. If someone comes up with a new method and wants to share it, I'm sure everyone will welcome those efforts. Such is the case with the Mozilla tool. Is this bug intended to suggest a different architecture than xul/js/dtd/properties for Mozilla? If so, it's much larger than a translation tool issue. If instead it's simply a forum for translation tool discussion I'd suggest the Mozilla 110n newsgroup.
> Is this bug intended to suggest a different architecture than > xul/js/dtd/properties for Mozilla? If so, it's much larger than a translation > tool issue. If instead it's simply a forum for translation tool discussion I'd > suggest the Mozilla 110n newsgroup. This bug is intended to suggest that gettext (with tools) should be used instead of the current and/or modify the current architecture to make it easier for free software translators to translate mozilla.
The unix style, gettext(), approach was opted out in the design phase. Please see http://www.mozilla.org/projects/l10n/xul-l10n.html#pro2 for details.
I cannot read that page fully because it renders weird and off-window in that part , at least in the copy of mozilla rc1.0 I use here. But using po format does not imply using gettext, so I still don't understand why a nonstandard format was chosen.
>I cannot read that page fully because it renders weird and off-window in that >part , at least in the copy of mozilla rc1.0 I use here. > There were a few errant html tags in the page; I just updated it. Please give it an hour for server to update the page. >But using po format does not imply using gettext, so I still don't understand >why a nonstandard format was chosen. DTD and property files are standard format. The former is an external doctype subset of XML, the latter is comforming to Java's property file format. Both are portable across platforms (OSes). The po format is primary UNIX style. (Correct me if I am wrong.)
Sorry if I was unclear; by "non-standard" I meant that it isn't what's used elsewhere in the free software world. Po format is primarily used on unix but that's understandable since the platform is used by most free software translators, since free software has traditionally been used on unix-like systems. But that's irrelevant really since the question of using po format or not has or should have nothing to do with platform -- it's just a text file format.
> The po format is primary UNIX style. (Correct me if I am wrong.) No, there are very good PO tools for several platforms, supporting f.i. translation memory.
Confirming; updating summary to reflect discussion.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: The translation system is scary → Use po file format for translations
QA Contact: kasumi → marina
Assignee: dbragg → nobody
QA Contact: marina → localization
Given that the last comment was made exactly 9 years ago today and the l10n landscape has changed drastically since this bug was filed, I'm going to guess that this is never going to happen and suggest resolving it as WONTFIX.
Whiteboard: [CLOSEME WONTFIX 2012-01-08]
This is definitely WONTFIX. The gettext ecosystem lacks an important feature, the difference between a string that's properly localized as the same as in en-US, and a string that's not localized.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Whiteboard: [CLOSEME WONTFIX 2012-01-08]
You need to log in before you can comment on or make changes to this bug.