Parcourir la source

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>
pull/3/head
Slávek Banko il y a 9 mois
Parent
révision
395c1540bb
Signé par: Slávek Banko <slavek.banko@axis.cz> ID de la clé GPG: 608F5293A04BE668
48 fichiers modifiés avec 329 ajouts et 45 suppressions
  1. 23
    0
      CMakeL10n.txt
  2. 3
    0
      src/CMakeL10n.txt
  3. 9
    1
      translations/CMakeLists.txt
  4. 0
    1
      translations/bg/CMakeLists.txt
  5. 0
    1
      translations/bg/messages/CMakeLists.txt
  6. 0
    1
      translations/br/CMakeLists.txt
  7. 0
    1
      translations/br/messages/CMakeLists.txt
  8. 0
    1
      translations/cs/CMakeLists.txt
  9. 0
    1
      translations/cs/messages/CMakeLists.txt
  10. 0
    1
      translations/da/CMakeLists.txt
  11. 0
    1
      translations/da/messages/CMakeLists.txt
  12. 0
    1
      translations/de/CMakeLists.txt
  13. 0
    1
      translations/de/messages/CMakeLists.txt
  14. 0
    1
      translations/el/CMakeLists.txt
  15. 0
    1
      translations/el/messages/CMakeLists.txt
  16. 0
    1
      translations/es/CMakeLists.txt
  17. 0
    1
      translations/es/messages/CMakeLists.txt
  18. 0
    1
      translations/et/CMakeLists.txt
  19. 0
    1
      translations/et/messages/CMakeLists.txt
  20. 0
    1
      translations/fr/CMakeLists.txt
  21. 0
    1
      translations/fr/messages/CMakeLists.txt
  22. 0
    1
      translations/ga/CMakeLists.txt
  23. 0
    1
      translations/ga/messages/CMakeLists.txt
  24. 0
    1
      translations/gl/CMakeLists.txt
  25. 0
    1
      translations/gl/messages/CMakeLists.txt
  26. 0
    1
      translations/it/CMakeLists.txt
  27. 0
    1
      translations/it/messages/CMakeLists.txt
  28. 0
    1
      translations/ja/CMakeLists.txt
  29. 0
    1
      translations/ja/messages/CMakeLists.txt
  30. 0
    1
      translations/ka/CMakeLists.txt
  31. 0
    1
      translations/ka/messages/CMakeLists.txt
  32. 294
    0
      translations/knetstats.pot
  33. 0
    1
      translations/nl/CMakeLists.txt
  34. 0
    1
      translations/nl/messages/CMakeLists.txt
  35. 0
    1
      translations/pl/CMakeLists.txt
  36. 0
    1
      translations/pl/messages/CMakeLists.txt
  37. 0
    1
      translations/pt/CMakeLists.txt
  38. 0
    1
      translations/pt/messages/CMakeLists.txt
  39. 0
    1
      translations/pt_BR/CMakeLists.txt
  40. 0
    1
      translations/pt_BR/messages/CMakeLists.txt
  41. 0
    1
      translations/ru/CMakeLists.txt
  42. 0
    1
      translations/ru/messages/CMakeLists.txt
  43. 0
    1
      translations/sk/CMakeLists.txt
  44. 0
    1
      translations/sk/messages/CMakeLists.txt
  45. 0
    1
      translations/sv/CMakeLists.txt
  46. 0
    1
      translations/sv/messages/CMakeLists.txt
  47. 0
    1
      translations/tr/CMakeLists.txt
  48. 0
    1
      translations/tr/messages/CMakeLists.txt

+ 23
- 0
CMakeL10n.txt Voir le fichier

@@ -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( )

+ 3
- 0
src/CMakeL10n.txt Voir le fichier

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "knetstats" )

+ 9
- 1
translations/CMakeLists.txt Voir le fichier

@@ -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( )

+ 0
- 1
translations/bg/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/bg/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG bg )

+ 0
- 1
translations/br/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/br/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG br )

+ 0
- 1
translations/cs/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/cs/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG cs )

+ 0
- 1
translations/da/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/da/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG da )

+ 0
- 1
translations/de/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/de/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG de )

+ 0
- 1
translations/el/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/el/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG el )

+ 0
- 1
translations/es/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/es/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG es )

+ 0
- 1
translations/et/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/et/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG et )

+ 0
- 1
translations/fr/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/fr/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG fr )

+ 0
- 1
translations/ga/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/ga/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG ga )

+ 0
- 1
translations/gl/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/gl/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG gl )

+ 0
- 1
translations/it/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/it/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG it )

+ 0
- 1
translations/ja/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/ja/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG ja )

+ 0
- 1
translations/ka/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/ka/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG ka )

+ 294
- 0
translations/knetstats.pot Voir le fichier

@@ -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 ""

+ 0
- 1
translations/nl/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/nl/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG nl )

+ 0
- 1
translations/pl/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/pl/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG pl )

+ 0
- 1
translations/pt/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/pt/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG pt )

+ 0
- 1
translations/pt_BR/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/pt_BR/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG pt_BR )

+ 0
- 1
translations/ru/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/ru/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG ru )

+ 0
- 1
translations/sk/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/sk/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG sk )

+ 0
- 1
translations/sv/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/sv/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG sv )

+ 0
- 1
translations/tr/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
add_subdirectory( messages )

+ 0
- 1
translations/tr/messages/CMakeLists.txt Voir le fichier

@@ -1 +0,0 @@
tde_create_translation( LANG tr )

Chargement…
Annuler
Enregistrer