1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +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>
<string>123</string>
<key>LprojLocale</key>
<string>pt</string>
<string>pt_BR</string>
<key>LprojRevisionLevel</key>
<string>1</string>
<key>LprojVersion</key>

View File

@ -1,7 +1,7 @@
#/bin/bash
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
mkdir -p $DIR
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>