Closed
Bug 26050
Opened 25 years ago
Closed 25 years ago
editor.properties "ValidateNumberX" is hard to localise
Categories
(Core :: Internationalization: Localization, defect, P3)
Tracking
()
VERIFIED
FIXED
M14
People
(Reporter: kairo, Assigned: cmanske)
Details
(Whiteboard: [pdt+] checkin 2/9/00)
Doing l10n work (M13 de-AT), I saw that /chrome/editor/.../editor.properties is hard to localise in the following lines: ValidateNumber1=The number you entered ( ValidateNumber2=) is outside of allowed range.<br>Please enter a number between ValidateNumber3=and In German, the dialog should say "Die angegebene Zahl (ZZZ) ist au\u00DFerhalb des G\u00FCltigkeitsbereichs. Bitte geben Sie eine Zahl zwischen XXX und YYY an." So I'd need a "ValidateNumber4" which is not present yet.
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 2•25 years ago
|
||
Need fixed by beta. This is a very serious problem. When strings are concatenated like this, it makes translation into languages where the word order is different very difficult. In this case, a German-language translation is impossible. A better solution here would be to insert variable placeholders into the string, in a manner where we can move them around if the target langauge requires it. An example follows: Impossible to localize: ValidateNumber1=The number you entered ( ValidateNumber2=) is outside of allowed range.<br>Please enter a number between ValidateNumber3=and Localization-friendly: ValidateNumber=The number you entered (%num) is outside of allowed range.<br>Please enter a number between %lownum and %highnum We will also need similar fixes for the following concatenated lines in this file: 36 SaveFilePrompt=Save changes to 37 BeforeClosing=\nbefore closing 52 DuplicateAnchorNameError=already exists in this page.<br>Please enter a different name. Assigning to cmanske who seems to own this file.
Assignee | ||
Comment 3•25 years ago
|
||
Sorry about this, it is tricky to figure out how to do this correctly for all languages. The string substitution idea is good, so this would require that %num, %lownum, and %highnum would not be translated, correct? I could add a comment to note that, then we could replace those placeholders in the string in the C++ code. What's the urgency for this: beta1 or later?
Status: NEW → ASSIGNED
Assignee | ||
Updated•25 years ago
|
Target Milestone: M14
Updated•25 years ago
|
Whiteboard: [pdt+]
Assignee | ||
Comment 5•25 years ago
|
||
Ok, string substitution works well for all requests. Should be checked in today.
Assignee | ||
Updated•25 years ago
|
Whiteboard: [pdt+] → [pdt+] checkin 2/9/00
Assignee | ||
Comment 6•25 years ago
|
||
Checked in 2/9
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 7•25 years ago
|
||
Changed QA contact to amasri@netscape.com. Allan, please ask Ray or Fergus how to verify this.
QA Contact: teruko → amasri
Comment 8•25 years ago
|
||
Just had a look at the diffs to editor.properties v.1.14 and they look great. Where we once had concatenation we now how complete strings. My only uncertainty is whether we can change the order of the place-holders if necessary--we'll have to verify that. Meanwhile, amasri is taking a look at the appropriate UI at runtime.
Assignee | ||
Comment 9•25 years ago
|
||
Absolutely - you can move the placeholders anywhere within the entire string, they are simply replaced with the values indicated by their names.
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•