mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Create localization lproj directories on OS X
+ pkg dir structure cleanup
This commit is contained in:
parent
ab76521990
commit
f6c128fbf6
@ -28,9 +28,9 @@ build_script:
|
||||
md installer
|
||||
copy release\GPXSee.exe installer
|
||||
windeployqt --release installer\GPXSee.exe
|
||||
copy pkg\gpxsee64.nsi installer
|
||||
xcopy pkg\csv installer\csv /i
|
||||
xcopy pkg\maps installer\maps /i
|
||||
copy pkg\windows\gpxsee64.nsi installer
|
||||
xcopy pkg\common\csv installer\csv /i
|
||||
xcopy pkg\common\maps installer\maps /i
|
||||
xcopy lang\*.qm installer\translations\ /sy
|
||||
xcopy icons\symbols installer\symbols /i
|
||||
copy licence.txt installer
|
||||
|
26
gpxsee.pro
26
gpxsee.pro
@ -476,19 +476,21 @@ TRANSLATIONS = lang/gpxsee_en.ts \
|
||||
|
||||
macx {
|
||||
ICON = icons/app/gpxsee.icns
|
||||
QMAKE_INFO_PLIST = pkg/Info.plist
|
||||
QMAKE_INFO_PLIST = pkg/mac/Info.plist
|
||||
locale.path = Contents/Resources/translations
|
||||
locale.files = $$files(lang/*.qm)
|
||||
csv.path = Contents/Resources
|
||||
csv.files = pkg/csv
|
||||
csv.files = pkg/common/csv
|
||||
maps.path = Contents/Resources
|
||||
maps.files = pkg/maps
|
||||
maps.files = pkg/common/maps
|
||||
symbols.path = Contents/Resources/symbols
|
||||
symbols.files = $$files(icons/symbols/*.png)
|
||||
icons.path = Contents/Resources/icons
|
||||
icons.files = $$files(icons/formats/*.icns)
|
||||
lproj.path = Contents/Resources
|
||||
lproj.files = $$files(pkg/mac/lproj/*)
|
||||
|
||||
QMAKE_BUNDLE_DATA += locale maps symbols icons csv
|
||||
QMAKE_BUNDLE_DATA += locale maps symbols icons csv lproj
|
||||
}
|
||||
|
||||
win32 {
|
||||
@ -533,9 +535,9 @@ win32 {
|
||||
unix:!macx:!android {
|
||||
isEmpty(PREFIX):PREFIX = /usr/local
|
||||
|
||||
maps.files = $$files(pkg/maps/*)
|
||||
maps.files = $$files(pkg/common/maps/*)
|
||||
maps.path = $$PREFIX/share/gpxsee/maps
|
||||
csv.files = $$files(pkg/csv/*)
|
||||
csv.files = $$files(pkg/common/csv/*)
|
||||
csv.path = $$PREFIX/share/gpxsee/csv
|
||||
symbols.files = $$files(icons/symbols/*.png)
|
||||
symbols.path = $$PREFIX/share/gpxsee/symbols
|
||||
@ -543,12 +545,14 @@ unix:!macx:!android {
|
||||
locale.path = $$PREFIX/share/gpxsee/translations
|
||||
icon.files = $$files(icons/app/hicolor/*)
|
||||
icon.path = $$PREFIX/share/icons/hicolor
|
||||
desktop.files = pkg/gpxsee.desktop
|
||||
desktop.files = pkg/linux/gpxsee.desktop
|
||||
desktop.path = $$PREFIX/share/applications
|
||||
mime.files = pkg/gpxsee.xml
|
||||
mime.files = pkg/linux/gpxsee.xml
|
||||
mime.path = $$PREFIX/share/mime/packages
|
||||
appdata.files = pkg/linux/gpxsee.appdata.xml
|
||||
appdata.path = $$PREFIX/share/metainfo
|
||||
target.path = $$PREFIX/bin
|
||||
INSTALLS += target maps csv symbols locale icon desktop mime
|
||||
INSTALLS += target maps csv symbols locale icon desktop mime appdata
|
||||
}
|
||||
|
||||
android {
|
||||
@ -581,9 +585,9 @@ android {
|
||||
pkg/android/build.gradle \
|
||||
pkg/android/res/values/libs.xml
|
||||
|
||||
maps.files = $$files(pkg/maps/*)
|
||||
maps.files = $$files(pkg/common/maps/*)
|
||||
maps.path = /assets/maps
|
||||
csv.files = $$files(pkg/csv/*)
|
||||
csv.files = $$files(pkg/common/csv/*)
|
||||
csv.path = /assets/csv
|
||||
symbols.files = $$files(icons/symbols/*.png)
|
||||
symbols.path = /assets/symbols
|
||||
|
Can't render this file because it is too large.
|
14
pkg/mac/lproj/ca.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/ca.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>ca</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/cs.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/cs.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>cs</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/da.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/da.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>da</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/de.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/de.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>de</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/en.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/en.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>en</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/eo.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/eo.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>eo</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/es.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/es.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>es</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/fi.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/fi.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>fi</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/fr.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/fr.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>fr</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/hu.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/hu.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>hu</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/it.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/it.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>it</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/nb.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/nb.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>nb</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/pl.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/pl.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>pl</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/pt.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/pt.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>pt</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/ru.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/ru.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>ru</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/sv.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/sv.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>sv</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/tr.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/tr.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>tr</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/uk.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/uk.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>uk</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
14
pkg/mac/lproj/zh.lproj/locversion.plist
Normal file
14
pkg/mac/lproj/zh.lproj/locversion.plist
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>zh</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>
|
21
pkg/mac/scripts/lproj.sh
Executable file
21
pkg/mac/scripts/lproj.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#/bin/bash
|
||||
|
||||
for QM in ../../../lang/*.qm; do
|
||||
LANG=`echo $QM | cut -d'_' -f2 | cut -d. -f1`
|
||||
DIR=../lproj/$LANG.lproj
|
||||
mkdir -p $DIR
|
||||
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
|
||||
<plist version=\"1.0\">
|
||||
<dict>
|
||||
<key>LprojCompatibleVersion</key>
|
||||
<string>123</string>
|
||||
<key>LprojLocale</key>
|
||||
<string>$LANG</string>
|
||||
<key>LprojRevisionLevel</key>
|
||||
<string>1</string>
|
||||
<key>LprojVersion</key>
|
||||
<string>123</string>
|
||||
</dict>
|
||||
</plist>" > $DIR/locversion.plist
|
||||
done
|
Loading…
Reference in New Issue
Block a user