Closed
Bug 515733
Opened 16 years ago
Closed 16 years ago
[faceted search] split "Top 10 messages out of 400" differently for localization
Categories
(Thunderbird :: Search, defect)
Thunderbird
Search
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.0rc1
People
(Reporter: rimas, Assigned: asuth)
References
()
Details
(Whiteboard: [has l10n impact][ready to land])
Attachments
(1 file, 1 obsolete file)
|
6.70 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
Here's an excerpt from current glodaFacetView.properties :
Currently this phrase is defined as two strings in glodaFacetView.properties:
glodaFacetView.results.message.countLabel=Top #1 #2 out of #3
glodaFacetView.results.message.countLabelMessagePlurals=message;messages
where #2 and/or #4 in the first string is the appropriate form of the second.
The problem with this is that it may be insufficient and forces localizers to work around this insufficiency. We may need to localize e.g. two words around the number or so.
Because the sentence involves two numbers and it's most probably impossible for it to depend on both of them, I suggest to split it into two strings differently, like this:
firstPartId=Top #1 message ;Top #1 messages
secondPartId=out of #1;out of #1
groupingId=#1 #2
Here, firstPartId describes the first part of the sentence, and secondPartId describes the second, while groupingId allows to swap these parts.
Also, I'm not quite sure about that, but perhaps these parts should be joined without any spaces inbetween (to allow using other punctuation marks), as is showed in the example.
| Reporter | ||
Updated•16 years ago
|
OS: Linux → All
Hardware: x86 → All
Version: Trunk → unspecified
| Reporter | ||
Comment 1•16 years ago
|
||
sipaq asked me to explain more clearly what the problem is. :)
The problem is that in the phrase "Top 10 messages" some localizations may need to localize both words "Top" and "messages". This is impossible ATM.
| Reporter | ||
Comment 2•16 years ago
|
||
Uh, sorry for bugspam, but another potential problem in the current situation just hit me:
If I were to use both #2 and #4 arguments in Lithuanian translation, I would need to use different cases of the word "message", and that is currently impossible. And I'm sure that's the same in many other languages.
The suggested scheme of splitting the sentence into two parts solves this problem too.
Updated•16 years ago
|
Whiteboard: [has l10n impact]
Updated•16 years ago
|
Flags: blocking-thunderbird3+
| Assignee | ||
Comment 3•16 years ago
|
||
This patch does as Rimas proposes. Thank you for the suggestion on how to do this!
This is definitely not backwards compatible...
| Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 399930 [details] [diff] [review]
improve count label pluralization v1
ugh, I am seeing complaints from PluralForm.jsm. I am not crazy about PluralForm.jsm.
Attachment #399930 -
Attachment is obsolete: true
Attachment #399930 -
Flags: review?(bugzilla)
| Assignee | ||
Comment 5•16 years ago
|
||
This should probably be rc1 given the change after the freeze, etc.
Attachment #399933 -
Flags: review?(bugzilla)
Comment 6•16 years ago
|
||
I agree, we have two weeks after the b4 release for additional string changes before we freeze strings once and for all. This seems suitable for that period.
| Reporter | ||
Comment 7•16 years ago
|
||
Andrew, thanks for reacting so quickly. I hope other localizers are OK with this scheme.
Updated•16 years ago
|
Whiteboard: [has l10n impact] → [has l10n impact][needs review standard8]
Target Milestone: --- → Thunderbird 3.0rc1
Updated•16 years ago
|
Component: Toolbars and Tabs → Search
QA Contact: toolbars-tabs → search
Comment 8•16 years ago
|
||
Gerv pointed out in MDAT that we may want tweaks to the en-US at least. His suggestion:
"Top" and "out" are redundant. "1-10 of 28" is fine.
Comment 9•16 years ago
|
||
Comment on attachment 399933 [details] [diff] [review]
improve the pluralization but don't get fancy with the en-US strings
>+# LOCALIZATION NOTE(glodaFacetView.results.message.countLabel):
My only thought here is whether we should be using
# LOCALIZATION NOTE(glodaFacetView.results.message.countLabel.topMessages,
glodaFacetView.results.message.countLabel.outOf,
glodaFacetView.results.message.countLabel.grouping):
as it may be better for the existing automated tools. However, it is only a comment so can always be fixed up afterwards. So let's get this in, r=Standard8.
Attachment #399933 -
Flags: review?(bugzilla) → review+
Updated•16 years ago
|
Whiteboard: [has l10n impact][needs review standard8] → [has l10n impact][ready to land]
| Assignee | ||
Comment 10•16 years ago
|
||
pushed:
http://hg.mozilla.org/comm-central/rev/f416fec60513
No changes were made to the en-US string or comments. I think we can make the en-US change at any time, and I would like a ui-review sign-off by clarkbw, especially since I think there was some debate in various venues.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•