Bug 1029719 - [ALL_LANG] Project -> Manage Compute -> Overview: Unlocalized string "inf"
Summary: [ALL_LANG] Project -> Manage Compute -> Overview: Unlocalized string "inf"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Upstream M1
: 5.0 (RHEL 7)
Assignee: Julie Pichon
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 01:17 UTC by Yuko Katabami
Modified: 2015-02-15 22:02 UTC (History)
9 users (show)

Fixed In Version: python-django-horizon-2014.1-4.el7ost
Doc Type: Bug Fix
Doc Text:
Previously, unlimited quotas were represented in the code as a float ('inf') parameter. As a result, 'inf' was directly displayed in the strings related to the quotas on the Project overview page. This value is not translatable and caused issues in other languages. With this update, 'inf' has been replaced by 'No Limit' and marked as translatable. The Overview now displays 'No Limit' and can be translated to other locales.
Clone Of:
Environment:
Last Closed: 2014-07-08 15:42:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
"inf" in "Used <span> %(used)s </span> of <span> %(available)s </span>" (161.29 KB, image/png)
2013-11-13 01:17 UTC, Yuko Katabami
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1250945 0 None None None Never
OpenStack gerrit 56348 0 None None None Never
Red Hat Product Errata RHEA-2014:0855 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement - Dashboard 2014-07-08 19:33:24 UTC

Description Yuko Katabami 2013-11-13 01:17:06 UTC
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

Comment 2 Yuko Katabami 2013-11-13 01:33:20 UTC
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.

Comment 3 Julie Pichon 2013-11-13 16:57:23 UTC
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.

Comment 4 Yuko Katabami 2013-11-17 22:39:11 UTC
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 "上限なし")

Comment 5 Julie Pichon 2014-01-21 16:39:06 UTC
Fix to change "inf" to a translatable "No Limit" committed upstream in Icehouse-1 (60f5cba0ef).

Comment 6 Summer Long 2014-02-03 23:42:54 UTC
String not yet reflected in guides, so don't have to update.

Comment 7 Julie Pichon 2014-05-27 09:47:42 UTC
This was merged during upstream Icehouse and should already be available in our packages.

Comment 11 errata-xmlrpc 2014-07-08 15:42:50 UTC
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


Note You need to log in before you can comment on or make changes to this bug.