Move translations to a new directory layout.

Add support for LINGUAS for listing translations to install.
Added catalog for TWin client.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 4 years ago
parent bb945af0ac
commit 6b4ac8969c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -71,7 +71,7 @@ add_subdirectory( client )
add_subdirectory( domino ) add_subdirectory( domino )
add_subdirectory( dominoConfig ) add_subdirectory( dominoConfig )
#tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
##### write configure files ##### write configure files

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/twin_domino_config/" )

@ -49,6 +49,7 @@ DominoConfig::DominoConfig( TDEConfig* config, TQWidget* parent )
conf = new TDEConfig("twindominorc"); conf = new TDEConfig("twindominorc");
TDEGlobal::locale()->insertCatalogue("twin_clients"); TDEGlobal::locale()->insertCatalogue("twin_clients");
TDEGlobal::locale()->insertCatalogue("twin_domino_config");
vBox = new TQVBox( parent ); vBox = new TQVBox( parent );

@ -1,3 +1,3 @@
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( "tdestyle_domino_config" ) tde_l10n_create_template( "messages/tdestyle_domino_config/" )

@ -0,0 +1 @@
tde_auto_add_subdirectories()

@ -0,0 +1,14 @@
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" )
foreach( _po ${po_files} )
get_filename_component( _lang ${_po} NAME_WE )
if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
if( "${_po}" MATCHES "^([^/]*)/.*" )
string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" )
else( )
set( _component "${PROJECT_NAME}" )
endif( )
tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} )
endif( )
endforeach( )

@ -0,0 +1,245 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-11 04:29+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: dominoconf.cpp:117
msgid "General"
msgstr ""
#: dominoconf.cpp:119
msgid "Animate progress bars"
msgstr ""
#: dominoconf.cpp:121
msgid "Center tabs"
msgstr ""
#: dominoconf.cpp:122
msgid "Triangular tree expander"
msgstr ""
#: dominoconf.cpp:123
msgid "Smoother scrolling (works best with line steps bigger than 3)"
msgstr ""
#: dominoconf.cpp:133
msgid "Custom checkmark color"
msgstr ""
#: dominoconf.cpp:138
msgid "Custom tooltip color"
msgstr ""
#: dominoconf.cpp:143
msgid "Highlight tool button icons on mouse over"
msgstr ""
#: dominoconf.cpp:145
msgid "Draw tool buttons as normal buttons"
msgstr ""
#: dominoconf.cpp:151
msgid "Rubber band options:"
msgstr ""
#: dominoconf.cpp:162
msgid "Solid line"
msgstr ""
#: dominoconf.cpp:163
msgid "Distribution's default"
msgstr ""
#: dominoconf.cpp:164
msgid "Semi transparent (requires a running composite manager)"
msgstr ""
#: dominoconf.cpp:170
msgid "Color:"
msgstr ""
#: dominoconf.cpp:173 dominoconf.cpp:329 dominoconf.cpp:344 dominoconf.cpp:408
#: dominoconf.cpp:436
msgid "Opacity:"
msgstr ""
#: dominoconf.cpp:198
msgid "Popupmenu options:"
msgstr ""
#: dominoconf.cpp:210
msgid "Custom popupmenu color"
msgstr ""
#: dominoconf.cpp:216
msgid "Custom selected menu item color"
msgstr ""
#: dominoconf.cpp:221
msgid "Draw a gradient"
msgstr ""
#: dominoconf.cpp:222
msgid "Indent menu items"
msgstr ""
#: dominoconf.cpp:233
msgid "Tint groupbox background"
msgstr ""
#: dominoconf.cpp:266
msgid "Brightness:"
msgstr ""
#: dominoconf.cpp:267
msgid "brighter"
msgstr ""
#: dominoconf.cpp:268
msgid "darker"
msgstr ""
#: dominoconf.cpp:281
msgid "Custom background color"
msgstr ""
#: dominoconf.cpp:322 dominoconf.cpp:402
msgid "Button color:"
msgstr ""
#: dominoconf.cpp:359 dominoconf.cpp:367
msgid "focused"
msgstr ""
#: dominoconf.cpp:413 dominoconf.cpp:441
msgid "Position:"
msgstr ""
#: dominoconf.cpp:417 dominoconf.cpp:445
msgid "top left"
msgstr ""
#: dominoconf.cpp:418 dominoconf.cpp:446
msgid "top"
msgstr ""
#: dominoconf.cpp:419 dominoconf.cpp:447
msgid "top right"
msgstr ""
#: dominoconf.cpp:420 dominoconf.cpp:448
msgid "right"
msgstr ""
#: dominoconf.cpp:421 dominoconf.cpp:449
msgid "bottom right"
msgstr ""
#: dominoconf.cpp:422 dominoconf.cpp:450
msgid "bottom"
msgstr ""
#: dominoconf.cpp:423 dominoconf.cpp:451
msgid "bottom left"
msgstr ""
#: dominoconf.cpp:424 dominoconf.cpp:452
msgid "left"
msgstr ""
#: dominoconf.cpp:466 dominoconf.cpp:476
msgid "123 text"
msgstr ""
#: dominoconf.cpp:500
msgid "Draw a shadow on pressed sunken buttons"
msgstr ""
#: dominoconf.cpp:505
msgid "Button Type:"
msgstr ""
#: dominoconf.cpp:507
msgid "Sunken"
msgstr ""
#: dominoconf.cpp:508
msgid "Raised"
msgstr ""
#: dominoconf.cpp:515
msgid "Button contour colors:"
msgstr ""
#: dominoconf.cpp:531
msgid "Standard color:"
msgstr ""
#: dominoconf.cpp:533
msgid "Mouseover color:"
msgstr ""
#: dominoconf.cpp:535
msgid "Pressed color:"
msgstr ""
#: dominoconf.cpp:537
msgid "Defaultbutton color:"
msgstr ""
#: dominoconf.cpp:2403 dominoconf.cpp:3826
msgid "Currently loaded config: "
msgstr ""
#: dominoconf.cpp:3327 dominoconf.cpp:3328
msgid "modified"
msgstr ""
#: dominoconf.cpp:3807 dominoconf.cpp:3818 dominoconf.cpp:3921
msgid "Save Config Scheme"
msgstr ""
#: dominoconf.cpp:3807
msgid "Enter a name for the config scheme:"
msgstr ""
#: dominoconf.cpp:3816 dominoconf.cpp:3919
msgid ""
"A config scheme with the name '%1' already exists.\n"
"Do you want to overwrite it?\n"
msgstr ""
#: dominoconf.cpp:3818 dominoconf.cpp:3921
msgid "Overwrite"
msgstr ""
#: dominoconf.cpp:3909
msgid "unnamed"
msgstr ""
#: dominoconf.cpp:3929
msgid "Import failed."
msgstr ""

