Bug 988164 - TMX export adminlang not a valid RFC3066 language code
Summary: TMX export adminlang not a valid RFC3066 language code
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Zanata
Classification: Retired
Component: Component-Logic
Version: development
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.0
Assignee: zanata-dev-internal
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 23:05 UTC by Damian Jansen
Modified: 2013-07-25 00:15 UTC (History)
1 user (show)

Fixed In Version:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-07-25 00:15:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Damian Jansen 2013-07-24 23:05:38 UTC
Description of problem:
The exported tmx file has, in the header, the language code "en"
TMX Spec 1.4b expects:
"A language code as described in the [RFC 3066]."
This spec indicates a code to be in the format xx_XX, e.g. en_US, but note that TMX uses a hyphen in place of an underscore.

Version-Release number of selected component (if applicable):
Dev

How reproducible:
Easy always

Steps to Reproduce:
1. Go to any project
2. Press the Export to TMX button
3. Save and open the resulting TMX xml file

Actual results:
<header ... adminlang="en" .../>

Expected results:
<header ... adminlang="en-US" .../>

Additional info:

Comment 1 Damian Jansen 2013-07-25 00:15:05 UTC
Missed the part in the specification that says "and a (possibly empty) series of subsequent subtags."
"en" is valid.


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