aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorThierry Crozat2016-11-08 02:01:30 +0000
committerThierry Crozat2016-11-08 02:21:16 +0000
commit729264f11608a953cf875e17deb0729d659e9846 (patch)
tree77b1d6fef764c7037d30a1c089bad7af1e707aef /po
parent015cf46cb01d9d4bb19028b49af57b34ae9ed2d8 (diff)
downloadscummvm-rg350-729264f11608a953cf875e17deb0729d659e9846.tar.gz
scummvm-rg350-729264f11608a953cf875e17deb0729d659e9846.tar.bz2
scummvm-rg350-729264f11608a953cf875e17deb0729d659e9846.zip
I18N: Read language name preferably from custom 'X-Language-name' header
We have been abusing the 'Language' field to store the language name that appears in the GUI for a translation. But this field is officially supposed to store the language code, and most tools that edit po file set it automatically. This has caused the language being changed by mistake in the paste. There is a provision for custom fields with a name starting with 'X-' though. So Now, if defined, it will use the custom 'X-Language-name' field, and fall back to 'Language' in case that custom field is not defined. This should prevent the language being lost when not careful while editing the translation.
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions