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 #include +#include #include #include #include @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 ""