[zanata-bugs] [Bug 730237] User story: As a project maintainer I would like to simplify locale mapping so that I can migrate to Zanata easily

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 15 02:53:43 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=730237

Sean Flanigan <sflaniga at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |Improvement, UserStory
                 CC|                            |sflaniga at redhat.com
            Summary|RFE: make zanata.xml        |User story: As a project
                   |comfortable with gettext by |maintainer I would like to
                   |default                     |simplify locale mapping so
                   |                            |that I can migrate to
                   |                            |Zanata easily

--- Comment #1 from Sean Flanigan <sflaniga at redhat.com> 2011-08-14 22:53:42 EDT ---
If I understand correctly, this is about a mismatch between the server-side
locales (eu, bn-BD, es-ES, etc) and the client-side .po files (eu_ES, bn, es,
etc).  

At present, the only mechanism for handling this mismatch is to edit zanata.xml
on the client to provide mappings, eg:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://zanata.org/namespace/config/">
    <url>http://localhost:8080/zanata/</url> 
    <project>sample-project</project> 
    <project-version>1.1</project-version>
    <locales>
        <locale map-from="eu_ES">eu</locale>
        <locale map-from="bn">bn-BD</locale>
        <locale map-from="es">es-ES</locale>
        <locale map-from="de">de-DE</locale>
        <locale map-from="sr">sr-Cyrl</locale>
        <locale map-from="zh_TW">zh-Hant-TW</locale>
        <locale map-from="zh_CN">zh-Hans-CN</locale>
        <locale map-from="ta">ta-IN</locale>
        <locale map-from="pt">pt-PT</locale>
        <locale map-from="sr at latin">sr-Latn</locale>
    </locales>
</config>

This works, but it is fairly painful, considering it may have to be done once
for each project.  (It would probably help if we at least provided some sample
mappings as a comment when generating zanata.xml)

We should consider overhauling the way we map client-side locales to
server-side locales, perhaps by moving it to the server, or possibly we could
do away with mapping and implement some sort of intelligent locale grouping
instead.  Such a  grouping would need to handle language teams and also
translation statistics.  

That's just a couple of ideas, we should consider a lot more.  And we should
try to find an easier way to reduce the problem in the meantime.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the zanata-bugs mailing list