Uploaded image for project: 'Zanata'
  1. ZNTA-2100

Gettext "Language" header should separate language and country with underscore

    Details

    • Type: Bug
    • Status: Merged (View workflow)
    • Priority: unspecified
    • Resolution: Ready for Release
    • Affects Version/s: None
    • Fix Version/s: platform-4.3.1
    • Component/s: None
    • Labels:
      None
    • Tested Version/s:
      None

      Description

      I've noticed a strange issue whereby for Brazilian Portuguese, the "Language" field in the generated gettext file is: "Language: pt-BR\n"

      For other county-specific languages, such as Mexican Spanish, the "Language" field in the generated file is: "Language: es_MX\n"

      Polish (Poland) is: "Language: pl_PL\n"

      We are using android2po to convert between gettext and Android strings.xml (as the feature request to add Android support has been open for some time), and this issue is causing our process to break as it expects an underscore between language and country codes.

      Is there as reason pt-BR is different than others? We do not have any aliases set up, and setting one up ("pt_BR") does not resolve the issue.

      Using current release branch, v 4.2.2-SNAPSHOT.

        Attachments

          Activity

            People

            • Assignee:
              caplicekieran Kieran Caplice
              Reporter:
              caplicekieran Kieran Caplice
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: