Browse 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>
Slávek Banko 2 months ago
parent
commit
deca1cf109
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668

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

+ 9
- 1
po/CMakeLists.txt View File

@@ -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
po/de/CMakeLists.txt View File

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

+ 0
- 1
po/el/CMakeLists.txt View File

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

+ 0
- 1
po/es/CMakeLists.txt View File

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

+ 0
- 1
po/et/CMakeLists.txt View File

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

+ 0
- 1
po/fr/CMakeLists.txt View File

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

+ 0
- 1
po/hu/CMakeLists.txt View File

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

+ 0
- 1
po/it/CMakeLists.txt View File

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

+ 0
- 1
po/ja/CMakeLists.txt View File

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

+ 0
- 1
po/nl/CMakeLists.txt View File

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

+ 0
- 1
po/pl/CMakeLists.txt View File

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

+ 0
- 1
po/pt/CMakeLists.txt View File

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

+ 0
- 1
po/pt_BR/CMakeLists.txt View File

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

+ 0
- 1
po/ru/CMakeLists.txt View File

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

+ 0
- 1
po/sv/CMakeLists.txt View File

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

+ 0
- 1
po/tr/CMakeLists.txt View File

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

+ 507
- 0
po/yakuake.pot View File

@@ -0,0 +1,507 @@
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-13 03:40+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
+#: src/general_settings.cpp:35 src/main_window.cpp:825
29
+#, c-format
30
+msgid "Screen %1"
31
+msgstr ""
32
+
33
+#: src/main.cpp:24
34
+msgid "A Quake-style terminal emulator based on TDE Konsole technology. "
35
+msgstr ""
36
+
37
+#: src/main.cpp:29
38
+msgid "Yakuake"
39
+msgstr ""
40
+
41
+#: src/main.cpp:32
42
+msgid "Maintainer"
43
+msgstr ""
44
+
45
+#: src/main.cpp:33
46
+msgid "Project Founder (Inactive)"
47
+msgstr ""
48
+
49
+#: src/main.cpp:41
50
+msgid "Plastik skin"
51
+msgstr ""
52
+
53
+#: src/main.cpp:42
54
+msgid "Auto-open on pointer touching screen edge"
55
+msgstr ""
56
+
57
+#: src/main_window.cpp:70
58
+msgid "Open/Retract Yakuake"
59
+msgstr ""
60
+
61
+#: src/main_window.cpp:71
62
+msgid "Slides the Yakuake window in and out"
63
+msgstr ""
64
+
65
+#: src/main_window.cpp:84 src/tab_bar.cpp:157
66
+msgid "New Session"
67
+msgstr ""
68
+
69
+#: src/main_window.cpp:88
70
+msgid "Two Terminals, Horizontal"
71
+msgstr ""
72
+
73
+#: src/main_window.cpp:92
74
+msgid "Two Terminals, Vertical"
75
+msgstr ""
76
+
77
+#: src/main_window.cpp:96
78
+msgid "Four Terminals, Quad"
79
+msgstr ""
80
+
81
+#: src/main_window.cpp:100
82
+msgid "Go to Next Terminal"
83
+msgstr ""
84
+
85
+#: src/main_window.cpp:104
86
+msgid "Go to Previous Terminal"
87
+msgstr ""
88
+
89
+#: src/main_window.cpp:108
90
+msgid "Paste"
91
+msgstr ""
92
+
93
+#: src/main_window.cpp:112
94
+msgid "Paste Selection"
95
+msgstr ""
96
+
97
+#: src/main_window.cpp:116
98
+msgid "Rename Session..."
99
+msgstr ""
100
+
101
+#: src/main_window.cpp:120
102
+msgid "Increase Width"
103
+msgstr ""
104
+
105
+#: src/main_window.cpp:123
106
+msgid "Decrease Width"
107
+msgstr ""
108
+
109
+#: src/main_window.cpp:126
110
+msgid "Increase Height"
111
+msgstr ""
112
+
113
+#: src/main_window.cpp:129
114
+msgid "Decrease Height"
115
+msgstr ""
116
+
117
+#: src/main_window.cpp:133
118
+msgid "Configure Global Shortcuts..."
119
+msgstr ""
120
+
121
+#: src/main_window.cpp:138 src/title_bar.cpp:106
122
+msgid "Quit"
123
+msgstr ""
124
+
125
+#: src/main_window.cpp:155
126
+msgid "Go to Next Session"
127
+msgstr ""
128
+
129
+#: src/main_window.cpp:158
130
+msgid "Go to Previous Session"
131
+msgstr ""
132
+
133
+#: src/main_window.cpp:162
134
+msgid "Move Session Left"
135
+msgstr ""
136
+
137
+#: src/main_window.cpp:166
138
+msgid "Move Session Right"
139
+msgstr ""
140
+
141
+#: src/main_window.cpp:170 src/tab_bar.cpp:162
142
+msgid "Close Session"
143
+msgstr ""
144
+
145
+#: src/main_window.cpp:175
146
+msgid "Split Terminal Horizontally"
147
+msgstr ""
148
+
149
+#: src/main_window.cpp:180
150
+msgid "Split Terminal Vertically"
151
+msgstr ""
152
+
153
+#: src/main_window.cpp:185
154
+msgid "Close Terminal"
155
+msgstr ""
156
+
157
+#: src/main_window.cpp:195
158
+#, c-format
159
+msgid "Switch to Session %1"
160
+msgstr ""
161
+
162
+#: src/main_window.cpp:223
163
+msgid ""
164
+"Application successfully started!\n"
165
+"Press %1 to use it..."
166
+msgstr ""
167
+
168
+#: src/main_window.cpp:281
169
+msgid ""
170
+"You have multiple open sessions. These will be killed if you continue.\n"
171
+"\n"
172
+"Are you sure you want to quit?"
173
+msgstr ""
174
+
175
+#: src/main_window.cpp:282
176
+msgid "Really Quit?"
177
+msgstr ""
178
+
179
+#: src/main_window.cpp:284
180
+msgid "C&lose Session"
181
+msgstr ""
182
+
183
+#: src/main_window.cpp:327
184
+msgid "Yakuake Notification"
185
+msgstr ""
186
+
187
+#: src/main_window.cpp:770
188
+msgid "Help"
189
+msgstr ""
190
+
191
+#: src/main_window.cpp:776
192
+msgid "Quick Options"
193
+msgstr ""
194
+
195
+#: src/main_window.cpp:784
196
+msgid "Open on screen"
197
+msgstr ""
198
+
199
+#: src/main_window.cpp:789
200
+msgid "Width"
201
+msgstr ""
202
+
203
+#: src/main_window.cpp:793
204
+msgid "Height"
205
+msgstr ""
206
+
207
+#: src/main_window.cpp:796
208
+msgid "Keep open on focus change"
209
+msgstr ""
210
+
211
+#: src/main_window.cpp:798
212
+msgid "Settings"
213
+msgstr ""
214
+
215
+#: src/general_settings_ui.ui:451 src/main_window.cpp:822
216
+#, no-c-format
217
+msgid "At mouse location"
218
+msgstr ""
219
+
220
+#: src/main_window.cpp:1207
221
+msgid "General"
222
+msgstr ""
223
+
224
+#: src/main_window.cpp:1211
225
+msgid "Skins"
226
+msgstr ""
227
+
228
+#: src/main_window.cpp:1227
229
+msgid "First Run"
230
+msgstr ""
231
+
232
+#: src/skin_list_item.cpp:33
233
+#, c-format
234
+msgid "by %1"
235
+msgstr ""
236
+
237
+#: src/skin_settings.cpp:124
238
+msgid "Unnamed"
239
+msgstr ""
240
+
241
+#: src/skin_settings.cpp:125
242
+msgid "Unknown"
243
+msgstr ""
244
+
245
+#: src/skin_settings.cpp:176
246
+msgid "*.tar.gz *.tar.bz2 *.tar *.zip|Yakuake Skins"
247
+msgstr ""
248
+
249
+#: src/skin_settings.cpp:177
250
+msgid "Select Skin Archive"
251
+msgstr ""
252
+
253
+#: src/skin_settings.cpp:185
254
+msgid "Failed to Download Skin"
255
+msgstr ""
256
+
257
+#: src/skin_settings.cpp:205
258
+msgid "The installer was given a directory, not a file."
259
+msgstr ""
260
+
261
+#: src/skin_settings.cpp:238
262
+msgid ""
263
+"Unable to locate required files in the skin archive.\n"
264
+"\n"
265
+" The archive appears to be invalid."
266
+msgstr ""
267
+
268
+#: src/skin_settings.cpp:241
269
+msgid "Unable to list the skin archive contents."
270
+msgstr ""
271
+
272
+#: src/skin_settings.cpp:264
273
+msgid ""
274
+"This skin appears to be already installed and you lack the required "
275
+"permissions to overwrite it."
276
+msgstr ""
277
+
278
+#: src/skin_settings.cpp:271
279
+msgid "This skin appears to be already installed. Do you want to overwrite it?"
280
+msgstr ""
281
+
282
+#: src/skin_settings.cpp:272
283
+msgid "Skin Already Exists"
284
+msgstr ""
285
+
286
+#: src/skin_settings.cpp:273
287
+msgid "Reinstall Skin"
288
+msgstr ""
289
+
290
+#: src/skin_settings.cpp:295
291
+msgid "Could Not Delete Skin"
292
+msgstr ""
293
+
294
+#: src/skin_settings.cpp:318
295
+msgid "The skin archive file could not be opened."
296
+msgstr ""
297
+
298
+#: src/skin_settings.cpp:324
299
+msgid "Cannot Install Skin"
300
+msgstr ""
301
+
302
+#: src/skin_settings.cpp:349
303
+msgid "Do you want to remove \"%1\" by %2?"
304
+msgstr ""
305
+
306
+#: src/skin_settings.cpp:350 src/skin_settings_ui.ui:35
307
+#, no-c-format
308
+msgid "Remove Skin"
309
+msgstr ""
310
+
311
+#: src/tab_bar.cpp:152
312
+msgid "The tab bar allows you to switch between sessions."
313
+msgstr ""
314
+
315
+#: src/tab_bar.cpp:158
316
+msgid "Adds a new session. Press and hold to select session type from menu."
317
+msgstr ""
318
+
319
+#: src/tab_bar.cpp:163
320
+msgid "Closes the active session."
321
+msgstr ""
322
+
323
+#: src/tabbed_widget.cpp:106
324
+#, c-format
325
+msgid ""
326
+"_n: Shell\n"
327
+"Shell No. %n"
328
+msgstr ""
329
+
330
+#: src/title_bar.cpp:25
331
+msgid "The title bar displays the session title if available."
332
+msgstr ""
333
+
334
+#: src/title_bar.cpp:100
335
+msgid "Keep open when focus is lost"
336
+msgstr ""
337
+
338
+#: src/title_bar.cpp:103
339
+msgid "Open Menu"
340
+msgstr ""
341
+
342
+#: src/first_run_dialog_ui.ui:43
343
+#, no-c-format
344
+msgid "<b>Welcome to Yakuake</b>"
345
+msgstr ""
346
+
347
+#: src/first_run_dialog_ui.ui:65
348
+#, no-c-format
349
+msgid "You can change the shortcut later at any time via the menu."
350
+msgstr ""
351
+
352
+#: src/first_run_dialog_ui.ui:93
353
+#, no-c-format
354
+msgid "None"
355
+msgstr ""
356
+
357
+#: src/first_run_dialog_ui.ui:118
358
+#, no-c-format
359
+msgid ""
360
+"Before using the application, you might want to change the keyboard shortcut "
361
+"used to open and close the Yakuake window:"
362
+msgstr ""
363
+
364
+#: src/general_settings_ui.ui:35
365
+#, no-c-format
366
+msgid "Options"
367
+msgstr ""
368
+
369
+#: src/general_settings_ui.ui:46
370
+#, no-c-format
371
+msgid "Show notification popup at application startup"
372
+msgstr ""
373
+
374
+#: src/general_settings_ui.ui:54
375
+#, no-c-format
376
+msgid "Confirm quit when closing more than one session"
377
+msgstr ""
378
+
379
+#: src/general_settings_ui.ui:62
380
+#, no-c-format
381
+msgid "Show the tab bar"
382
+msgstr ""
383
+
384
+#: src/general_settings_ui.ui:107
385
+#, no-c-format
386
+msgid "Keep window above other windows"
387
+msgstr ""
388
+
389
+#: src/general_settings_ui.ui:110
390
+#, no-c-format
391
+msgid ""
392
+"Enable this option if you want the Yakuake window to keep on top of other "
393
+"windows even when it loses focus."
394
+msgstr ""
395
+
396
+#: src/general_settings_ui.ui:118
397
+#, no-c-format
398
+msgid "Keep window open on focus change"
399
+msgstr ""
400
+
401
+#: src/general_settings_ui.ui:124
402
+#, no-c-format
403
+msgid ""
404
+"Enable this option if you want the Yakuake window to stay open when it loses "
405
+"focus."
406
+msgstr ""
407
+
408
+#: src/general_settings_ui.ui:135
409
+#, no-c-format
410
+msgid "Use Open/Retract action to focus window"
411
+msgstr ""
412
+
413
+#: src/general_settings_ui.ui:138
414
+#, no-c-format
415
+msgid ""
416
+"Enable this option if you want the Open/Retract shortcut to focus the "
417
+"Yakuake window when it is already open but lacks focus. Disable this option "
418
+"to have the Open/Retract shortcut retract the Yakuake window regardless of "
419
+"whether or not it has focus."
420
+msgstr ""
421
+
422
+#: src/general_settings_ui.ui:149
423
+#, no-c-format
424
+msgid "Automatically open when pointer touches screen edge"
425
+msgstr ""
426
+
427
+#: src/general_settings_ui.ui:152
428
+#, no-c-format
429
+msgid ""
430
+"Enable this option if you want the Yakuake window to open when the mouse "
431
+"pointer touches the top edge of the screen."
432
+msgstr ""
433
+
434
+#: src/general_settings_ui.ui:162
435
+#, no-c-format
436
+msgid "Size and Animation"
437
+msgstr ""
438
+
439
+#: src/general_settings_ui.ui:173
440
+#, no-c-format
441
+msgid "Width:"
442
+msgstr ""
443
+
444
+#: src/general_settings_ui.ui:181
445
+#, no-c-format
446
+msgid "Height:"
447
+msgstr ""
448
+
449
+#: src/general_settings_ui.ui:189
450
+#, no-c-format
451
+msgid "Speed:"
452
+msgstr ""
453
+
454
+#: src/general_settings_ui.ui:276
455
+#, no-c-format
456
+msgid ""
457
+"This setting controls the approximate duration of the sliding animation when "
458
+"the Yakuake window is opening or retracting."
459
+msgstr ""
460
+
461
+#: src/general_settings_ui.ui:361
462
+#, no-c-format
463
+msgid "Position"
464
+msgstr ""
465
+
466
+#: src/general_settings_ui.ui:388
467
+#, no-c-format
468
+msgid "Left"
469
+msgstr ""
470
+
471
+#: src/general_settings_ui.ui:424
472
+#, no-c-format
473
+msgid "Right"
474
+msgstr ""
475
+
476
+#: src/general_settings_ui.ui:445
477
+#, no-c-format
478
+msgid "Open on screen:"
479
+msgstr ""
480
+
481
+#: src/general_settings_ui.ui:456
482
+#, no-c-format
483
+msgid "Screen 1"
484
+msgstr ""
485
+
486
+#: src/skin_settings_ui.ui:43
487
+#, no-c-format
488
+msgid "Install Skin..."
489
+msgstr ""
490
+
491
+#: src/skin_settings_ui.ui:62
492
+#, no-c-format
493
+msgid "Skin background color:"
494
+msgstr ""
495
+
496
+#: src/skin_settings_ui.ui:76
497
+#, no-c-format
498
+msgid ""
499
+"This controls the color of the surface that translucent skin elements are "
500
+"composited upon. This setting is only available if Yakuake is run outside of "
501
+"TDE and translucency is unavailable."
502
+msgstr ""
503
+
504
+#: src/skin_settings_ui.ui:101
505
+#, no-c-format
506
+msgid "Skin"
507
+msgstr ""

+ 3
- 0
yakuake/CMakeL10n.txt View File

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

Loading…
Cancel
Save