diff options
author | Slávek Banko <[email protected]> | 2021-07-02 03:22:14 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-07-02 03:48:46 +0200 |
commit | f113d9ade3ac1ae0ae029094fe5d61b45bce8b13 (patch) | |
tree | 1529fac1d287f6212f8b7c2682afe108b1a5276d /client | |
parent | f5dd4b1e8d22437603cc7c4f481bdd2a02500750 (diff) | |
download | twin-style-crystal-f113d9ade3ac1ae0ae029094fe5d61b45bce8b13.tar.gz twin-style-crystal-f113d9ade3ac1ae0ae029094fe5d61b45bce8b13.zip |
Add CMakeL10n rules for messages and desktop files.
Add TDEGlobal::locale()->insertCatalogue(...).
Signed-off-by: Slávek Banko <[email protected]>
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; |