From fe4ffe9ab210d4fad1b68b6e9b2c24092691e267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 12 Jul 2021 11:57:33 +0200 Subject: Add twin client translations into template. Rename template from twin_domino_config to twin_domino. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- client/CMakeL10n.txt | 5 ++++- client/config/CMakeL10n.txt | 3 --- client/config/config.cpp | 2 +- client/dominoclient.cpp | 8 ++++++-- 4 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 client/config/CMakeL10n.txt (limited to 'client') 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 -- cgit v1.2.1