bugGNU Health - Bugs: bug #36554, Localized files are not correctly...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36554: Localized files are not correctly named

Submitter:  Hedayat Vatankhah <hedayat>
Submitted:  Mon 28 May 2012 12:03:52 PM UTC
   
 
Category:  localization Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  1.6.0
Module:  all Component:  None

Mon 28 May 2012 07:09:26 PM UTC, comment #2: 

Well, you are right. I don't know why, but I previously tried to add Persian language to Tryton using 'fa' code, but it gave me some error code. I thought that it is because Tryton doesn't accept 'fa' and I'm forced to use 'fa_IR'. But I tried again now, and I found that Tryton accepts 'fa', and GNU Health works fine. I still get some error messages, but it seems to be not related to 'fa'. I'll try to find the problem and report the bug to Tryton.
So, this bug is closed :P
Sorry

Thanks
Hedayat

Hedayat Vatankhah <hedayat>
Mon 28 May 2012 05:49:25 PM UTC, comment #1: 

Hello Hedayat

In GNU Health you can use neutral languages (language family, as in ISO 639). Tryton expects the code that you actually put in the language code that yoy specify in the Language code in the localization section.

So, you can either use  the language code ("en" for neutral english, or "es" for neutral Spanish ) or the language code (lowercase) followed by the country code in capital letter (so es_ES for Spanish from Spain).

I guess something similar can apply for Farsi. "fa" for Persian in general, and fa_IR for Farsi for Iran in particular.

What you have to make sure that the code that you put to the language file and in the _tryton_.py matches the one in the specification ( Administration -> Localization -> Languages ).

Let us know if this helps.

Cheers

Luis Falcon <meanmicio>
Group administrator
Mon 28 May 2012 12:03:52 PM UTC, original submission:  

In GNU Health, localized files for some languages are not correctly named, and so they won't be actually used. For example, Persian files are named "fa.po" in GNU Health, while Tryton expects full language code, fa_IR.po in this case. Therefore, it seems that all Persian .po files should be renamed to fa_IR.po rather than fa.po. The same thing is probably true for it.po and el.po.


Hedayat Vatankhah <hedayat>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by hedayat (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-05-28 meanmicio StatusNeed Info None
        Open/ClosedOpen Closed
    2012-05-28 meanmicio StatusNone Need Info
        ReleaseNone 1.6.0

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code