summaryrefslogtreecommitdiffstats
path: root/kworldwatch/maps
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-14 15:26:41 +0200
committerSlávek Banko <[email protected]>2020-05-14 15:26:41 +0200
commit094853ca31a9dc5e619b0951953d4dc862a99e25 (patch)
tree1d5cf4fca876d27b913dbf3afe5a212a91b2b681 /kworldwatch/maps
parentcbaa57c4db0b5723b68ff5e719d8d965b7f34ec2 (diff)
downloadtdetoys-094853ca31a9dc5e619b0951953d4dc862a99e25.tar.gz
tdetoys-094853ca31a9dc5e619b0951953d4dc862a99e25.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kworldwatch/maps')
-rw-r--r--kworldwatch/maps/CMakeL10n.txt7
-rw-r--r--kworldwatch/maps/depths/CMakeLists.txt9
-rw-r--r--kworldwatch/maps/depths/depths.desktop61
-rw-r--r--kworldwatch/maps/flatworld/CMakeLists.txt10
-rw-r--r--kworldwatch/maps/flatworld/flatworld.desktop50
5 files changed, 23 insertions, 114 deletions
diff --git a/kworldwatch/maps/CMakeL10n.txt b/kworldwatch/maps/CMakeL10n.txt
new file mode 100644
index 0000000..df2cdc1
--- /dev/null
+++ b/kworldwatch/maps/CMakeL10n.txt
@@ -0,0 +1,7 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kworldwatch-maps/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/kworldwatch/maps/depths/CMakeLists.txt b/kworldwatch/maps/depths/CMakeLists.txt
index 44405bc..2d3d0c5 100644
--- a/kworldwatch/maps/depths/CMakeLists.txt
+++ b/kworldwatch/maps/depths/CMakeLists.txt
@@ -9,8 +9,15 @@
#
#################################################
-install( FILES depths.desktop 400.jpg 800.jpg
+install(
+ FILES
+ 400.jpg 800.jpg
DESTINATION
${DATA_INSTALL_DIR}/kworldclock/maps/depths
)
+tde_create_translated_desktop(
+ SOURCE depths.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kworldclock/maps/depths
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-maps
+)
diff --git a/kworldwatch/maps/depths/depths.desktop b/kworldwatch/maps/depths/depths.desktop
index 33a11a5..e93f038 100644
--- a/kworldwatch/maps/depths/depths.desktop
+++ b/kworldwatch/maps/depths/depths.desktop
@@ -1,64 +1,3 @@
[Theme]
Name=Surface Depth
-Name[af]=Oppervlakte Diepte
-Name[ar]=عمق السطح
-Name[az]=Səth Dərinliyi
-Name[be]=Глыбіня паверхні
-Name[bg]=Релеф на земната повърхност
-Name[bn]=পৃষ্ঠের গভীরতা
-Name[br]=Krogad en egor
-Name[ca]=Extensió de la superfície
-Name[cs]=Plocha do hloubky
-Name[cy]=Dyfnder Arwyneb
-Name[da]=Overfladedybde
-Name[de]=Oberflächenstruktur
-Name[el]=Βάθος επιφάνειας
-Name[eo]=Surfacprofundo
-Name[es]=Profundidad de superficie
-Name[et]=Pinnasügavus
-Name[eu]=Azalaren Sakona
-Name[fa]=عمق سطح
-Name[fi]=Pinnan syvyys
-Name[fr]=Relief
-Name[ga]=Doimhneacht an Dromchla
-Name[gl]=Profundidade da Superfície
-Name[he]=מעמקים
-Name[hi]=सतह गहराई
-Name[hr]=Površinska dubina
-Name[hu]=Felületmélység
-Name[is]=Yfirborðsdýpt
-Name[it]=Profondità superficie
-Name[ja]=表面の深さ
-Name[km]=ជម្រៅ​ផ្ទៃ
-Name[ko]=표면 깊이
-Name[lt]=Paviršiaus gylis
-Name[lv]=Virsmas dziļums
-Name[mk]=Длабочина на површина
-Name[mt]=Fond tal-wiċċ
-Name[nb]=Overflate-dybde
-Name[nds]=Böversiet-Deepde
-Name[ne]=धरातलिय गहिराइ
-Name[nl]=Oppervlaktediepte
-Name[nn]=Overflatedjupne
-Name[pl]=Głębokość powierzchni
-Name[pt]=Profundidade da Superfície
-Name[pt_BR]=Profundidade de superfície
-Name[ro]=Suprafaţă de adîncimi
-Name[ru]=Глубина поверхности
-Name[sk]=Hĺbka povrchu
-Name[sl]=Globina ploskve
-Name[sr]=Дубина рељефа
-Name[sr@Latn]=Dubina reljefa
-Name[sv]=Ytdjup
-Name[ta]= தள ஆழம்
-Name[tg]=Қаъри Сатҳ
-Name[th]=ความลึกพื้นผิว
-Name[tr]=Yüzey Derinliği
-Name[uk]=Глибина поверхні
-Name[ven]=Vhulapfu uya fhasi
-Name[wa]=Surface e relief
-Name[xh]=Ubunzulu Bomphezulu
-Name[zh_CN]=表面纵深
-Name[zh_TW]=表面深度
-Name[zu]=Ubunzulu Baphezulu
Theme=depths
diff --git a/kworldwatch/maps/flatworld/CMakeLists.txt b/kworldwatch/maps/flatworld/CMakeLists.txt
index 25085a9..0981b13 100644
--- a/kworldwatch/maps/flatworld/CMakeLists.txt
+++ b/kworldwatch/maps/flatworld/CMakeLists.txt
@@ -9,9 +9,15 @@
#
#################################################
-install( FILES flatworld.desktop 200.jpg 400.jpg
- 800.jpg 1200.jpg 1600.jpg
+install(
+ FILES
+ 200.jpg 400.jpg 800.jpg 1200.jpg 1600.jpg
DESTINATION
${DATA_INSTALL_DIR}/kworldclock/maps/flatworld
)
+tde_create_translated_desktop(
+ SOURCE flatworld.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kworldclock/maps/flatworld
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-maps
+)
diff --git a/kworldwatch/maps/flatworld/flatworld.desktop b/kworldwatch/maps/flatworld/flatworld.desktop
index 56ff332..70468c2 100644
--- a/kworldwatch/maps/flatworld/flatworld.desktop
+++ b/kworldwatch/maps/flatworld/flatworld.desktop
@@ -1,53 +1,3 @@
[Theme]
Name=Flat World
-Name[be]=Плоскі свет
-Name[bg]=Без релеф на земната повърхност
-Name[bn]=সমতল বিশ্ব
-Name[br]=Bed kompez
-Name[cs]=Plochý svět
-Name[cy]=Byd Gwastad
-Name[da]=Flad verden
-Name[de]=Flache Welt
-Name[el]=Επίπεδος κόσμος
-Name[eo]=Plana Mondo
-Name[es]=Mundo plano
-Name[et]=Lame maailm
-Name[eu]=Mundu zabal
-Name[fa]=جهان مسطح
-Name[fi]=Laakea maailma
-Name[fr]=Monde plat
-Name[ga]=Domhan Cothrom
-Name[gl]=Mundo Chao
-Name[he]=עולם שטוח
-Name[hr]=Pljosnati svijet
-Name[hu]=Lapos világ
-Name[is]=Flatur heimur
-Name[it]=Mondo piatto
-Name[ja]=平坦な世界図
-Name[km]=ពិភពលោក​សំប៉ែត
-Name[ko]=평평한 세계
-Name[lv]=Plakana pasaule
-Name[mk]=Рамен свет
-Name[mt]=Dinja Ċatta
-Name[nb]=Flat verden
-Name[nds]=Platte Welt
-Name[ne]=फराकिलो संसार
-Name[nl]=Vlakke wereld
-Name[pl]=Płaski świat
-Name[pt]=Mundo Plano
-Name[pt_BR]=Mundo Plano
-Name[ro]=Suprafaţă plată
-Name[ru]=Плоский мир
-Name[sk]=Plochý svet
-Name[sl]=Ploščati svet
-Name[sr]=Раван свет
-Name[sr@Latn]=Ravan svet
-Name[sv]=Platt värld
-Name[ta]=படிமான உலகம்
-Name[tg]=Ҷаҳони ҳамворӣ
-Name[tr]=Düz Dünya
-Name[uk]=Плоский світ
-Name[wa]=Plate Daegne
-Name[zh_CN]=平面世界
-Name[zh_TW]=平面世界
Theme=flatworld