Red Hat Bugzilla – Bug 988164
TMX export adminlang not a valid RFC3066 language code
Last modified: 2013-07-24 20:15:05 EDT
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):
Steps to Reproduce:
1. Go to any project
2. Press the Export to TMX button
3. Save and open the resulting TMX xml file
<header ... adminlang="en" .../>
<header ... adminlang="en-US" .../>
Missed the part in the specification that says "and a (possibly empty) series of subsequent subtags."
"en" is valid.