summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-26 18:05:04 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-03-26 18:05:04 +0100
commitd0dd2bfdcf137f073c6bb832742bf3762446226a (patch)
treeead8134cd34816b57bb4ea326c2747ceb8b89c3a
parent9085d2c96d91f5ba23f3fa32c78a5720334b873c (diff)
downloadtdedocker-d0dd2bfd.zip
tdedocker-d0dd2bfd.tar.gz
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>
-rw-r--r--CMakeL10n.txt5
-rw-r--r--CMakeLists.txt2
-rw-r--r--translations/desktop_files/tdedocker.desktop/tdedocker.desktop.pot32
-rw-r--r--translations/messages/tdedocker.pot66
4 files changed, 71 insertions, 34 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index a525b71..b1583ab 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.txt
@@ -21,3 +21,8 @@ include( TDEL10n )
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/tdedocker.desktop/"
+ SOURCES tdedocker.desktop
+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 05ff24f..f1b30ab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,4 +78,4 @@ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
##### other data ################################
-INSTALL(FILES tdedocker.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+tde_create_translated_desktop( tdedocker.desktop )
diff --git a/translations/desktop_files/tdedocker.desktop/tdedocker.desktop.pot b/translations/desktop_files/tdedocker.desktop/tdedocker.desktop.pot
new file mode 100644
index 0000000..dc0e22a
--- /dev/null
+++ b/translations/desktop_files/tdedocker.desktop/tdedocker.desktop.pot
@@ -0,0 +1,32 @@
+# SOME DESCRIPTIVE TITLE.
+# This file is put in the public domain.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2020-03-26 17:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Name
+#: tdedocker.desktop:2
+msgid "TDEDocker"
+msgstr ""
+
+#. GenericName
+#: tdedocker.desktop:3
+msgid "Application docking utility"
+msgstr ""
+
+#. Comment
+#: tdedocker.desktop:4
+msgid "Docks any application into system tray"
+msgstr ""
diff --git a/translations/messages/tdedocker.pot b/translations/messages/tdedocker.pot
index c17ec5a..354dbd0 100644
--- a/translations/messages/tdedocker.pot
+++ b/translations/messages/tdedocker.pot
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2020-03-16 17:24+0100\n"
+"POT-Creation-Date: 2020-03-26 17:51+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,71 +25,71 @@ msgid ""
"Your emails"
msgstr ""
-#: customtraylabel.cpp:65
+#: customtraylabel.cpp:64
msgid "Dock when session restored"
msgstr ""
-#: customtraylabel.cpp:71
+#: customtraylabel.cpp:70
msgid "Set Icon"
msgstr ""
-#: customtraylabel.cpp:73
+#: customtraylabel.cpp:72
msgid "Set balloon timeout"
msgstr ""
-#: customtraylabel.cpp:78 main.cpp:60
+#: customtraylabel.cpp:77 main.cpp:60
msgid "Dock when obscured"
msgstr ""
-#: customtraylabel.cpp:84
+#: customtraylabel.cpp:83
msgid "Dock when minimized"
msgstr ""
-#: customtraylabel.cpp:90
+#: customtraylabel.cpp:89
msgid "Dock when focus lost"
msgstr ""
-#: customtraylabel.cpp:96
+#: customtraylabel.cpp:95
msgid "Skip taskbar"
msgstr ""
-#: customtraylabel.cpp:104
+#: customtraylabel.cpp:103
msgid "Dock Another"
msgstr ""
-#: customtraylabel.cpp:105
+#: customtraylabel.cpp:104
msgid "Undock All"
msgstr ""
-#: customtraylabel.cpp:110
+#: customtraylabel.cpp:109
msgid "Undock"
msgstr ""
-#: customtraylabel.cpp:205
+#: customtraylabel.cpp:217
msgid "%1 is not a valid icon"
msgstr ""
-#: customtraylabel.cpp:205 customtraylabel.cpp:215 customtraylabel.cpp:308
-#: traylabelmgr.cpp:86 traylabelmgr.cpp:345 traylabelmgr.cpp:359
-#: traylabelmgr.cpp:370 traylabelmgr.cpp:484
+#: customtraylabel.cpp:217 customtraylabel.cpp:227 customtraylabel.cpp:320
+#: traylabelmgr.cpp:85 traylabelmgr.cpp:349 traylabelmgr.cpp:363
+#: traylabelmgr.cpp:374 traylabelmgr.cpp:493
msgid "TDEDocker"
msgstr ""
-#: customtraylabel.cpp:216
+#: customtraylabel.cpp:228
msgid "Enter balloon timeout (secs). 0 to disable ballooning"
msgstr ""
-#: customtraylabel.cpp:228
+#: customtraylabel.cpp:240
#, c-format
msgid "Show %1"
msgstr ""
-#: customtraylabel.cpp:228
+#: customtraylabel.cpp:240
#, c-format
msgid "Hide %1"
msgstr ""
-#: customtraylabel.cpp:307
+#: customtraylabel.cpp:319
msgid ""
"You cannot drop an item into the tray icon. Drop it on the window\n"
"that is brought in front when you hover the item over the tray icon"
@@ -143,65 +143,65 @@ msgstr ""
msgid "Application to dock"
msgstr ""
-#: main.cpp:78
+#: main.cpp:72
msgid "tdedocker"
msgstr ""
-#: main.cpp:79
+#: main.cpp:73
msgid ""
"Docks any application into the system tray\n"
"NOTE: Use -d for all startup scripts."
msgstr ""
-#: main.cpp:80
+#: main.cpp:74
msgid "Original KDocker maintainer"
msgstr ""
-#: main.cpp:81
+#: main.cpp:75
msgid "Original KDocker developer"
msgstr ""
-#: traylabelmgr.cpp:85
+#: traylabelmgr.cpp:84
msgid "No system tray found"
msgstr ""
-#: traylabelmgr.cpp:85
+#: traylabelmgr.cpp:84
msgid "System tray appears to be hidden"
msgstr ""
-#: traylabelmgr.cpp:336
+#: traylabelmgr.cpp:340
msgid "Select the application/window to dock with button1."
msgstr ""
-#: traylabelmgr.cpp:337
+#: traylabelmgr.cpp:341
msgid "Click any other button to abort\n"
msgstr ""
-#: traylabelmgr.cpp:358
+#: traylabelmgr.cpp:362
msgid ""
"The window you are attempting to dock does not seem to be a normal window."
msgstr ""
-#: traylabelmgr.cpp:369
+#: traylabelmgr.cpp:373
msgid ""
"This window is already docked.\n"
"Click on system tray icon to toggle docking."
msgstr ""
-#: traylabelmgr.cpp:409
+#: traylabelmgr.cpp:413
msgid "Failed to exec [%1]: %2"
msgstr ""
-#: traylabelmgr.cpp:417
+#: traylabelmgr.cpp:423
#, c-format
msgid "Failed to fork: %1"
msgstr ""
-#: traylabelmgr.cpp:417
+#: traylabelmgr.cpp:423
msgid "Ignore"
msgstr ""
-#: traylabelmgr.cpp:483
+#: traylabelmgr.cpp:492
msgid ""
"The System tray was hidden or removed. All applications will be undocked."
msgstr ""