summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-07-12 11:57:33 +0200
committerSlávek Banko <[email protected]>2021-07-12 12:01:18 +0200
commitfe4ffe9ab210d4fad1b68b6e9b2c24092691e267 (patch)
treebb7114eff28102eb6878669632944a4e7df4fdbc /client
parentafce4c2a15b90b87c4a7ffd7f80b3dc506b0441c (diff)
downloadtde-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 <[email protected]>
Diffstat (limited to 'client')
-rw-r--r--client/CMakeL10n.txt5
-rw-r--r--client/config/CMakeL10n.txt3
-rw-r--r--client/config/config.cpp2
-rw-r--r--client/dominoclient.cpp8
4 files changed, 11 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