summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-10 22:45:47 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-10 22:46:42 +0100
commit769d754414b6675aa4d74fe87cc2c39fe078795a (patch)
treeca43e03c5583b1c3faee3a8bf8c47ceadbc58d1a
parentf8bd379af31a31ea83f0b8d470317c9f6e6769d1 (diff)
downloadkkbswitch-769d7544.tar.gz
kkbswitch-769d7544.zip
Add CMakeL10n rules.
Update translation template. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeL10n.txt23
-rw-r--r--kkbswitch/CMakeL10n.txt3
-rw-r--r--po/CMakeLists.txt7
-rw-r--r--po/bg.gmobin12784 -> 0 bytes
-rw-r--r--po/cs.gmobin9720 -> 0 bytes
-rw-r--r--po/el.gmobin4514 -> 0 bytes
-rw-r--r--po/he.gmobin9848 -> 0 bytes
-rw-r--r--po/kkbswitch.pot84
-rw-r--r--po/ru.gmobin12755 -> 0 bytes
-rw-r--r--po/sk.gmobin9631 -> 0 bytes
-rw-r--r--po/uk.gmobin12464 -> 0 bytes
11 files changed, 55 insertions, 62 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 0000000..a525b71
--- /dev/null
+++ b/CMakeL10n.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (C) 2018 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+cmake_minimum_required( VERSION 2.8 )
+
+
+##### include our cmake modules #################
+
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+include( TDEL10n )
+
+
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/kkbswitch/CMakeL10n.txt b/kkbswitch/CMakeL10n.txt
new file mode 100644
index 0000000..ec68342
--- /dev/null
+++ b/kkbswitch/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kkbswitch" )
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index f5a2e1b..46fba83 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -1 +1,6 @@
-tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
+# build translations if some are already available
+
+file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
+if( _srcs )
+ tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
+endif( )
diff --git a/po/bg.gmo b/po/bg.gmo
deleted file mode 100644
index 2a46113..0000000
--- a/po/bg.gmo
+++ /dev/null
Binary files differ
diff --git a/po/cs.gmo b/po/cs.gmo
deleted file mode 100644
index 17c1978..0000000
--- a/po/cs.gmo
+++ /dev/null
Binary files differ
diff --git a/po/el.gmo b/po/el.gmo
deleted file mode 100644
index 1920a89..0000000
--- a/po/el.gmo
+++ /dev/null
Binary files differ
diff --git a/po/he.gmo b/po/he.gmo
deleted file mode 100644
index f203803..0000000
--- a/po/he.gmo
+++ /dev/null
Binary files differ
diff --git a/po/kkbswitch.pot b/po/kkbswitch.pot
index 6ca21db..0baa45b 100644
--- a/po/kkbswitch.pot
+++ b/po/kkbswitch.pot
@@ -1,28 +1,42 @@
# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2004-06-15 23:49+0300\n"
+"POT-Creation-Date: 2018-12-10 22:42+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"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: kbconfig.cpp:85
+#: _translatorinfo:1
+msgid ""
+"_: NAME OF TRANSLATORS\n"
+"Your names"
+msgstr ""
+
+#: _translatorinfo:2
+msgid ""
+"_: EMAIL OF TRANSLATORS\n"
+"Your emails"
+msgstr ""
+
+#: kbconfig.cpp:92
msgid "<Unnamed>"
msgstr ""
-#: kbconfig.cpp:101
+#: kbconfig.cpp:108
msgid "Activate %1 keyboard layout"
msgstr ""
+#: kbconfigdlg.cpp:96
+msgid "Configure"
+msgstr ""
+
#: kbconfigdlg.cpp:116
msgid "&General"
msgstr ""
@@ -68,7 +82,7 @@ msgstr ""
#: kbconfigdlg.cpp:156
msgid ""
-"Cick this button to set the layout selected in the list box to the left as "
+"Click this button to set the layout selected in the list box to the left as "
"the default"
msgstr ""
@@ -92,7 +106,7 @@ msgstr ""
msgid ""
"<p>Select the style of icons representing the current keyboard layout.\n"
"You can choose from the following styles:<ul><li><b>Country flag</b> - "
-"displays the corresponding contry flag<li><b>Language code</b> - displays "
+"displays the corresponding country flag<li><b>Language code</b> - displays "
"the language ISO 2-letter code<li><b>Flag and code</b> - displays the "
"language code superimposed over the country flag.</ul></p>"
msgstr ""
@@ -164,14 +178,6 @@ msgid ""
"or four keyboard layouts configured"
msgstr ""
-#: kbconfigdlg.moc.cpp:34 kbconfigdlg.moc.cpp:42
-msgid "KBConfigDlg"
-msgstr ""
-
-#: kbconfig.moc.cpp:42 kbconfig.moc.cpp:47
-msgid "KBConfig"
-msgstr ""
-
#: kbpickicondlg.cpp:42
msgid "Pick an icon"
msgstr ""
@@ -209,6 +215,7 @@ msgid " and also too narrow"
msgstr ""
#: kbpickicondlg.cpp:108
+#, c-format
msgid "This image is too big%1."
msgstr ""
@@ -233,26 +240,10 @@ msgid ""
"corrupt."
msgstr ""
-#: kbpickicondlg.moc.cpp:34 kbpickicondlg.moc.cpp:42
-msgid "KBPickIconDlg"
-msgstr ""
-
-#: kbswitchapp.moc.cpp:34 kbswitchapp.moc.cpp:42
-msgid "KBSwitchApp"
-msgstr ""
-
-#: kbswitchintf.moc.cpp:34 kbswitchintf.moc.cpp:42
-msgid "KBSwitchIntf"
-msgstr ""
-
#: kbswitchtrayicon.cpp:91 main.cpp:27 main.cpp:41
msgid "Keyboard Switch"
msgstr ""
-#: kbswitchtrayicon.moc.cpp:34 kbswitchtrayicon.moc.cpp:42
-msgid "KBSwitchTrayIcon"
-msgstr ""
-
#: main.cpp:44
msgid "Creator and maintainer"
msgstr ""
@@ -281,32 +272,7 @@ msgstr ""
msgid "Slovak translation"
msgstr ""
-#: singlewindowwatcher.moc.cpp:34 singlewindowwatcher.moc.cpp:42
-msgid "SingleWindowWatcher"
-msgstr ""
-
-#: _translatorinfo.cpp:1
-msgid ""
-"_: NAME OF TRANSLATORS\n"
-"Your names"
-msgstr ""
-
-#: _translatorinfo.cpp:3
-msgid ""
-"_: EMAIL OF TRANSLATORS\n"
-"Your emails"
-msgstr ""
-
-#: windowclasswatcher.moc.cpp:34 windowclasswatcher.moc.cpp:42
-msgid "WindowClassWatcher"
-msgstr ""
-
-#: windowwatcher.moc.cpp:34 windowwatcher.moc.cpp:42
-msgid "WindowWatcher"
-msgstr ""
-
#: xkeyboard.cpp:42
-#, c-format
msgid ""
"This program was built against XKB extension library\n"
"version %1.%2, but is run with the library version %3.%4.\n"
@@ -320,7 +286,3 @@ msgid ""
"Either the server is not XKB-capable or the extension was disabled.\n"
"This program would not work with this server, so it will exit now\n"
msgstr ""
-
-#: xkeyboard.moc.cpp:34 xkeyboard.moc.cpp:42
-msgid "XKeyboard"
-msgstr ""
diff --git a/po/ru.gmo b/po/ru.gmo
deleted file mode 100644
index 96c7a5e..0000000
--- a/po/ru.gmo
+++ /dev/null
Binary files differ
diff --git a/po/sk.gmo b/po/sk.gmo
deleted file mode 100644
index 3271646..0000000
--- a/po/sk.gmo
+++ /dev/null
Binary files differ
diff --git a/po/uk.gmo b/po/uk.gmo
deleted file mode 100644
index 044f9ec..0000000
--- a/po/uk.gmo
+++ /dev/null
Binary files differ