1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Properly handle locales with sub-languages

This commit is contained in:
Martin Tůma 2023-01-24 08:33:48 +01:00
parent b43412b135
commit 1afe74242a
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<key>LprojCompatibleVersion</key> <key>LprojCompatibleVersion</key>
<string>123</string> <string>123</string>
<key>LprojLocale</key> <key>LprojLocale</key>
<string>pt</string> <string>pt_BR</string>
<key>LprojRevisionLevel</key> <key>LprojRevisionLevel</key>
<string>1</string> <string>1</string>
<key>LprojVersion</key> <key>LprojVersion</key>

View File

@ -1,7 +1,7 @@
#/bin/bash #/bin/bash
for QM in ../../../lang/*.qm; do for QM in ../../../lang/*.qm; do
LANG=`echo $QM | cut -d'_' -f2 | cut -d. -f1` LANG=`echo $QM | sed s/.\*gpxsee_// | cut -d. -f1`
DIR=../lproj/$LANG.lproj DIR=../lproj/$LANG.lproj
mkdir -p $DIR mkdir -p $DIR
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>