summaryrefslogtreecommitdiffstats
path: root/umbrello
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-16 18:30:12 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-17 02:50:29 +0200
commit7fa2dd79a4f7711a65b45724448c1529dfb94e9f (patch)
tree0192394f73f297cd56aa972df31bf8bfc07a71d3 /umbrello
parent29e1ae5e34974950ff7965b1522db70b4ff273dc (diff)
downloadtdesdk-7fa2dd79a4f7711a65b45724448c1529dfb94e9f.tar.gz
tdesdk-7fa2dd79a4f7711a65b45724448c1529dfb94e9f.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 <slavek.banko@axis.cz>
Diffstat (limited to 'umbrello')
-rw-r--r--umbrello/umbrello/CMakeL10n.txt6
-rw-r--r--umbrello/umbrello/CMakeLists.txt14
-rw-r--r--umbrello/umbrello/umbrello.desktop52
-rw-r--r--umbrello/umbrello/x-umbrello.desktop49
4 files changed, 24 insertions, 97 deletions
diff --git a/umbrello/umbrello/CMakeL10n.txt b/umbrello/umbrello/CMakeL10n.txt
index cbfeeb71..f7b2da6e 100644
--- a/umbrello/umbrello/CMakeL10n.txt
+++ b/umbrello/umbrello/CMakeL10n.txt
@@ -4,3 +4,9 @@ tde_l10n_create_template(
CATALOG "umbrello"
SOURCES "." "tips"
)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/umbrello-desktops/"
+ SOURCES *.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/umbrello/umbrello/CMakeLists.txt b/umbrello/umbrello/CMakeLists.txt
index 7329dec6..4e3aa5cd 100644
--- a/umbrello/umbrello/CMakeLists.txt
+++ b/umbrello/umbrello/CMakeLists.txt
@@ -35,9 +35,19 @@ link_directories(
##### other data ################################
tde_install_icons( )
-install( FILES x-umbrello.desktop DESTINATION ${MIME_INSTALL_DIR}/application )
+
+tde_create_translated_desktop(
+ SOURCE x-umbrello.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR umbrello-desktops
+)
+
install( FILES tips umbrelloui.rc DESTINATION ${DATA_INSTALL_DIR}/umbrello )
-install( FILES umbrello.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+tde_create_translated_desktop(
+ SOURCE umbrello.desktop
+ PO_DIR umbrello-desktops
+)
##### umbrello (executable) #####################
diff --git a/umbrello/umbrello/umbrello.desktop b/umbrello/umbrello/umbrello.desktop
index ce03ad20..ac7ae244 100644
--- a/umbrello/umbrello/umbrello.desktop
+++ b/umbrello/umbrello/umbrello.desktop
@@ -1,56 +1,12 @@
[Desktop Entry]
+Name=Umbrello
+
+GenericName=UML Modeller
+
Type=Application
Exec=umbrello -caption "%c" %i %m
Icon=umbrello
X-DocPath=umbrello/index.html
Terminal=false
-Name=Umbrello
-Name[hi]=अम्बरैलो
-Name[ne]=अम्ब्रेलो
-Name[pa]=ਉਮਬਰਿੱਲਓ
-Name[ta]= அம்ரல்லோ
-GenericName=UML Modeller
-GenericName[bs]=UML modeler
-GenericName[ca]=Modelador UML
-GenericName[cs]=UML modelář
-GenericName[cy]=Modelydd UML
-GenericName[da]=UML Modellering
-GenericName[de]=UML-Modellierer
-GenericName[el]=Μοντελοποιητής UML
-GenericName[eo]=UML-Modelilo
-GenericName[es]=Modelador de UML
-GenericName[et]=UML-i modelleerimise rakendus
-GenericName[eu]=UML modelatzailea
-GenericName[fa]=مدل‌ساز UML
-GenericName[fi]=UML-mallintaja
-GenericName[fr]=Modeleur UML
-GenericName[ga]=Múnlóir UML
-GenericName[gl]=Modelador de UML
-GenericName[hi]=यूएमएल मॉडलर
-GenericName[hu]=UML-modellező
-GenericName[it]=Modellatore UML
-GenericName[ja]=UML モデラー
-GenericName[ka]=UML მოდელერი
-GenericName[kk]=UML үлгілегіші
-GenericName[ms]=Pemodel UML
-GenericName[nb]=UML-modelleringsprogram
-GenericName[nds]=UML-Modellmaker
-GenericName[ne]=यूएमएल मोडेलर
-GenericName[nl]=UML-modeller
-GenericName[nn]=UML-modelleringsprogram
-GenericName[pl]=Program do modelowania UML
-GenericName[pt]=Modelador de UML
-GenericName[pt_BR]=Modelador UML
-GenericName[ru]=Средство UML моделирования
-GenericName[sk]=Modelár UML
-GenericName[sl]=Mofdelirnik UML
-GenericName[sr]=UML моделар
-GenericName[sr@Latn]=UML modelar
-GenericName[sv]=UML-modellering
-GenericName[ta]=UML மோடெல்லார்
-GenericName[tg]=Воситаи UML моделкунонӣ
-GenericName[tr]=UML Modelleyici
-GenericName[uk]=Засіб моделювання UML
-GenericName[zh_CN]=UML 建模工具
MimeType=application/x-uml;
Categories=Qt;TDE;Development;
diff --git a/umbrello/umbrello/x-umbrello.desktop b/umbrello/umbrello/x-umbrello.desktop
index d8aaeb50..cf49d16e 100644
--- a/umbrello/umbrello/x-umbrello.desktop
+++ b/umbrello/umbrello/x-umbrello.desktop
@@ -1,53 +1,8 @@
[Desktop Entry]
+Comment=Umbrello UML Modeller File
+
Type=MimeType
MimeType=application/x-uml
Icon=umbrellofile
DefaultApp=umbrello
Patterns=*.xmi;*.XMI;*.xmi.tgz;*.xmi.tar.bz2;
-Comment=Umbrello UML Modeller File
-Comment[bg]=Файл Umbrello UML Modeller
-Comment[bs]=Umbrello UML modeler datoteka
-Comment[ca]=Fitxer de model UML
-Comment[cs]=Soubor UML modeláře Umbrello
-Comment[cy]=Ffeil Modelydd UML Umbrello
-Comment[da]=Umbrello UML-fil
-Comment[de]=Umbrello-Datei
-Comment[el]=Αρχείο μοντελοποιητή UML Umbrello
-Comment[eo]=Dosiero de Umbrello UML-Modelilo
-Comment[es]=Archivo del modeladore UML Umbrello
-Comment[et]=Umbrello UML-fail
-Comment[eu]=Umbrello UML modelatzaile fitxategia
-Comment[fa]=پروندۀ مدل‌ساز Umbrello UML
-Comment[fi]=Umbrello UML -mallinnustiedosto
-Comment[fr]=Fichier du modeleur UML Umbrello
-Comment[ga]=Comhad le haghaidh an Mhúnlóra UML Umbrello
-Comment[gl]=Ficheiro UML de Umbrello
-Comment[hi]=अम्बरैलो यूएमएल मॉडलर फ़ाइल
-Comment[hu]=Umbrello UML-fájl
-Comment[is]=Umbrello UML Modeller Skrá
-Comment[it]=File del modellatore UML Umbrello
-Comment[ja]=Umbrello UML モデラーファイル
-Comment[ka]=Umbrello UML მოდელერის ფაილი
-Comment[kk]=Umbrello UML үлгілегішінің файлы
-Comment[lt]=Umbrello UML Modeller byla
-Comment[ms]=Fail Pemodel Umbrello UML
-Comment[nb]=Umbrello UML-modelleringsfil
-Comment[nds]=UML-Modellmaker-Datei vun Umbrello
-Comment[ne]=अम्ब्रेलो यूएमएल मोडेलर फाइल
-Comment[nl]=Umbrello UML Modeller-bestand
-Comment[nn]=Umbrello UML-modelleringsfil
-Comment[pl]=Plik modelera UML Umbrello
-Comment[pt]=Ficheiro do Modelador de UML Umbrello
-Comment[pt_BR]=Arquivo de Modelador UML Umbrello
-Comment[ru]=Файл моделирования UML Umbrello
-Comment[sk]=Súbor pre Umbrello modelár UML
-Comment[sl]=Datoteka za modelirnik Umbrello UML
-Comment[sr]=Фајл Umbrello-а, UML моделара
-Comment[sr@Latn]=Fajl Umbrello-a, UML modelara
-Comment[sv]=Umbrello UML-modelleringsfil
-Comment[ta]= அம்ரல்லோ UML மாடுலர் கோப்பு
-Comment[tg]=Файли моделкунонии UML Umbrello
-Comment[tr]=Umbrello UML Modelleyici Dosyası
-Comment[uk]=Файл моделювання UML Umbrello
-Comment[zh_CN]=Umbrello UML 建模工具文件
-Comment[zh_TW]=Umbrello UML Modeller 檔案