Procházet zdrojové kódy

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>
Slávek Banko před 4 měsíci
rodič
revize
395c1540bb
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
48 změnil soubory, kde provedl 329 přidání a 45 odebrání
  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 Zobrazit soubor

@@ -0,0 +1,23 @@
1
+#################################################
2
+#
3
+#  (C) 2018 Slávek Banko
4
+#  slavek.banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+cmake_minimum_required( VERSION 2.8 )
13
+
14
+
15
+##### include our cmake modules #################
16
+
17
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
18
+include( TDEL10n )
19
+
20
+
21
+##### create translation templates ##############
22
+
23
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
src/CMakeL10n.txt Zobrazit soubor

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "knetstats" )

+ 9
- 1
translations/CMakeLists.txt Zobrazit soubor

@@ -1 +1,9 @@
1
-tde_auto_add_subdirectories( )
1
+# build translations if some are already available
2
+
3
+file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_NAME}.po )
4
+
5
+foreach( _po ${po_files} )
6
+  string( REPLACE "/" ";" _path "${_po}" )
7
+  list( GET _path 0 _lang )
8
+  tde_create_translation( FILES ${_po} LANG ${_lang} )
9
+endforeach( )

+ 0
- 1
translations/bg/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/bg/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/br/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/br/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/cs/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/cs/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/da/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/da/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/de/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/de/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/el/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/el/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/es/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/es/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/et/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/et/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/fr/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/fr/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ga/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ga/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/gl/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/gl/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/it/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/it/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ja/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ja/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ka/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ka/messages/CMakeLists.txt Zobrazit soubor

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

+ 294
- 0
translations/knetstats.pot Zobrazit soubor

