diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-13 04:46:09 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-13 04:46:09 +0100 |
commit | 5272377bc13d4ce585ae061c0d2dc0bed3d41708 (patch) | |
tree | cb8af9b15cc92e118fc1fc6945249da9fc546fbe | |
parent | ef1db01de53099fa8d667e692b2e52338adaa705 (diff) | |
download | knetload-5272377bc13d4ce585ae061c0d2dc0bed3d41708.tar.gz knetload-5272377bc13d4ce585ae061c0d2dc0bed3d41708.zip |
Add CMakeL10n rules.
Create translation template.
Modify CMake rules for translations
to make them independent of languages.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | CMakeL10n.txt | 23 | ||||
-rw-r--r-- | knetload/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | po/CMakeLists.txt | 10 | ||||
-rw-r--r-- | po/ar/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/bs/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/ca/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/cs/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/da/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/de/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/en_GB/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/es/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/et/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/fr/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/is/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/it/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/ja/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/knetload.pot | 237 | ||||
-rw-r--r-- | po/nb/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/nl/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/pt/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/pt_BR/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/ro/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/sr/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/sv/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/ta/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/tr/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/xx/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/zh_CN/CMakeLists.txt | 1 | ||||
-rw-r--r-- | po/zh_TW/CMakeLists.txt | 1 |
29 files changed, 272 insertions, 26 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/knetload/CMakeL10n.txt b/knetload/CMakeL10n.txt new file mode 100644 index 0000000..cdac587 --- /dev/null +++ b/knetload/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_create_template( "knetload" ) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 6d0aa9f..2ce6ef4 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1 +1,9 @@ -tde_auto_add_subdirectories( ) +# build translations if some are already available + +file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_NAME}.po ) + +foreach( _po ${po_files} ) + string( REPLACE "/" ";" _path "${_po}" ) + list( GET _path 0 _lang ) + tde_create_translation( FILES ${_po} LANG ${_lang} ) +endforeach( ) diff --git a/po/ar/CMakeLists.txt b/po/ar/CMakeLists.txt deleted file mode 100644 index f193123..0000000 --- a/po/ar/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ar ) diff --git a/po/bs/CMakeLists.txt b/po/bs/CMakeLists.txt deleted file mode 100644 index 9b262e5..0000000 --- a/po/bs/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG bs ) diff --git a/po/ca/CMakeLists.txt b/po/ca/CMakeLists.txt deleted file mode 100644 index d5a5b2f..0000000 --- a/po/ca/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ca ) diff --git a/po/cs/CMakeLists.txt b/po/cs/CMakeLists.txt deleted file mode 100644 index a0791b0..0000000 --- a/po/cs/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG cs ) diff --git a/po/da/CMakeLists.txt b/po/da/CMakeLists.txt deleted file mode 100644 index aae4d18..0000000 --- a/po/da/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG da ) diff --git a/po/de/CMakeLists.txt b/po/de/CMakeLists.txt deleted file mode 100644 index 5770e14..0000000 --- a/po/de/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG de ) diff --git a/po/en_GB/CMakeLists.txt b/po/en_GB/CMakeLists.txt deleted file mode 100644 index 16d9e14..0000000 --- a/po/en_GB/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG en_GB ) diff --git a/po/es/CMakeLists.txt b/po/es/CMakeLists.txt deleted file mode 100644 index 041b7a3..0000000 --- a/po/es/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG es ) diff --git a/po/et/CMakeLists.txt b/po/et/CMakeLists.txt deleted file mode 100644 index 8128397..0000000 --- a/po/et/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG et ) diff --git a/po/fr/CMakeLists.txt b/po/fr/CMakeLists.txt deleted file mode 100644 index f7eefec..0000000 --- a/po/fr/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG fr ) diff --git a/po/is/CMakeLists.txt b/po/is/CMakeLists.txt deleted file mode 100644 index b485046..0000000 --- a/po/is/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG is ) diff --git a/po/it/CMakeLists.txt b/po/it/CMakeLists.txt deleted file mode 100644 index c54b21c..0000000 --- a/po/it/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG it ) diff --git a/po/ja/CMakeLists.txt b/po/ja/CMakeLists.txt deleted file mode 100644 index a88a684..0000000 --- a/po/ja/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ja ) diff --git a/po/knetload.pot b/po/knetload.pot new file mode 100644 index 0000000..95adc9d --- /dev/null +++ b/po/knetload.pot @@ -0,0 +1,237 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2018-12-13 04:43+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=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: _translatorinfo:1 +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#: _translatorinfo:2 +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: devicedialog.cpp:32 +msgid "Select Network Device" +msgstr "" + +#: devicedialog.cpp:36 +msgid "Network device to monitor:" +msgstr "" + +#: knetdock.cpp:20 +msgid "IN" +msgstr "" + +#: knetdock.cpp:20 +msgid "OUT" +msgstr "" + +#: knetload.cpp:167 +msgid "The device name cannot be empty." +msgstr "" + +#: knetload.cpp:183 +msgid "Select Scale (In)" +msgstr "" + +#: knetload.cpp:208 +msgid "Select Scale (Out)" +msgstr "" + +#: knetload.cpp:228 +msgid "In" +msgstr "" + +#: knetload.cpp:228 +msgid "Out" +msgstr "" + +#: knetload.cpp:255 knetload.cpp:275 knetload.cpp:293 knetload.cpp:368 +#: knetload.cpp:404 knetload.cpp:442 +msgid "Other..." +msgstr "" + +#: knetload.cpp:258 +msgid "&Device" +msgstr "" + +#: knetload.cpp:265 knetload.cpp:283 +msgid "28.8KBit/s" +msgstr "" + +#: knetload.cpp:266 knetload.cpp:284 +msgid "33.6KBit/s" +msgstr "" + +#: knetload.cpp:267 knetload.cpp:285 +msgid "56KBit/s" +msgstr "" + +#: knetload.cpp:268 knetload.cpp:286 +msgid "64KBit/s" +msgstr "" + +#: knetload.cpp:269 knetload.cpp:287 +msgid "128KBit/s" +msgstr "" + +#: knetload.cpp:270 knetload.cpp:288 +msgid "256KBit/s" +msgstr "" + +#: knetload.cpp:271 knetload.cpp:289 +msgid "512KBit/s" +msgstr "" + +#: knetload.cpp:272 knetload.cpp:290 +msgid "1MBit/s" +msgstr "" + +#: knetload.cpp:273 knetload.cpp:291 +msgid "2MBit/s" +msgstr "" + +#: knetload.cpp:274 knetload.cpp:292 +msgid "10MBit/s" +msgstr "" + +#: knetload.cpp:278 +msgid "&Scale (In)" +msgstr "" + +#: knetload.cpp:295 +msgid "Same as for in" +msgstr "" + +#: knetload.cpp:298 +msgid "&Scale (Out)" +msgstr "" + +#: knetload.cpp:329 +msgid "" +"Current In: %1 KBit/s, Total In: %2 MB.\n" +"Current Out: %3 KBit/s, Total Out: %4 MB." +msgstr "" + +#: knetload.cpp:372 +msgid "Other (%1)..." +msgstr "" + +#: knetload.cpp:406 knetload.cpp:444 +msgid "Other (%1KBit/s)..." +msgstr "" + +#: main.cpp:23 +msgid "A small network load meter for Kicker (the TDE panel)." +msgstr "" + +#: main.cpp:25 +msgid "KNetLoad was first released on the 8th of August, 1999." +msgstr "" + +#: main.cpp:29 +msgid "KNetLoad" +msgstr "" + +#: main.cpp:66 +msgid "KNetLoad is already running.\n" +msgstr "" + +#: scaledialog.cpp:29 +msgid "Scale in KBit/s:" +msgstr "" + +#: speeddialog.cpp:30 +msgid "Select Speed" +msgstr "" + +#: speeddialog.cpp:34 +msgid "Update interval in milliseconds:" +msgstr "" + +#: statpopup.cpp:54 statpopup.cpp:336 +msgid "Inactive." +msgstr "" + +#: statpopup.cpp:110 +msgid "St&yle" +msgstr "" + +#: statpopup.cpp:118 +msgid "&Help" +msgstr "" + +#: statpopup.cpp:345 +msgid "&Active" +msgstr "" + +#: statpopup.cpp:349 +msgid "&Clear" +msgstr "" + +#: statpopup.cpp:353 +msgid "&Speed..." +msgstr "" + +#: statpopup.cpp:358 +msgid "Sp&lit Graph" +msgstr "" + +#: statpopup.cpp:359 +msgid "Graph Sp&litting Enabled" +msgstr "" + +#: statpopup.cpp:365 +msgid "&Lines" +msgstr "" + +#: statpopup.cpp:367 +msgid "&Bars" +msgstr "" + +#: statpopup.cpp:369 +msgid "&Shaded" +msgstr "" + +#: statpopup.cpp:379 +msgid "So&ft Curves" +msgstr "" + +#: statpopup.cpp:380 +msgid "So&ft Curves Enabled" +msgstr "" + +#: statpopup.cpp:385 +msgid "Show &Labels" +msgstr "" + +#: statpopup.cpp:386 +msgid "&Labels Enabled" +msgstr "" + +#: statpopup.cpp:391 +msgid "Show &Grid" +msgstr "" + +#: statpopup.cpp:392 +msgid "&Grid Enabled" +msgstr "" + +#: statpopup.cpp:398 statpopup.cpp:404 +msgid "Color (%1)..." +msgstr "" diff --git a/po/nb/CMakeLists.txt b/po/nb/CMakeLists.txt deleted file mode 100644 index d4007c0..0000000 --- a/po/nb/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG nb ) diff --git a/po/nl/CMakeLists.txt b/po/nl/CMakeLists.txt deleted file mode 100644 index 66088c7..0000000 --- a/po/nl/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG nl ) diff --git a/po/pt/CMakeLists.txt b/po/pt/CMakeLists.txt deleted file mode 100644 index 1001c25..0000000 --- a/po/pt/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG pt ) diff --git a/po/pt_BR/CMakeLists.txt b/po/pt_BR/CMakeLists.txt deleted file mode 100644 index 91fae60..0000000 --- a/po/pt_BR/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG pt_BR ) diff --git a/po/ro/CMakeLists.txt b/po/ro/CMakeLists.txt deleted file mode 100644 index d298a5a..0000000 --- a/po/ro/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ro ) diff --git a/po/sr/CMakeLists.txt b/po/sr/CMakeLists.txt deleted file mode 100644 index aecc615..0000000 --- a/po/sr/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG sr ) diff --git a/po/sv/CMakeLists.txt b/po/sv/CMakeLists.txt deleted file mode 100644 index c26f445..0000000 --- a/po/sv/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG sv ) diff --git a/po/ta/CMakeLists.txt b/po/ta/CMakeLists.txt deleted file mode 100644 index 3818233..0000000 --- a/po/ta/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ta ) diff --git a/po/tr/CMakeLists.txt b/po/tr/CMakeLists.txt deleted file mode 100644 index b968c8e..0000000 --- a/po/tr/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG tr ) diff --git a/po/xx/CMakeLists.txt b/po/xx/CMakeLists.txt deleted file mode 100644 index 100618f..0000000 --- a/po/xx/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG xx ) diff --git a/po/zh_CN/CMakeLists.txt b/po/zh_CN/CMakeLists.txt deleted file mode 100644 index c704bad..0000000 --- a/po/zh_CN/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG zh_CN ) diff --git a/po/zh_TW/CMakeLists.txt b/po/zh_TW/CMakeLists.txt deleted file mode 100644 index 8f3ac3c..0000000 --- a/po/zh_TW/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG zh_TW ) |