Browse Source

Add CMakeL10n rules.

Update translation template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 4 months ago
parent
commit
769d754414
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
11 changed files with 55 additions and 62 deletions
  1. 23
    0
      CMakeL10n.txt
  2. 3
    0
      kkbswitch/CMakeL10n.txt
  3. 6
    1
      po/CMakeLists.txt
  4. BIN
      po/bg.gmo
  5. BIN
      po/cs.gmo
  6. BIN
      po/el.gmo
  7. BIN
      po/he.gmo
  8. 23
    61
      po/kkbswitch.pot
  9. BIN
      po/ru.gmo
  10. BIN
      po/sk.gmo
  11. BIN
      po/uk.gmo

+ 23
- 0
CMakeL10n.txt View File

@@ -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
kkbswitch/CMakeL10n.txt View File

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

+ 6
- 1
po/CMakeLists.txt View File

@@ -1 +1,6 @@
1
-tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
1
+# build translations if some are already available
2
+
3
+file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
4
+if( _srcs )
5
+  tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
6
+endif( )

BIN
po/bg.gmo View File


BIN
po/cs.gmo View File


BIN
po/el.gmo View File


BIN
po/he.gmo View File


+ 23
- 61
po/kkbswitch.pot View File

@@ -1,28 +1,42 @@
1 1
 # SOME DESCRIPTIVE TITLE.
2
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
-# This file is distributed under the same license as the PACKAGE package.
4 2
 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 3
 #
6 4
 #, fuzzy
7 5
 msgid ""
8 6
 msgstr ""
9 7
 "Project-Id-Version: PACKAGE VERSION\n"
10
-"POT-Creation-Date: 2004-06-15 23:49+0300\n"
8
+"POT-Creation-Date: 2018-12-10 22:42+0100\n"
11 9
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 10
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 11
 "Language-Team: LANGUAGE <LL@li.org>\n"
14 12
 "MIME-Version: 1.0\n"
15
-"Content-Type: text/plain; charset=CHARSET\n"
13
+"Content-Type: text/plain; charset=UTF-8\n"
16 14
 "Content-Transfer-Encoding: 8bit\n"
17 15
 
18
-#: kbconfig.cpp:85
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
+#: kbconfig.cpp:92
19 29
 msgid "<Unnamed>"
20 30
 msgstr ""
21 31
 
22
-#: kbconfig.cpp:101
32
+#: kbconfig.cpp:108
23 33
 msgid "Activate %1 keyboard layout"
24 34
 msgstr ""
25 35
 
36
+#: kbconfigdlg.cpp:96
37
+msgid "Configure"
38
+msgstr ""
39
+
26 40
 #: kbconfigdlg.cpp:116
27 41
 msgid "&General"
28 42
 msgstr ""
@@ -68,7 +82,7 @@ msgstr ""
68 82
 
69 83
 #: kbconfigdlg.cpp:156
70 84
 msgid ""
71
-"Cick this button to set the layout selected in the list box to the left as "
85
+"Click this button to set the layout selected in the list box to the left as "
72 86
 "the default"
73 87
 msgstr ""
74 88
 
@@ -92,7 +106,7 @@ msgstr ""
92 106
 msgid ""
93 107
 "<p>Select the style of icons representing the current keyboard layout.\n"
94 108
 "You can choose from the following styles:<ul><li><b>Country flag</b> - "
95
-"displays the corresponding contry flag<li><b>Language code</b> - displays "
109
+"displays the corresponding country flag<li><b>Language code</b> - displays "
96 110
 "the language ISO 2-letter code<li><b>Flag and code</b> - displays the "
97 111
 "language code superimposed over the country flag.</ul></p>"
98 112
 msgstr ""
@@ -164,14 +178,6 @@ msgid ""
164 178
 "or four keyboard layouts configured"
165 179
 msgstr ""
166 180
 
167
-#: kbconfigdlg.moc.cpp:34 kbconfigdlg.moc.cpp:42
168
-msgid "KBConfigDlg"
169
-msgstr ""
170
-
171
-#: kbconfig.moc.cpp:42 kbconfig.moc.cpp:47
172
-msgid "KBConfig"
173
-msgstr ""
174
-
175 181
 #: kbpickicondlg.cpp:42
176 182
 msgid "Pick an icon"
177 183
 msgstr ""
@@ -209,6 +215,7 @@ msgid " and also too narrow"
209 215
 msgstr ""
210 216
 
211 217
 #: kbpickicondlg.cpp:108
218
+#, c-format
212 219
 msgid "This image is too big%1."
213 220
 msgstr ""
214 221
 
@@ -233,26 +240,10 @@ msgid ""
233 240
 "corrupt."
234 241
 msgstr ""
235 242
 
236
-#: kbpickicondlg.moc.cpp:34 kbpickicondlg.moc.cpp:42
237
-msgid "KBPickIconDlg"
238
-msgstr ""
239
-
240
-#: kbswitchapp.moc.cpp:34 kbswitchapp.moc.cpp:42
241
-msgid "KBSwitchApp"
242
-msgstr ""
243
-
244
-#: kbswitchintf.moc.cpp:34 kbswitchintf.moc.cpp:42
245
-msgid "KBSwitchIntf"
246
-msgstr ""
247
-
248 243
 #: kbswitchtrayicon.cpp:91 main.cpp:27 main.cpp:41
249 244
 msgid "Keyboard Switch"
250 245
 msgstr ""
251 246
 
252
-#: kbswitchtrayicon.moc.cpp:34 kbswitchtrayicon.moc.cpp:42
253
-msgid "KBSwitchTrayIcon"
254
-msgstr ""
255
-
256 247
 #: main.cpp:44
257 248
 msgid "Creator and maintainer"
258 249
 msgstr ""
@@ -281,32 +272,7 @@ msgstr ""
281 272
 msgid "Slovak translation"
282 273
 msgstr ""
283 274
 
284
-#: singlewindowwatcher.moc.cpp:34 singlewindowwatcher.moc.cpp:42
285
-msgid "SingleWindowWatcher"
286
-msgstr ""
287
-
288
-#: _translatorinfo.cpp:1
289
-msgid ""
290
-"_: NAME OF TRANSLATORS\n"
291
-"Your names"
292
-msgstr ""
293
-
294
-#: _translatorinfo.cpp:3
295
-msgid ""
296
-"_: EMAIL OF TRANSLATORS\n"
297
-"Your emails"
298
-msgstr ""
299
-
300
-#: windowclasswatcher.moc.cpp:34 windowclasswatcher.moc.cpp:42
301
-msgid "WindowClassWatcher"
302
-msgstr ""
303
-
304
-#: windowwatcher.moc.cpp:34 windowwatcher.moc.cpp:42
305
-msgid "WindowWatcher"
306
-msgstr ""
307
-
308 275
 #: xkeyboard.cpp:42
309
-#, c-format
310 276
 msgid ""
311 277
 "This program was built against XKB extension library\n"
312 278
 "version %1.%2, but is run with the library version %3.%4.\n"
@@ -320,7 +286,3 @@ msgid ""
320 286
 "Either the server is not XKB-capable or the extension was disabled.\n"
321 287
 "This program would not work with this server, so it will exit now\n"
322 288
 msgstr ""
323
-
324
-#: xkeyboard.moc.cpp:34 xkeyboard.moc.cpp:42
325
-msgid "XKeyboard"
326
-msgstr ""

BIN
po/ru.gmo View File


BIN
po/sk.gmo View File


BIN
po/uk.gmo View File


Loading…
Cancel
Save