Browse Source

Add CMakeL10n rules.

Create translation template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 2 months ago
parent
commit
e1a137e859
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
4 changed files with 1490 additions and 1 deletions
  1. 23
    0
      CMakeL10n.txt
  2. 3
    0
      krename/CMakeL10n.txt
  3. 6
    1
      po/CMakeLists.txt
  4. 1458
    0
      po/krename.pot

+ 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
krename/CMakeL10n.txt View File

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

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

+ 1458
- 0
po/krename.pot
File diff suppressed because it is too large
View File


Loading…
Cancel
Save