Created attachment 823231 [details] "inf" in "Used <span> %(used)s </span> of <span> %(available)s </span>" Description of problem: String "inf" is unlocalized in Manage Compute Overview Version-Release number of selected component (if applicable): 4.0 How reproducible: 100% Steps to Reproduce: 1. Log in to Dashboard with Admin account. 2. Click "Settings" menu and select a language other than English. 3. In Admin => Projects, select one admin project and click "Modify Quota" from the "More" dropdown menu. 4. Change the value of Floating IPs to "-1" to set to infinity. 5. On the left side panel, click Project => Manage Compute => Overview Actual results: When the value of "available" (quota) in the "Used <span> %(used)s </span> of <span> %(available)s </span>" is set to infinity, it shows "inf" in the translated string, which may not be clear enough for non-English speaking users. Expected results: It should be translated, however merely replacing "inf" with corresponding translation does not work. Additional info: Screenshot attached
In the past, I have worked on a similar issue in RHEV, in which string "{0} out of unlimited MB" was separate from non-unlimited MB, and I was able to apply different translation. Would it be too complicated to separate a string with inf in the value from "Used <span> %(used)s </span> of <span> %(available)s </span>"? If it can be separated, for example, "Used <span> %(used)s </span> of inf", it can be translated into "上限無制限、xx 使用中" which makes sense. If translated "inf" is applied to the existing string, it will result in: 上限無制限個中xx個使用中 or 無限個中xx個使用中 Both translation are not adequate. (also the counter suffix "個" is likely to be removed in response to BZ#1026197) If required, I am able to consult the upstream ja-JP user group to find the best solution. Please let me know.
We don't know what value we will be getting back from the API, as far as I know it's not possible to offer different versions of the string based on the variable input. Most likely we will have: "Used <span> %(used)s </span> of <span> %(available)s </span>" where %(available)s will sometimes be "infinite"/"unlimited". Please, feel free to consult with the Japanese group to see if they have better ideas on how to handle it. I filed https://bugs.launchpad.net/horizon/+bug/1250945 to track this upstream.
I consulted with the ja-JP upstream user group and found that Motoki-san also agrees with the idea to separate this string into two (for inf and non-inf). However, we can also have a interim solution - pushing "inf" to translation and translate it in a way which makes better sense than the current string with unlocalized "inf" in it, although it is not the best solution. (for Japanese, it will be "上限なし")
Fix to change "inf" to a translatable "No Limit" committed upstream in Icehouse-1 (60f5cba0ef).
String not yet reflected in guides, so don't have to update.
This was merged during upstream Icehouse and should already be available in our packages.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0855.html