summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-25 23:51:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-25 23:55:09 +0100
commit33b1478f8e1e3505c944ccdf59827a914a402e6c (patch)
tree72e2a340d91f156eadc173cf209a31eefb897b6a
parent120871627bbdb2d2e760fa2c3abad466e38e872e (diff)
gui/options-dialog: pretty-print mouse buttons
Issue: #583
-rw-r--r--gui/lang/nl_NL.ts4
-rw-r--r--gui/lang/ru_RU.ts4
-rw-r--r--gui/lang/stub.ts4
-rw-r--r--gui/lang/zh_CN.ts4
-rw-r--r--gui/options-dialog.cpp5
5 files changed, 20 insertions, 1 deletions
diff --git a/gui/lang/nl_NL.ts b/gui/lang/nl_NL.ts
index 7dc8d899..95066985 100644
--- a/gui/lang/nl_NL.ts
+++ b/gui/lang/nl_NL.ts
@@ -396,6 +396,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>Filter</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>Mouse %1</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>process_detector</name>
diff --git a/gui/lang/ru_RU.ts b/gui/lang/ru_RU.ts
index a8cc6040..aad93005 100644
--- a/gui/lang/ru_RU.ts
+++ b/gui/lang/ru_RU.ts
@@ -399,6 +399,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>Filter</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>Mouse %1</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>process_detector</name>
diff --git a/gui/lang/stub.ts b/gui/lang/stub.ts
index 6baac339..c502d162 100644
--- a/gui/lang/stub.ts
+++ b/gui/lang/stub.ts
@@ -396,6 +396,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>Filter</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <source>Mouse %1</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>process_detector</name>
diff --git a/gui/lang/zh_CN.ts b/gui/lang/zh_CN.ts
index 8c887e06..d4eeda75 100644
--- a/gui/lang/zh_CN.ts
+++ b/gui/lang/zh_CN.ts
@@ -397,6 +397,10 @@ Press &quot;clear calibration&quot; to remove any calibration data pertaining to
<source>Filter</source>
<translation>过滤器</translation>
</message>
+ <message>
+ <source>Mouse %1</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
<context>
<name>process_detector</name>
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index d121a0bd..d1769ea8 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -30,7 +30,10 @@ QString options_dialog::kopts_to_string(const key_opts& kopts)
if (mods & Qt::ControlModifier) mm += "Control+";
if (mods & Qt::AltModifier) mm += "Alt+";
if (mods & Qt::ShiftModifier) mm += "Shift+";
- return mm + tr("Joy button %1").arg(QString::number(btn));
+ const auto& str = kopts.guid == QStringLiteral("mouse")
+ ? tr("Mouse %1")
+ : tr("Joy button %1");
+ return mm + str.arg(QString::number(btn));
}
if (kopts.keycode->isEmpty())
return tr("None");