Closed
Bug 1794286
Opened 3 years ago
Closed 3 years ago
Trim plural parts when migrating properties plurals to FTL
Categories
(Localization Infrastructure and Tools :: Fluent Migration, enhancement)
Localization Infrastructure and Tools
Fluent Migration
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: flod, Assigned: eemeli)
Details
Attachments
(1 file)
A lot of locales misinterpret the semicolon in plurals, and put spaces around it. It would be great to trim the plural parts, since spaces before or after the string are not relevant.
For example, this string:
webrtcIndicator.sharingBrowserWithNTabs.menuitem = Compartiendo una pestaña con #1 pestaña; Compartiendo pestañas con #1 pestañas
results in:
webrtc-indicator-menuitem-sharing-browser-with-n-tabs =
.label =
{ $tabCount ->
[one] Compartiendo una pestaña con { $tabCount } pestaña
*[other] { " " }Compartiendo pestañas con { $tabCount } pestañas
}
Assignee | ||
Comment 1•3 years ago
|
||
Pushed by earo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fa5e65c21c8b
Trim plural variants in fluent.migrate PLURALS(). r=flod
Comment 3•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•