Closed
Bug 810233
Opened 12 years ago
Closed 12 years ago
Revenue value in State of Mozilla has a hardcoded $ sign in front of the numeral
Categories
(www.mozilla.org :: Pages & Content, defect)
www.mozilla.org
Pages & Content
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pascalc, Unassigned)
References
Details
The numeral revenue value stored in a variable was just added to the site and it is causing a problem for locales, : -CODE--------- {#L10N: These variables will be numerals that won't require translation #} {% trans revenue='$163', increase='33' %} Mozilla’s consolidated reported revenue (Mozilla Foundation and all subsidiaries) for 2011 was {{ revenue }} million, up approximately {{ increase }} percent from 2010. {% endtrans %} -------------- This results in English in this string: Mozilla’s consolidated reported revenue (Mozilla Foundation and all subsidiaries) for 2011 was $163 million, up approximately 33 percent from 2010. putting a $ sign in front of a number to indicate a currency is an American convention which actually means "163 million dollars". It doesn't work for other languages and even introduces a syntax problem for some (French, Chinese, Spanish...). I am not sure how to fix it easily, if it were on the php site, I would just remove the $ sign in the code and add a .lang file for en-US with a fixed string, this way it would fix the site for all locales and we wouldn't have to break all the locales already done by reectracting strings. But this solution doesn't seem to work on the python site. I'll talk to Craig when he wakes up about it to see how we could hotfix that, maybe by having a conditional for en-US in the template. CCing Peter and Bob who reported the bug
Reporter | ||
Comment 1•12 years ago
|
||
Craig and myself have removed the variables and updated the strings for all locales now that we have the final figures, marking fixed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•