Skip to content

Commit 0bff92b

Browse files
fix: add Lao language support and enhance shortcut configurations (#118)
* fix: add Lao language support and enhance shortcut configurations - Added Lao language ("lo") to the language options in the translation script. - Updated shortcut translations across multiple language files to ensure consistency and accuracy. - Improved layout and padding in the QML ShortcutsModule for better user experience. Log: enhance language support and user interface in the configuration tool bug: https://pms.uniontech.com/bug-view-336363.html https://pms.uniontech.com/bug-view-336443.html * chore: Update version to 6.0.19 - update version to 6.0.19 log: update version to 6.0.19
1 parent 9c37077 commit 0bff92b

24 files changed

Lines changed: 351 additions & 179 deletions

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
deepin-fcitx5configtool-plugin (6.0.19) unstable; urgency=medium
2+
3+
* fix: add Lao translation file & font alignment issue
4+
5+
-- dengzhongyuan <dengzhongyuan@uniontech.com> Sat, 11 Oct 2025 09:47:03 +0800
6+
17
deepin-fcitx5configtool-plugin (6.0.18) unstable; urgency=medium
28

39
* feat: enhance shortcut configuration in QML

src/dcc-fcitx5configtool/lupdate_ts.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ LANGUAGES=(
2525
"zh_CN" # 简体中文
2626
"zh_HK" # 香港繁体
2727
"zh_TW" # 台湾繁体
28+
"lo" # 老挝语
2829
)
2930

3031
# 创建翻译目录(如果不存在)

src/dcc-fcitx5configtool/operation/fcitx5configtool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace fcitx5configtool {
3333
static QString kFcitxConfigGlobalPath = "fcitx://config/global";
3434
static const QString kSogouAddonUniqueName = "com.sogou.ime.ng.fcitx5.deepin-addon";
3535
static const QString kSogouIMUniqueName = "com.sogou.ime.ng.fcitx5.deepin";
36-
static const QString kSogouConfigureAppId = "com.sogou.ime.ng.fcitx5.deepin.configurer";
36+
static const QString kSogouConfigureAppId = "sogou-ime-setting";
3737

3838
Fcitx5ConfigToolWorkerPrivate::Fcitx5ConfigToolWorkerPrivate(Fcitx5ConfigToolWorker *parent)
3939
: QObject(parent), q(parent)

src/dcc-fcitx5configtool/qml/ShortcutsModule.qml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ DccObject {
230230
flat: true
231231
model: enumKeysI18n
232232
currentIndex: enumerateForwardKeys
233+
FontMetrics { id: enumFm; font: comboBox.font }
234+
topPadding: 4
235+
bottomPadding: 6
236+
implicitHeight: enumFm.height + topPadding + bottomPadding
237+
clip: false
233238
// 恢复默认 delegate,由主题负责显示选中项勾号
234239

235240
Component.onCompleted: {
@@ -273,6 +278,11 @@ DccObject {
273278
flat: true
274279
model: triggerEnumKeysI18n
275280
currentIndex: currentTriggerKeys
281+
FontMetrics { id: triggerFm; font: triggerComboBox.font }
282+
topPadding: 4
283+
bottomPadding: 6
284+
implicitHeight: triggerFm.height + topPadding + bottomPadding
285+
clip: false
276286

277287
// 恢复默认 delegate,由主题负责显示选中项勾号
278288

src/dcc-fcitx5configtool/translations/fcitx5configtool.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196
<context>
197197
<name>ShortcutsModule</name>
198198
<message>
199-
<location filename="../qml/ShortcutsModule.qml" line="119"/>
199+
<location filename="../qml/ShortcutsModule.qml" line="118"/>
200200
<source>Shortcuts</source>
201201
<translation type="unfinished"></translation>
202202
</message>
203203
<message>
204-
<location filename="../qml/ShortcutsModule.qml" line="134"/>
204+
<location filename="../qml/ShortcutsModule.qml" line="133"/>
205205
<source>Restore Defaults</source>
206206
<translation type="unfinished"></translation>
207207
</message>
208208
<message>
209-
<location filename="../qml/ShortcutsModule.qml" line="200"/>
209+
<location filename="../qml/ShortcutsModule.qml" line="225"/>
210210
<source>Scroll between input methods</source>
211211
<translation type="unfinished"></translation>
212212
</message>
213213
<message>
214-
<location filename="../qml/ShortcutsModule.qml" line="12"/>
215-
<location filename="../qml/ShortcutsModule.qml" line="14"/>
214+
<location filename="../qml/ShortcutsModule.qml" line="13"/>
215+
<location filename="../qml/ShortcutsModule.qml" line="15"/>
216+
<location filename="../qml/ShortcutsModule.qml" line="150"/>
216217
<location filename="../qml/ShortcutsModule.qml" line="151"/>
217-
<location filename="../qml/ShortcutsModule.qml" line="152"/>
218218
<source>None</source>
219219
<translation type="unfinished"></translation>
220220
</message>
221221
<message>
222-
<location filename="../qml/ShortcutsModule.qml" line="230"/>
222+
<location filename="../qml/ShortcutsModule.qml" line="273"/>
223223
<source>Turn on or off input methods</source>
224224
<translation type="unfinished"></translation>
225225
</message>
226226
<message>
227-
<location filename="../qml/ShortcutsModule.qml" line="273"/>
227+
<location filename="../qml/ShortcutsModule.qml" line="336"/>
228228
<source>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</source>
229229
<translation type="unfinished"></translation>
230230
</message>

src/dcc-fcitx5configtool/translations/fcitx5configtool_az.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196
<context>
197197
<name>ShortcutsModule</name>
198198
<message>
199-
<location filename="../qml/ShortcutsModule.qml" line="119"/>
199+
<location filename="../qml/ShortcutsModule.qml" line="118"/>
200200
<source>Shortcuts</source>
201201
<translation>Kürsütlər</translation>
202202
</message>
203203
<message>
204-
<location filename="../qml/ShortcutsModule.qml" line="134"/>
204+
<location filename="../qml/ShortcutsModule.qml" line="133"/>
205205
<source>Restore Defaults</source>
206206
<translation>Default əlavələri geri qaytar</translation>
207207
</message>
208208
<message>
209-
<location filename="../qml/ShortcutsModule.qml" line="200"/>
209+
<location filename="../qml/ShortcutsModule.qml" line="225"/>
210210
<source>Scroll between input methods</source>
211211
<translation>Giriş üsulu arasınday keç</translation>
212212
</message>
213213
<message>
214-
<location filename="../qml/ShortcutsModule.qml" line="12"/>
215-
<location filename="../qml/ShortcutsModule.qml" line="14"/>
214+
<location filename="../qml/ShortcutsModule.qml" line="13"/>
215+
<location filename="../qml/ShortcutsModule.qml" line="15"/>
216+
<location filename="../qml/ShortcutsModule.qml" line="150"/>
216217
<location filename="../qml/ShortcutsModule.qml" line="151"/>
217-
<location filename="../qml/ShortcutsModule.qml" line="152"/>
218218
<source>None</source>
219219
<translation>Heç bir</translation>
220220
</message>
221221
<message>
222-
<location filename="../qml/ShortcutsModule.qml" line="230"/>
222+
<location filename="../qml/ShortcutsModule.qml" line="273"/>
223223
<source>Turn on or off input methods</source>
224224
<translation>Giriş üsulu və ya kürsüt əsasında işlətmə</translation>
225225
</message>
226226
<message>
227-
<location filename="../qml/ShortcutsModule.qml" line="273"/>
227+
<location filename="../qml/ShortcutsModule.qml" line="336"/>
228228
<source>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</source>
229229
<translation>İndi istifadə olunan giriş üsulunu aç və ya kapat. Giriş üsulu istifadə olunmuyorsa və ya ilk giriş üsulu klaviatura deyilsə, ilk giriş üsulu və ya indi istifadə olunan klaviatura/giriş üsulu arasınday keç.</translation>
230230
</message>

src/dcc-fcitx5configtool/translations/fcitx5configtool_bo.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196
<context>
197197
<name>ShortcutsModule</name>
198198
<message>
199-
<location filename="../qml/ShortcutsModule.qml" line="119"/>
199+
<location filename="../qml/ShortcutsModule.qml" line="118"/>
200200
<source>Shortcuts</source>
201201
<translation>Shortcuts</translation>
202202
</message>
203203
<message>
204-
<location filename="../qml/ShortcutsModule.qml" line="134"/>
204+
<location filename="../qml/ShortcutsModule.qml" line="133"/>
205205
<source>Restore Defaults</source>
206206
<translation>Restore Defaults</translation>
207207
</message>
208208
<message>
209-
<location filename="../qml/ShortcutsModule.qml" line="200"/>
209+
<location filename="../qml/ShortcutsModule.qml" line="225"/>
210210
<source>Scroll between input methods</source>
211211
<translation>Scroll between input methods</translation>
212212
</message>
213213
<message>
214-
<location filename="../qml/ShortcutsModule.qml" line="12"/>
215-
<location filename="../qml/ShortcutsModule.qml" line="14"/>
214+
<location filename="../qml/ShortcutsModule.qml" line="13"/>
215+
<location filename="../qml/ShortcutsModule.qml" line="15"/>
216+
<location filename="../qml/ShortcutsModule.qml" line="150"/>
216217
<location filename="../qml/ShortcutsModule.qml" line="151"/>
217-
<location filename="../qml/ShortcutsModule.qml" line="152"/>
218218
<source>None</source>
219219
<translation>None</translation>
220220
</message>
221221
<message>
222-
<location filename="../qml/ShortcutsModule.qml" line="230"/>
222+
<location filename="../qml/ShortcutsModule.qml" line="273"/>
223223
<source>Turn on or off input methods</source>
224224
<translation>Turn on or off input methods</translation>
225225
</message>
226226
<message>
227-
<location filename="../qml/ShortcutsModule.qml" line="273"/>
227+
<location filename="../qml/ShortcutsModule.qml" line="336"/>
228228
<source>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</source>
229229
<translation>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</translation>
230230
</message>

src/dcc-fcitx5configtool/translations/fcitx5configtool_ca.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196
<context>
197197
<name>ShortcutsModule</name>
198198
<message>
199-
<location filename="../qml/ShortcutsModule.qml" line="119"/>
199+
<location filename="../qml/ShortcutsModule.qml" line="118"/>
200200
<source>Shortcuts</source>
201201
<translation>Dreceres</translation>
202202
</message>
203203
<message>
204-
<location filename="../qml/ShortcutsModule.qml" line="134"/>
204+
<location filename="../qml/ShortcutsModule.qml" line="133"/>
205205
<source>Restore Defaults</source>
206206
<translation>Restaura els valors per defecte</translation>
207207
</message>
208208
<message>
209-
<location filename="../qml/ShortcutsModule.qml" line="200"/>
209+
<location filename="../qml/ShortcutsModule.qml" line="225"/>
210210
<source>Scroll between input methods</source>
211211
<translation>Desplaceu-vos pels mètodes d&apos;entrada</translation>
212212
</message>
213213
<message>
214-
<location filename="../qml/ShortcutsModule.qml" line="12"/>
215-
<location filename="../qml/ShortcutsModule.qml" line="14"/>
214+
<location filename="../qml/ShortcutsModule.qml" line="13"/>
215+
<location filename="../qml/ShortcutsModule.qml" line="15"/>
216+
<location filename="../qml/ShortcutsModule.qml" line="150"/>
216217
<location filename="../qml/ShortcutsModule.qml" line="151"/>
217-
<location filename="../qml/ShortcutsModule.qml" line="152"/>
218218
<source>None</source>
219219
<translation>Cap</translation>
220220
</message>
221221
<message>
222-
<location filename="../qml/ShortcutsModule.qml" line="230"/>
222+
<location filename="../qml/ShortcutsModule.qml" line="273"/>
223223
<source>Turn on or off input methods</source>
224224
<translation>Activa o desactiva els mètodes d&apos;entrada</translation>
225225
</message>
226226
<message>
227-
<location filename="../qml/ShortcutsModule.qml" line="273"/>
227+
<location filename="../qml/ShortcutsModule.qml" line="336"/>
228228
<source>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</source>
229229
<translation>Activa o desactiva el mètode d&apos;entrada que s&apos;usa actualment. Si no se n&apos;usa cap o el primer no és el teclat, canvia entre el primer mètode d&apos;entrada i el teclat o mètode d&apos;entrada actual.</translation>
230230
</message>

src/dcc-fcitx5configtool/translations/fcitx5configtool_es.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196
<context>
197197
<name>ShortcutsModule</name>
198198
<message>
199-
<location filename="../qml/ShortcutsModule.qml" line="119"/>
199+
<location filename="../qml/ShortcutsModule.qml" line="118"/>
200200
<source>Shortcuts</source>
201201
<translation>Atajos</translation>
202202
</message>
203203
<message>
204-
<location filename="../qml/ShortcutsModule.qml" line="134"/>
204+
<location filename="../qml/ShortcutsModule.qml" line="133"/>
205205
<source>Restore Defaults</source>
206206
<translation>Restaurar valores predeterminados</translation>
207207
</message>
208208
<message>
209-
<location filename="../qml/ShortcutsModule.qml" line="200"/>
209+
<location filename="../qml/ShortcutsModule.qml" line="225"/>
210210
<source>Scroll between input methods</source>
211211
<translation>Desplazarse entre métodos de entrada</translation>
212212
</message>
213213
<message>
214-
<location filename="../qml/ShortcutsModule.qml" line="12"/>
215-
<location filename="../qml/ShortcutsModule.qml" line="14"/>
214+
<location filename="../qml/ShortcutsModule.qml" line="13"/>
215+
<location filename="../qml/ShortcutsModule.qml" line="15"/>
216+
<location filename="../qml/ShortcutsModule.qml" line="150"/>
216217
<location filename="../qml/ShortcutsModule.qml" line="151"/>
217-
<location filename="../qml/ShortcutsModule.qml" line="152"/>
218218
<source>None</source>
219219
<translation>Ninguno</translation>
220220
</message>
221221
<message>
222-
<location filename="../qml/ShortcutsModule.qml" line="230"/>
222+
<location filename="../qml/ShortcutsModule.qml" line="273"/>
223223
<source>Turn on or off input methods</source>
224224
<translation>Activar o desactivar métodos de entrada</translation>
225225
</message>
226226
<message>
227-
<location filename="../qml/ShortcutsModule.qml" line="273"/>
227+
<location filename="../qml/ShortcutsModule.qml" line="336"/>
228228
<source>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</source>
229229
<translation>Activa o desactiva el método de entrada utilizado actualmente. Si no se utiliza ningún método de entrada o el primer método de entrada no es el teclado, cambia entre el primer método de entrada y el teclado/método de entrada utilizado actualmente.</translation>
230230
</message>

src/dcc-fcitx5configtool/translations/fcitx5configtool_fi.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,35 +196,35 @@
196196
<context>
197197
<name>ShortcutsModule</name>
198198
<message>
199-
<location filename="../qml/ShortcutsModule.qml" line="119"/>
199+
<location filename="../qml/ShortcutsModule.qml" line="118"/>
200200
<source>Shortcuts</source>
201201
<translation>Pikakäkset</translation>
202202
</message>
203203
<message>
204-
<location filename="../qml/ShortcutsModule.qml" line="134"/>
204+
<location filename="../qml/ShortcutsModule.qml" line="133"/>
205205
<source>Restore Defaults</source>
206206
<translation>Palauta oletusarvot</translation>
207207
</message>
208208
<message>
209-
<location filename="../qml/ShortcutsModule.qml" line="200"/>
209+
<location filename="../qml/ShortcutsModule.qml" line="225"/>
210210
<source>Scroll between input methods</source>
211211
<translation>Vaihda syöttömenetelmiä hiirellä</translation>
212212
</message>
213213
<message>
214-
<location filename="../qml/ShortcutsModule.qml" line="12"/>
215-
<location filename="../qml/ShortcutsModule.qml" line="14"/>
214+
<location filename="../qml/ShortcutsModule.qml" line="13"/>
215+
<location filename="../qml/ShortcutsModule.qml" line="15"/>
216+
<location filename="../qml/ShortcutsModule.qml" line="150"/>
216217
<location filename="../qml/ShortcutsModule.qml" line="151"/>
217-
<location filename="../qml/ShortcutsModule.qml" line="152"/>
218218
<source>None</source>
219219
<translation>Ei mitään</translation>
220220
</message>
221221
<message>
222-
<location filename="../qml/ShortcutsModule.qml" line="230"/>
222+
<location filename="../qml/ShortcutsModule.qml" line="273"/>
223223
<source>Turn on or off input methods</source>
224224
<translation>Päälle- tai pois-kytkentä syöttömenetelmille</translation>
225225
</message>
226226
<message>
227-
<location filename="../qml/ShortcutsModule.qml" line="273"/>
227+
<location filename="../qml/ShortcutsModule.qml" line="336"/>
228228
<source>It turns on or off the currently used input method.If no input method is being used or the first input method is not the keyboard, it switches between the first input method and the currently used keyboard/input method.</source>
229229
<translation>Se käyttää päälle- tai pois-kytkentää nykyisesti käytettävälle syöttömenetelmälle. Jos ei käytetä syöttömenetelmää tai ensimmäinen syöttömenetelmä ei ole näppäimistö, se vaihtaa ensimmäistä syöttömenetelmää ja nykyistä käytettävää näppäimistöä/syöttömenetelmää.</translation>
230230
</message>

0 commit comments

Comments
 (0)