diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-07-02 03:22:14 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-07-04 01:18:59 +0200 |
commit | 6bfd2156f3af61f40e9136ce4191ab72d8f7ab9b (patch) | |
tree | 6bb8e106d9af1542474037b89505ef0cc1b6c671 /client | |
parent | 2a158538402d410cbaed3daa817b975c1b3b824f (diff) | |
download | twin-style-crystal-6bfd2156f3af61f40e9136ce4191ab72d8f7ab9b.tar.gz twin-style-crystal-6bfd2156f3af61f40e9136ce4191ab72d8f7ab9b.zip |
Add CMakeL10n rules for messages and desktop files.
Add TDEGlobal::locale()->insertCatalogue(...).
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f113d9ade3ac1ae0ae029094fe5d61b45bce8b13)
Diffstat (limited to 'client')
-rw-r--r-- | client/CMakeL10n.txt | 8 | ||||
-rw-r--r-- | client/config/crystalconfig.cpp | 4 | ||||
-rw-r--r-- | client/crystalclient.cpp | 3 |
3 files changed, 14 insertions, 1 deletions
diff --git a/client/CMakeL10n.txt b/client/CMakeL10n.txt new file mode 100644 index 0000000..2ef5a48 --- /dev/null +++ b/client/CMakeL10n.txt @@ -0,0 +1,8 @@ +##### create translation templates ############## + +tde_l10n_create_template( "messages/twin-style-crystal" ) + +tde_l10n_create_template( + CATALOG "desktop_files/twin-style-crystal-desktops" + SOURCES *.desktop +) diff --git a/client/config/crystalconfig.cpp b/client/config/crystalconfig.cpp index 85f0d9d..abc37c2 100644 --- a/client/config/crystalconfig.cpp +++ b/client/config/crystalconfig.cpp @@ -48,8 +48,10 @@ CrystalConfig::CrystalConfig(TDEConfig*, TQWidget* parent) : TQObject(parent), config_(0), dialog_(0) { + TDEGlobal::locale()->insertCatalogue("twin_clients"); + TDEGlobal::locale()->insertCatalogue("twin-style-crystal"); + config_ = new TDEConfig("twincrystalrc"); - dialog_ = new ConfigDialog(parent); dialog_->show(); diff --git a/client/crystalclient.cpp b/client/crystalclient.cpp index 08483fd..41d2e6c 100644 --- a/client/crystalclient.cpp +++ b/client/crystalclient.cpp @@ -86,6 +86,9 @@ public: CrystalFactory::CrystalFactory() { + TDEGlobal::locale()->insertCatalogue("twin_clients"); + TDEGlobal::locale()->insertCatalogue("twin-style-crystal"); + for (int i=0;i<ButtonImageCount;i++) buttonImages[i]=NULL; |