diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-11 12:55:10 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-11 12:55:10 +0100 |
commit | 395c1540bb8b05b1d7b2feab203ba15a1c38d8d8 (patch) | |
tree | 18a59eeab94d6cf31b50df8d12a1ddb4dfd6d2a4 | |
parent | 9e759ab9f700596246a80b5284521fb4f86153da (diff) | |
download | knetstats-395c1540bb8b05b1d7b2feab203ba15a1c38d8d8.tar.gz knetstats-395c1540bb8b05b1d7b2feab203ba15a1c38d8d8.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>
48 files changed, 329 insertions, 45 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/src/CMakeL10n.txt b/src/CMakeL10n.txt new file mode 100644 index 0000000..bce48dc --- /dev/null +++ b/src/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_create_template( "knetstats" ) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 6d0aa9f..2ce6ef4 100644 --- a/translations/CMakeLists.txt +++ b/translations/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/translations/bg/CMakeLists.txt b/translations/bg/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/bg/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/bg/messages/CMakeLists.txt b/translations/bg/messages/CMakeLists.txt deleted file mode 100644 index 4902d61..0000000 --- a/translations/bg/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG bg ) diff --git a/translations/br/CMakeLists.txt b/translations/br/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/br/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/br/messages/CMakeLists.txt b/translations/br/messages/CMakeLists.txt deleted file mode 100644 index cd1ca2d..0000000 --- a/translations/br/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG br ) diff --git a/translations/cs/CMakeLists.txt b/translations/cs/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/cs/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/cs/messages/CMakeLists.txt b/translations/cs/messages/CMakeLists.txt deleted file mode 100644 index a0791b0..0000000 --- a/translations/cs/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG cs ) diff --git a/translations/da/CMakeLists.txt b/translations/da/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/da/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/da/messages/CMakeLists.txt b/translations/da/messages/CMakeLists.txt deleted file mode 100644 index aae4d18..0000000 --- a/translations/da/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG da ) diff --git a/translations/de/CMakeLists.txt b/translations/de/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/de/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/de/messages/CMakeLists.txt b/translations/de/messages/CMakeLists.txt deleted file mode 100644 index 5770e14..0000000 --- a/translations/de/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG de ) diff --git a/translations/el/CMakeLists.txt b/translations/el/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/el/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/el/messages/CMakeLists.txt b/translations/el/messages/CMakeLists.txt deleted file mode 100644 index d1ba21b..0000000 --- a/translations/el/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG el ) diff --git a/translations/es/CMakeLists.txt b/translations/es/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/es/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/es/messages/CMakeLists.txt b/translations/es/messages/CMakeLists.txt deleted file mode 100644 index 041b7a3..0000000 --- a/translations/es/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG es ) diff --git a/translations/et/CMakeLists.txt b/translations/et/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/et/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/et/messages/CMakeLists.txt b/translations/et/messages/CMakeLists.txt deleted file mode 100644 index 8128397..0000000 --- a/translations/et/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG et ) diff --git a/translations/fr/CMakeLists.txt b/translations/fr/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/fr/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/fr/messages/CMakeLists.txt b/translations/fr/messages/CMakeLists.txt deleted file mode 100644 index f7eefec..0000000 --- a/translations/fr/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG fr ) diff --git a/translations/ga/CMakeLists.txt b/translations/ga/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/ga/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/ga/messages/CMakeLists.txt b/translations/ga/messages/CMakeLists.txt deleted file mode 100644 index 02707f7..0000000 --- a/translations/ga/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ga ) diff --git a/translations/gl/CMakeLists.txt b/translations/gl/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/gl/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/gl/messages/CMakeLists.txt b/translations/gl/messages/CMakeLists.txt deleted file mode 100644 index c94a35a..0000000 --- a/translations/gl/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG gl ) diff --git a/translations/it/CMakeLists.txt b/translations/it/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/it/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/it/messages/CMakeLists.txt b/translations/it/messages/CMakeLists.txt deleted file mode 100644 index c54b21c..0000000 --- a/translations/it/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG it ) diff --git a/translations/ja/CMakeLists.txt b/translations/ja/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/ja/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/ja/messages/CMakeLists.txt b/translations/ja/messages/CMakeLists.txt deleted file mode 100644 index a88a684..0000000 --- a/translations/ja/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ja ) diff --git a/translations/ka/CMakeLists.txt b/translations/ka/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/ka/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/ka/messages/CMakeLists.txt b/translations/ka/messages/CMakeLists.txt deleted file mode 100644 index a94e633..0000000 --- a/translations/ka/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ka ) diff --git a/translations/knetstats.pot b/translations/knetstats.pot new file mode 100644 index 0000000..c9e7e66 --- /dev/null +++ b/translations/knetstats.pot @@ -0,0 +1,294 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2018-12-11 09:30+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 "" + +#: configure.cpp:128 +msgid "You need to select at least one interface to monitor." +msgstr "" + +#: knetstats.cpp:77 +msgid "&Help" +msgstr "" + +#: knetstats.cpp:89 +msgid "You need kernel 2.6.x with support to the /sys filesystem." +msgstr "" + +#: knetstats.cpp:187 +#, c-format +msgid "New interface detected: %1" +msgstr "" + +#: knetstatsview.cpp:92 +#, c-format +msgid "Monitoring %1" +msgstr "" + +#: knetstatsview.cpp:152 +msgid "%1 is inactive" +msgstr "" + +#: knetstatsview.cpp:155 +msgid "%1 is active" +msgstr "" + +#: knetstatsview.cpp:172 +msgid "%1 is disconnected" +msgstr "" + +#: knetstatsview.cpp:177 +msgid "%1 is connected" +msgstr "" + +#: statisticsbase.ui:24 main.cpp:33 +#, no-c-format +msgid "KNetStats" +msgstr "" + +#: main.cpp:39 +msgid "A network device monitor." +msgstr "" + +#: main.cpp:45 +msgid "_: NAME OF TRANSLATORS" +msgstr "" + +#: main.cpp:45 +msgid "_: EMAIL OF TRANSLATORS" +msgstr "" + +#: main.cpp:49 +msgid "SCons help, Debian packages, etc." +msgstr "" + +#: main.cpp:50 +msgid "Icon themes" +msgstr "" + +#: main.cpp:53 +msgid "KNetStats translation to other languages" +msgstr "" + +#: main.cpp:61 +msgid "" +"You don't have any network interface.\n" +"KNetStats will quit now." +msgstr "" + +#: statistics.cpp:34 +#, c-format +msgid "Details of %1" +msgstr "" + +#: configurebase.ui:24 +#, no-c-format +msgid "Configure KNetStats" +msgstr "" + +#: configurebase.ui:63 +#, no-c-format +msgid "Ok" +msgstr "" + +#: configurebase.ui:74 +#, no-c-format +msgid "Apply" +msgstr "" + +#: configurebase.ui:82 +#, no-c-format +msgid "Cancel" +msgstr "" + +#: configurebase.ui:113 +#, no-c-format +msgid "Appearance" +msgstr "" + +#: configurebase.ui:150 +#, no-c-format +msgid "Theme:" +msgstr "" + +#: configurebase.ui:156 +#, no-c-format +msgid "Classic" +msgstr "" + +#: configurebase.ui:161 +#, no-c-format +msgid "Modem" +msgstr "" + +#: configurebase.ui:166 +#, no-c-format +msgid "Network" +msgstr "" + +#: configurebase.ui:171 +#, no-c-format +msgid "Wireless" +msgstr "" + +#: configurebase.ui:176 +#, no-c-format +msgid "Kppp" +msgstr "" + +#: configurebase.ui:436 configurebase.ui:513 +#, no-c-format +msgid "Download color:" +msgstr "" + +#: configurebase.ui:465 configurebase.ui:505 +#, no-c-format +msgid "Upload color:" +msgstr "" + +#: configurebase.ui:489 +#, no-c-format +msgid "Background:" +msgstr "" + +#: configurebase.ui:537 +#, no-c-format +msgid "Transparent background" +msgstr "" + +#: configurebase.ui:558 +#, no-c-format +msgid "Configuration" +msgstr "" + +#: configurebase.ui:567 +#, no-c-format +msgid "Icon" +msgstr "" + +#: configurebase.ui:572 +#, no-c-format +msgid "Text" +msgstr "" + +#: configurebase.ui:577 +#, no-c-format +msgid "Chart" +msgstr "" + +#: configurebase.ui:589 +#, no-c-format +msgid "View mode:" +msgstr "" + +#: configurebase.ui:597 +#, no-c-format +msgid "Update interval:" +msgstr "" + +#: configurebase.ui:617 +#, no-c-format +msgid "ms" +msgstr "" + +#: configurebase.ui:625 +#, no-c-format +msgid "To monitor this interface" +msgstr "" + +#: statisticsbase.ui:87 +#, no-c-format +msgid "? KB/s" +msgstr "" + +#: statisticsbase.ui:103 +#, no-c-format +msgid "0 KB/s" +msgstr "" + +#: statisticsbase.ui:128 +#, no-c-format +msgid "&Statistics" +msgstr "" + +#: statisticsbase.ui:139 +#, no-c-format +msgid "Upload speed:" +msgstr "" + +#: statisticsbase.ui:147 +#, no-c-format +msgid "Received:" +msgstr "" + +#: statisticsbase.ui:155 +#, no-c-format +msgid "Download speed:" +msgstr "" + +#: statisticsbase.ui:163 +#, no-c-format +msgid "Transmited:" +msgstr "" + +#: statisticsbase.ui:196 +#, no-c-format +msgid "Bytes" +msgstr "" + +#: statisticsbase.ui:260 +#, no-c-format +msgid "Packets" +msgstr "" + +#: statisticsbase.ui:270 +#, no-c-format +msgid "Deta&ils" +msgstr "" + +#: statisticsbase.ui:281 +#, no-c-format +msgid "IP:" +msgstr "" + +#: statisticsbase.ui:289 +#, no-c-format +msgid "Netmask:" +msgstr "" + +#: statisticsbase.ui:297 +#, no-c-format +msgid "MAC:" +msgstr "" + +#: statisticsbase.ui:305 +#, no-c-format +msgid "MTU:" +msgstr "" + +#: statisticsbase.ui:451 +#, no-c-format +msgid "O&k" +msgstr "" diff --git a/translations/nl/CMakeLists.txt b/translations/nl/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/nl/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/nl/messages/CMakeLists.txt b/translations/nl/messages/CMakeLists.txt deleted file mode 100644 index 66088c7..0000000 --- a/translations/nl/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG nl ) diff --git a/translations/pl/CMakeLists.txt b/translations/pl/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/pl/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/pl/messages/CMakeLists.txt b/translations/pl/messages/CMakeLists.txt deleted file mode 100644 index ca58df4..0000000 --- a/translations/pl/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG pl ) diff --git a/translations/pt/CMakeLists.txt b/translations/pt/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/pt/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/pt/messages/CMakeLists.txt b/translations/pt/messages/CMakeLists.txt deleted file mode 100644 index 1001c25..0000000 --- a/translations/pt/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG pt ) diff --git a/translations/pt_BR/CMakeLists.txt b/translations/pt_BR/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/pt_BR/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/pt_BR/messages/CMakeLists.txt b/translations/pt_BR/messages/CMakeLists.txt deleted file mode 100644 index 91fae60..0000000 --- a/translations/pt_BR/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG pt_BR ) diff --git a/translations/ru/CMakeLists.txt b/translations/ru/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/ru/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/ru/messages/CMakeLists.txt b/translations/ru/messages/CMakeLists.txt deleted file mode 100644 index ec8f0d0..0000000 --- a/translations/ru/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG ru ) diff --git a/translations/sk/CMakeLists.txt b/translations/sk/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/sk/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/sk/messages/CMakeLists.txt b/translations/sk/messages/CMakeLists.txt deleted file mode 100644 index f010fa6..0000000 --- a/translations/sk/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG sk ) diff --git a/translations/sv/CMakeLists.txt b/translations/sv/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/sv/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/sv/messages/CMakeLists.txt b/translations/sv/messages/CMakeLists.txt deleted file mode 100644 index c26f445..0000000 --- a/translations/sv/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG sv ) diff --git a/translations/tr/CMakeLists.txt b/translations/tr/CMakeLists.txt deleted file mode 100644 index 9c11aea..0000000 --- a/translations/tr/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory( messages ) diff --git a/translations/tr/messages/CMakeLists.txt b/translations/tr/messages/CMakeLists.txt deleted file mode 100644 index b968c8e..0000000 --- a/translations/tr/messages/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_create_translation( LANG tr ) |