summaryrefslogtreecommitdiffstats
path: root/kxkb/rules.h
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-07 08:03:16 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2024-03-03 17:14:21 +0000
commit18a8b8d43577941388fa40666641f628860d6f7a (patch)
tree6a8235e35bfceb4d28911820af24cf4fa6a2c920 /kxkb/rules.h
parent1fea8982fd2f256273989956d962a3daa848041f (diff)
downloadtdebase-18a8b8d43577941388fa40666641f628860d6f7a.tar.gz
tdebase-18a8b8d43577941388fa40666641f628860d6f7a.zip
kxkb: utilize a translations provseided by xkeyboard-config
xkeyboard-config package comes with a message catalogue of its own to translate locale, keyboard model and xkb option names. It would be easier and more robust to utilize it instead of redoing all translation in-house. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'kxkb/rules.h')
-rw-r--r--kxkb/rules.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kxkb/rules.h b/kxkb/rules.h
index e7a6e8840..0a68f3dbf 100644
--- a/kxkb/rules.h
+++ b/kxkb/rules.h
@@ -3,6 +3,7 @@
#include <tqstring.h>
#include <tqdict.h>
+#include <tqstringlist.h>
#include <tqmap.h>
#include "layoutunit.h"
@@ -21,6 +22,9 @@ public:
TQString getLayoutName(LayoutUnit layout) const;
+ /// A helper to translate option description
+ static TQString trOpt(TQString opt);
+
protected:
void loadRules(TQString filename, bool layoutsOnly=false);