[anaconda/blivet][master/rhel7] Fix size translations.

David Shea dshea at redhat.com
Wed Jan 15 22:41:48 UTC 2014


On 01/15/2014 05:34 PM, David Shea wrote:
> So: here's what I've gathered from talking to the i18n team:
>
>   - Everyone knows what a MB is. Inputting sizes with unlocalized units is
>     perfectly fine and expected.
>   - It'd still be nice for languages not using the Latin alphabet to be able
>     to transliterate units.
>
> So basically take input in English, output localized. To complicate that,
> though, the size field on the custom partitioning spoke[1] is both input and
> display, and it'd be kind of silly to make someone wanting to change that have
> to remove the localized unit and input an English one, only to see the
> localized unit return when they hit update.
>
> What I have done with these patches is remove en_spec from Size since it turns
> out that was not a very good idea, and accept spec= strings in both English and
> localized forms. Additionally, fix some problems that showed up trying to
> install in Telugu related to what is and is not a letter.
>
>
> [1] The one on the right-hand side in
>      http://dshea.fedorapeople.org/storage_i18n/kk_size_display.jpg, with
>      500 <localized-version-of-MB> in it.
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches

One more thing: I've asked whether the way we're doing the translations 
(translating the M and B for MB separately, concatenating the result) is 
problematic or not, and I am still waiting on an answer. If they are a 
problem, another patch will follow for that, but even if not I'd like to 
add a bunch of translator comments to blivet/size.py to indicate just 
what we're asking for when we request a translation for "B" or "G" or 
whatever.


More information about the anaconda-patches mailing list