@@ -0,0 +1,294 @@
1
+# SOME DESCRIPTIVE TITLE.
2
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
3
+#
4
+#, fuzzy
5
+msgid ""
6
+msgstr ""
7
+"Project-Id-Version: PACKAGE VERSION\n"
8
+"POT-Creation-Date: 2018-12-11 09:30+0100\n"
9
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
11
+"Language-Team: LANGUAGE <LL@li.org>\n"
12
+"MIME-Version: 1.0\n"
13
+"Content-Type: text/plain; charset=UTF-8\n"
14
+"Content-Transfer-Encoding: 8bit\n"
15
+
16
+#: _translatorinfo:1
17
+msgid ""
18
+"_: NAME OF TRANSLATORS\n"
19
+"Your names"
20
+msgstr ""
21
+
22
+#: _translatorinfo:2
23
+msgid ""
24
+"_: EMAIL OF TRANSLATORS\n"
25
+"Your emails"
26
+msgstr ""
27
+
28
+#: configure.cpp:128
29
+msgid "You need to select at least one interface to monitor."
30
+msgstr ""
31
+
32
+#: knetstats.cpp:77
33
+msgid "&Help"
34
+msgstr ""
35
+
36
+#: knetstats.cpp:89
37
+msgid "You need kernel 2.6.x with support to the /sys filesystem."
38
+msgstr ""
39
+
40
+#: knetstats.cpp:187
41
+#, c-format
42
+msgid "New interface detected: %1"
43
+msgstr ""
44
+
45
+#: knetstatsview.cpp:92
46
+#, c-format
47
+msgid "Monitoring %1"
48
+msgstr ""
49
+
50
+#: knetstatsview.cpp:152
51
+msgid "%1 is inactive"
52
+msgstr ""
53
+
54
+#: knetstatsview.cpp:155
55
+msgid "%1 is active"
56
+msgstr ""
57
+
58
+#: knetstatsview.cpp:172
59
+msgid "%1 is disconnected"
60
+msgstr ""
61
+
62
+#: knetstatsview.cpp:177
63
+msgid "%1 is connected"
64
+msgstr ""
65
+
66
+#: statisticsbase.ui:24 main.cpp:33
67
+#, no-c-format
68
+msgid "KNetStats"
69
+msgstr ""
70
+
71
+#: main.cpp:39
72
+msgid "A network device monitor."
73
+msgstr ""
74
+
75
+#: main.cpp:45
76
+msgid "_: NAME OF TRANSLATORS"
77
+msgstr ""
78
+
79
+#: main.cpp:45
80
+msgid "_: EMAIL OF TRANSLATORS"
81
+msgstr ""
82
+
83
+#: main.cpp:49
84
+msgid "SCons help, Debian packages, etc."
85
+msgstr ""
86
+
87
+#: main.cpp:50
88
+msgid "Icon themes"
89
+msgstr ""
90
+
91
+#: main.cpp:53
92
+msgid "KNetStats translation to other languages"
93
+msgstr ""
94
+
95
+#: main.cpp:61
96
+msgid ""
97
+"You don't have any network interface.\n"
98
+"KNetStats will quit now."
99
+msgstr ""
100
+
101
+#: statistics.cpp:34
102
+#, c-format
103
+msgid "Details of %1"
104
+msgstr ""
105
+
106
+#: configurebase.ui:24
107
+#, no-c-format
108
+msgid "Configure KNetStats"
109
+msgstr ""
110
+
111
+#: configurebase.ui:63
112
+#, no-c-format
113
+msgid "Ok"
114
+msgstr ""
115
+
116
+#: configurebase.ui:74
117
+#, no-c-format
118
+msgid "Apply"
119
+msgstr ""
120
+
121
+#: configurebase.ui:82
122
+#, no-c-format
123
+msgid "Cancel"
124
+msgstr ""
125
+
126
+#: configurebase.ui:113
127
+#, no-c-format
128
+msgid "Appearance"
129
+msgstr ""
130
+
131
+#: configurebase.ui:150
132
+#, no-c-format
133
+msgid "Theme:"
134
+msgstr ""
135
+
136
+#: configurebase.ui:156
137
+#, no-c-format
138
+msgid "Classic"
139
+msgstr ""
140
+
141
+#: configurebase.ui:161
142
+#, no-c-format
143
+msgid "Modem"
144
+msgstr ""
145
+
146
+#: configurebase.ui:166
147
+#, no-c-format
148
+msgid "Network"
149
+msgstr ""
150
+
151
+#: configurebase.ui:171
152
+#, no-c-format
153
+msgid "Wireless"
154
+msgstr ""
155
+
156
+#: configurebase.ui:176
157
+#, no-c-format
158
+msgid "Kppp"
159
+msgstr ""
160
+
161
+#: configurebase.ui:436 configurebase.ui:513
162
+#, no-c-format
163
+msgid "Download color:"
164
+msgstr ""
165
+
166
+#: configurebase.ui:465 configurebase.ui:505
167
+#, no-c-format
168
+msgid "Upload color:"
169
+msgstr ""
170
+
171
+#: configurebase.ui:489
172
+#, no-c-format
173
+msgid "Background:"
174
+msgstr ""
175
+
176
+#: configurebase.ui:537
177
+#, no-c-format
178
+msgid "Transparent background"
179
+msgstr ""
180
+
181
+#: configurebase.ui:558
182
+#, no-c-format
183
+msgid "Configuration"
184
+msgstr ""
185
+
186
+#: configurebase.ui:567
187
+#, no-c-format
188
+msgid "Icon"
189
+msgstr ""
190
+
191
+#: configurebase.ui:572
192
+#, no-c-format
193
+msgid "Text"
194
+msgstr ""
195
+
196
+#: configurebase.ui:577
197
+#, no-c-format
198
+msgid "Chart"
199
+msgstr ""
200
+
201
+#: configurebase.ui:589
202
+#, no-c-format
203
+msgid "View mode:"
204
+msgstr ""
205
+
206
+#: configurebase.ui:597
207
+#, no-c-format
208
+msgid "Update interval:"
209
+msgstr ""
210
+
211
+#: configurebase.ui:617
212
+#, no-c-format
213
+msgid "ms"
214
+msgstr ""
215
+
216
+#: configurebase.ui:625
217
+#, no-c-format
218
+msgid "To monitor this interface"
219
+msgstr ""
220
+
221
+#: statisticsbase.ui:87
222
+#, no-c-format
223
+msgid "? KB/s"
224
+msgstr ""
225
+
226
+#: statisticsbase.ui:103
227
+#, no-c-format
228
+msgid "0 KB/s"
229
+msgstr ""
230
+
231
+#: statisticsbase.ui:128
232
+#, no-c-format
233
+msgid "&Statistics"
234
+msgstr ""
235
+
236
+#: statisticsbase.ui:139
237
+#, no-c-format
238
+msgid "Upload speed:"
239
+msgstr ""
240
+
241
+#: statisticsbase.ui:147
242
+#, no-c-format
243
+msgid "Received:"
244
+msgstr ""
245
+
246
+#: statisticsbase.ui:155
247
+#, no-c-format
248
+msgid "Download speed:"
249
+msgstr ""
250
+
251
+#: statisticsbase.ui:163
252
+#, no-c-format
253
+msgid "Transmited:"
254
+msgstr ""
255
+
256
+#: statisticsbase.ui:196
257
+#, no-c-format
258
+msgid "Bytes"
259
+msgstr ""
260
+
261
+#: statisticsbase.ui:260
262
+#, no-c-format
263
+msgid "Packets"
264
+msgstr ""
265
+
266
+#: statisticsbase.ui:270
267
+#, no-c-format
268
+msgid "Deta&ils"
269
+msgstr ""
270
+
271
+#: statisticsbase.ui:281
272
+#, no-c-format
273
+msgid "IP:"
274
+msgstr ""
275
+
276
+#: statisticsbase.ui:289
277
+#, no-c-format
278
+msgid "Netmask:"
279
+msgstr ""
280
+
281
+#: statisticsbase.ui:297
282
+#, no-c-format
283
+msgid "MAC:"
284
+msgstr ""
285
+
286
+#: statisticsbase.ui:305
287
+#, no-c-format
288
+msgid "MTU:"
289
+msgstr ""
290
+
291
+#: statisticsbase.ui:451
292
+#, no-c-format
293
+msgid "O&k"
294
+msgstr ""

+ 0
- 1
translations/nl/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/nl/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/pl/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/pl/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/pt/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/pt/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/pt_BR/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/pt_BR/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ru/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/ru/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/sk/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/sk/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/sv/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/sv/messages/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/tr/CMakeLists.txt Zobrazit soubor

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

+ 0
- 1
translations/tr/messages/CMakeLists.txt Zobrazit soubor

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

Loading…
Zrušit
Uložit