@ -0,0 +1,247 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-11 04:29+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: dominoconf.cpp:117
msgid "General"
msgstr ""
#: dominoconf.cpp:119
msgid "Animate progress bars"
msgstr ""
#: dominoconf.cpp:121
msgid "Center tabs"
msgstr ""
#: dominoconf.cpp:122
msgid "Triangular tree expander"
msgstr ""
#: dominoconf.cpp:123
msgid "Smoother scrolling (works best with line steps bigger than 3)"
msgstr ""
#: dominoconf.cpp:133
msgid "Custom checkmark color"
msgstr ""
#: dominoconf.cpp:138
msgid "Custom tooltip color"
msgstr ""
#: dominoconf.cpp:143
msgid "Highlight tool button icons on mouse over"
msgstr ""
#: dominoconf.cpp:145
msgid "Draw tool buttons as normal buttons"
msgstr ""
#: dominoconf.cpp:151
msgid "Rubber band options:"
msgstr ""
#: dominoconf.cpp:162
msgid "Solid line"
msgstr ""
#: dominoconf.cpp:163
msgid "Distribution's default"
msgstr ""
#: dominoconf.cpp:164
msgid "Semi transparent (requires a running composite manager)"
msgstr ""
#: dominoconf.cpp:170
msgid "Color:"
msgstr ""
#: dominoconf.cpp:173 dominoconf.cpp:329 dominoconf.cpp:344 dominoconf.cpp:408
#: dominoconf.cpp:436
msgid "Opacity:"
msgstr ""
#: dominoconf.cpp:198
msgid "Popupmenu options:"
msgstr ""
#: dominoconf.cpp:210
msgid "Custom popupmenu color"
msgstr ""
#: dominoconf.cpp:216
msgid "Custom selected menu item color"
msgstr ""
#: dominoconf.cpp:221
msgid "Draw a gradient"
msgstr ""
#: dominoconf.cpp:222
msgid "Indent menu items"
msgstr ""
#: dominoconf.cpp:233
msgid "Tint groupbox background"
msgstr ""
#: dominoconf.cpp:266
msgid "Brightness:"
msgstr ""
#: dominoconf.cpp:267
msgid "brighter"
msgstr ""
#: dominoconf.cpp:268
msgid "darker"
msgstr ""
#: dominoconf.cpp:281
msgid "Custom background color"
msgstr ""
#: dominoconf.cpp:322 dominoconf.cpp:402
msgid "Button color:"
msgstr ""
#: dominoconf.cpp:359 dominoconf.cpp:367
msgid "focused"
msgstr ""
#: dominoconf.cpp:413 dominoconf.cpp:441
msgid "Position:"
msgstr ""
#: dominoconf.cpp:417 dominoconf.cpp:445
msgid "top left"
msgstr ""
#: dominoconf.cpp:418 dominoconf.cpp:446
msgid "top"
msgstr ""
#: dominoconf.cpp:419 dominoconf.cpp:447
msgid "top right"
msgstr ""
#: dominoconf.cpp:420 dominoconf.cpp:448
msgid "right"
msgstr ""
#: dominoconf.cpp:421 dominoconf.cpp:449
msgid "bottom right"
msgstr ""
#: dominoconf.cpp:422 dominoconf.cpp:450
msgid "bottom"
msgstr ""
#: dominoconf.cpp:423 dominoconf.cpp:451
msgid "bottom left"
msgstr ""
#: dominoconf.cpp:424 dominoconf.cpp:452
msgid "left"
msgstr ""
#: dominoconf.cpp:466 dominoconf.cpp:476
msgid "123 text"
msgstr ""
#: dominoconf.cpp:500
msgid "Draw a shadow on pressed sunken buttons"
msgstr ""
#: dominoconf.cpp:505
msgid "Button Type:"
msgstr ""
#: dominoconf.cpp:507
msgid "Sunken"
msgstr ""
#: dominoconf.cpp:508
msgid "Raised"
msgstr ""
#: dominoconf.cpp:515
msgid "Button contour colors:"
msgstr ""
#: dominoconf.cpp:531
msgid "Standard color:"
msgstr ""
#: dominoconf.cpp:533
msgid "Mouseover color:"
msgstr ""
#: dominoconf.cpp:535
msgid "Pressed color:"
msgstr ""
#: dominoconf.cpp:537
msgid "Defaultbutton color:"
msgstr ""
#: dominoconf.cpp:2403 dominoconf.cpp:3826
msgid "Currently loaded config: "
msgstr ""
#: dominoconf.cpp:3327 dominoconf.cpp:3328
msgid "modified"
msgstr ""
#: dominoconf.cpp:3807 dominoconf.cpp:3818 dominoconf.cpp:3921
msgid "Save Config Scheme"
msgstr ""
#: dominoconf.cpp:3807
msgid "Enter a name for the config scheme:"
msgstr ""
#: dominoconf.cpp:3816 dominoconf.cpp:3919
msgid ""
"A config scheme with the name '%1' already exists.\n"
"Do you want to overwrite it?\n"
msgstr ""
#: dominoconf.cpp:3818 dominoconf.cpp:3921
msgid "Overwrite"
msgstr ""
#: dominoconf.cpp:3909
msgid "unnamed"
msgstr ""
#: dominoconf.cpp:3929
msgid "Import failed."
msgstr ""

@ -0,0 +1,84 @@
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-07-07 18:45+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#. Instead of a literal translation, add your email to the end of the list (separated by a comma).
#, ignore-inconsistent
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: config.cpp:56
msgid "Custom border color"
msgstr ""
#: config.cpp:61
msgid "Custom button color"
msgstr ""
#: config.cpp:66
msgid "Custom button icon color"
msgstr ""
#: config.cpp:71
msgid "Custom gradient colors"
msgstr ""
#: config.cpp:76
msgid "Top gradient color"
msgstr ""
#: config.cpp:78
msgid "Bottom gradient color"
msgstr ""
#: config.cpp:81
msgid "Show inactive buttons"
msgstr ""
#: config.cpp:82
msgid "Show button icons"
msgstr ""
#: config.cpp:83
msgid "Dark window frame"
msgstr ""
#: config.cpp:90
msgid "Button contour colors:"
msgstr ""
#: config.cpp:98
msgid "Standard color:"
msgstr ""
#: config.cpp:101
msgid "Mouseover color:"
msgstr ""
#: config.cpp:103
msgid "Pressed color:"
msgstr ""
#: config.cpp:106
msgid "Use domino style contour colors"
msgstr ""
Loading…
Cancel
Save