Browse Source

Add CMakeL10n rules.

Create translation template.
Add CMake rules to build translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 5 months ago
parent
commit
a037fdbd50
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
5 changed files with 172 additions and 0 deletions
  1. 23
    0
      CMakeL10n.txt
  2. 3
    0
      CMakeLists.txt
  3. 6
    0
      po/CMakeLists.txt
  4. 137
    0
      po/tdmtheme.pot
  5. 3
    0
      src/CMakeL10n.txt

+ 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
CMakeLists.txt View File

@@ -48,6 +48,8 @@ option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden"
48 48
 
49 49
 option( BUILD_ALL "Build all" ON                     )
50 50
 option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
51
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
52
+
51 53
 
52 54
 ##### configure checks
53 55
 
@@ -67,6 +69,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
67 69
 
68 70
 add_subdirectory( src )
69 71
 tde_conditional_add_subdirectory( BUILD_DOC doc )
72
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
70 73
 
71 74
 
72 75
 ##### write configure files

+ 6
- 0
po/CMakeLists.txt View File

@@ -0,0 +1,6 @@
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( )

+ 137
- 0
po/tdmtheme.pot View File

@@ -0,0 +1,137 @@
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-10 22:12+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
+#: tdmtheme.cpp:71
29
+msgid ""
30
+"Theming is not available due to enabled Secure Attention Key (SAK) support"
31
+msgstr ""
32
+
33
+#: tdmtheme.cpp:76
34
+msgid "En&able TDM Themes"
35
+msgstr ""
36
+
37
+#: tdmtheme.cpp:80
38
+msgid "Theme"
39
+msgstr ""
40
+
41
+#: tdmtheme.cpp:81
42
+msgid "Author"
43
+msgstr ""
44
+
45
+#: tdmtheme.cpp:85
46
+msgid ""
47
+"This is a list of installed themes.\n"
48
+"Click the one to be used."
49
+msgstr ""
50
+
51
+#: tdmtheme.cpp:93
52
+msgid "This is a screen shot of what TDM will look like."
53
+msgstr ""
54
+
55
+#: tdmtheme.cpp:100
56
+msgid "This contains information about the selected theme."
57
+msgstr ""
58
+
59
+#: tdmtheme.cpp:104
60
+msgid "Install &new theme"
61
+msgstr ""
62
+
63
+#: tdmtheme.cpp:105
64
+msgid "This will install a theme into the theme directory."
65
+msgstr ""
66
+
67
+#: tdmtheme.cpp:109
68
+msgid "&Remove theme"
69
+msgstr ""
70
+
71
+#: tdmtheme.cpp:110
72
+msgid "This will remove the selected theme."
73
+msgstr ""
74
+
75
+#: tdmtheme.cpp:163
76
+msgid ""
77
+"I can't find the configuration file for the Login Manager, tdm. Check you "
78
+"have set up the Login Manager from the Control Center, and that you have "
79
+"permision to read and write the Login Manager's configuration file.\n"
80
+"\n"
81
+" You must set-up the Login Manager before you can use its themes."
82
+msgstr ""
83
+
84
+#: tdmtheme.cpp:163
85
+msgid "Can't find Configuration File"
86
+msgstr ""
87
+
88
+#: tdmtheme.cpp:274
89
+msgid "<qt><strong>Copyright:</strong> %1<br/></qt>"
90
+msgstr ""
91
+
92
+#: tdmtheme.cpp:278
93
+msgid "<qt><strong>Description:</strong> %1</qt>"
94
+msgstr ""
95
+
96
+#: tdmtheme.cpp:283 tdmtheme.cpp:287
97
+msgid "Screenshot not available"
98
+msgstr ""
99
+
100
+#: tdmtheme.cpp:285
101
+msgid "No theme selected."
102
+msgstr ""
103
+
104
+#: tdmtheme.cpp:293
105
+msgid "Drag or Type Theme URL"
106
+msgstr ""
107
+
108
+#: tdmtheme.cpp:304
109
+#, c-format
110
+msgid "Unable to find the TDM theme archive %1."
111
+msgstr ""
112
+
113
+#: tdmtheme.cpp:306
114
+msgid ""
115
+"Unable to download the TDM theme archive;\n"
116
+"please check that address %1 is correct."
117
+msgstr ""
118
+
119
+#: tdmtheme.cpp:332
120
+msgid "The file is not a valid TDM theme archive."
121
+msgstr ""
122
+
123
+#: tdmtheme.cpp:335
124
+msgid "Installing TDM themes"
125
+msgstr ""
126
+
127
+#: tdmtheme.cpp:343
128
+msgid "<qt>Installing <strong>%1</strong> theme</qt>"
129
+msgstr ""
130
+
131
+#: tdmtheme.cpp:379
132
+msgid "Are you sure you want to remove this TDM theme?"
133
+msgstr ""
134
+
135
+#: tdmtheme.cpp:380
136
+msgid "Remove theme?"
137
+msgstr ""

+ 3
- 0
src/CMakeL10n.txt View File

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

Loading…
Cancel
Save