From 769d754414b6675aa4d74fe87cc2c39fe078795a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 10 Dec 2018 22:45:47 +0100 Subject: Add CMakeL10n rules. Update translation template. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeL10n.txt | 23 +++++++++++++ kkbswitch/CMakeL10n.txt | 3 ++ po/CMakeLists.txt | 7 +++- po/bg.gmo | Bin 12784 -> 0 bytes po/cs.gmo | Bin 9720 -> 0 bytes po/el.gmo | Bin 4514 -> 0 bytes po/he.gmo | Bin 9848 -> 0 bytes po/kkbswitch.pot | 84 +++++++++++++----------------------------------- po/ru.gmo | Bin 12755 -> 0 bytes po/sk.gmo | Bin 9631 -> 0 bytes po/uk.gmo | Bin 12464 -> 0 bytes 11 files changed, 55 insertions(+), 62 deletions(-) create mode 100644 CMakeL10n.txt create mode 100644 kkbswitch/CMakeL10n.txt delete mode 100644 po/bg.gmo delete mode 100644 po/cs.gmo delete mode 100644 po/el.gmo delete mode 100644 po/he.gmo delete mode 100644 po/ru.gmo delete mode 100644 po/sk.gmo delete mode 100644 po/uk.gmo 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 Binary files a/po/bg.gmo and /dev/null differ diff --git a/po/cs.gmo b/po/cs.gmo deleted file mode 100644 index 17c1978..0000000 Binary files a/po/cs.gmo and /dev/null differ diff --git a/po/el.gmo b/po/el.gmo deleted file mode 100644 index 1920a89..0000000 Binary files a/po/el.gmo and /dev/null differ diff --git a/po/he.gmo b/po/he.gmo deleted file mode 100644 index f203803..0000000 Binary files a/po/he.gmo and /dev/null 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 , 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 \n" "Language-Team: LANGUAGE \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 "" 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 "" "

Select the style of icons representing the current keyboard layout.\n" "You can choose from the following styles:

  • Country flag - " -"displays the corresponding contry flag
  • Language code - displays " +"displays the corresponding country flag
  • Language code - displays " "the language ISO 2-letter code
  • Flag and code - displays the " "language code superimposed over the country flag.

" 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 Binary files a/po/ru.gmo and /dev/null differ diff --git a/po/sk.gmo b/po/sk.gmo deleted file mode 100644 index 3271646..0000000 Binary files a/po/sk.gmo and /dev/null differ diff --git a/po/uk.gmo b/po/uk.gmo deleted file mode 100644 index 044f9ec..0000000 Binary files a/po/uk.gmo and /dev/null differ -- cgit v1.2.3