diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-07-12 11:57:33 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-07-12 12:01:18 +0200 |
commit | fe4ffe9ab210d4fad1b68b6e9b2c24092691e267 (patch) | |
tree | bb7114eff28102eb6878669632944a4e7df4fdbc | |
parent | afce4c2a15b90b87c4a7ffd7f80b3dc506b0441c (diff) | |
download | tde-style-domino-fe4ffe9ab210d4fad1b68b6e9b2c24092691e267.tar.gz tde-style-domino-fe4ffe9ab210d4fad1b68b6e9b2c24092691e267.zip |
Add twin client translations into template.
Rename template from twin_domino_config to twin_domino.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | client/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | client/config/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | client/config/config.cpp | 2 | ||||
-rw-r--r-- | client/dominoclient.cpp | 8 | ||||
-rw-r--r-- | translations/messages/twin_domino/twin_domino.pot | 88 |
5 files changed, 99 insertions, 7 deletions
diff --git a/client/CMakeL10n.txt b/client/CMakeL10n.txt index b585ce4..b184051 100644 --- a/client/CMakeL10n.txt +++ b/client/CMakeL10n.txt @@ -1,3 +1,6 @@ ##### create translation templates ############## -tde_l10n_auto_add_subdirectories( ) +tde_l10n_create_template( "messages/twin_domino/" + SOURCES . + X-POT ${CMAKE_SOURCE_DIR}/../../../core/tde-i18n/template/messages/tdebase/twin_clients.pot +) diff --git a/client/config/CMakeL10n.txt b/client/config/CMakeL10n.txt deleted file mode 100644 index a3fb7f1..0000000 --- a/client/config/CMakeL10n.txt +++ /dev/null @@ -1,3 +0,0 @@ -##### create translation templates ############## - -tde_l10n_create_template( "messages/twin_domino_config/" ) diff --git a/client/config/config.cpp b/client/config/config.cpp index 11a5ef0..ff6deeb 100644 --- a/client/config/config.cpp +++ b/client/config/config.cpp @@ -49,7 +49,7 @@ DominoConfig::DominoConfig( TDEConfig* config, TQWidget* parent ) conf = new TDEConfig("twindominorc"); TDEGlobal::locale()->insertCatalogue("twin_clients"); - TDEGlobal::locale()->insertCatalogue("twin_domino_config"); + TDEGlobal::locale()->insertCatalogue("twin_domino"); vBox = new TQVBox( parent ); diff --git a/client/dominoclient.cpp b/client/dominoclient.cpp index 75af3f3..a6162dd 100644 --- a/client/dominoclient.cpp +++ b/client/dominoclient.cpp @@ -25,6 +25,7 @@ #include <tdeconfig.h> #include <tdeglobal.h> +#include <tdelocale.h> #include <tqlayout.h> #include <tqbitmap.h> #include <tqimage.h> @@ -105,7 +106,10 @@ const int borderWidth = 5; DominoHandler::DominoHandler() { int ignore, maj, min; - + + TDEGlobal::locale()->insertCatalogue("twin_clients"); + TDEGlobal::locale()->insertCatalogue("twin_domino"); + if(XShapeQueryExtension(tqt_xdisplay(), &ignore, &ignore) && XShapeQueryVersion(tqt_xdisplay(), &maj, &min) && maj >= 1 && min >= 1) { @@ -651,7 +655,7 @@ DominoClient::~DominoClient() TQString DominoClient::visibleName() const { - return "Domino"; + return i18n("Domino"); } TQString DominoClient::defaultButtonsLeft() const diff --git a/translations/messages/twin_domino/twin_domino.pot b/translations/messages/twin_domino/twin_domino.pot new file mode 100644 index 0000000..9216151 --- /dev/null +++ b/translations/messages/twin_domino/twin_domino.pot @@ -0,0 +1,88 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2021-07-12 11:56+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/config.cpp:56 +msgid "Custom border color" +msgstr "" + +#: config/config.cpp:61 +msgid "Custom button color" +msgstr "" + +#: config/config.cpp:66 +msgid "Custom button icon color" +msgstr "" + +#: config/config.cpp:71 +msgid "Custom gradient colors" +msgstr "" + +#: config/config.cpp:76 +msgid "Top gradient color" +msgstr "" + +#: config/config.cpp:78 +msgid "Bottom gradient color" +msgstr "" + +#: config/config.cpp:81 +msgid "Show inactive buttons" +msgstr "" + +#: config/config.cpp:82 +msgid "Show button icons" +msgstr "" + +#: config/config.cpp:83 +msgid "Dark window frame" +msgstr "" + +#: config/config.cpp:90 +msgid "Button contour colors:" +msgstr "" + +#: config/config.cpp:98 +msgid "Standard color:" +msgstr "" + +#: config/config.cpp:101 +msgid "Mouseover color:" +msgstr "" + +#: config/config.cpp:103 +msgid "Pressed color:" +msgstr "" + +#: config/config.cpp:106 +msgid "Use domino style contour colors" +msgstr "" + +#: dominoclient.cpp:658 +msgid "Domino" +msgstr "" |