Skip to content

Commit

Permalink
feat: Support mnemonics (Access keys) for certain OS. resolved #277
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere authored Apr 21, 2024
2 parents 82d3416 + 564b2f4 commit 31d650d
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def __init__(self, parent, ebook):
layout = QVBoxLayout(self)
self.choose_format = self.layout_format()

self.start_button = QPushButton(_('Start'))
self.start_button = QPushButton(_('&Start'))
# self.start_button.setStyleSheet(
# 'padding:0;height:48;font-size:20px;color:royalblue;'
# 'text-transform:uppercase;')
Expand Down Expand Up @@ -914,7 +914,7 @@ def auto_open_close_splitter():
control_layout.setContentsMargins(0, 0, 0, 0)

save_status = QLabel()
save_button = QPushButton(_('Save'))
save_button = QPushButton(_('&Save'))
save_button.setDisabled(True)

status_indicator = TranslationStatus()
Expand Down
2 changes: 1 addition & 1 deletion components/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def layout(self):
custom_clear = QPushButton(_('Clear'))
custom_restore = QPushButton(_('Restore'))
custom_verify = QPushButton(_('Verify'))
custom_save = QPushButton(_('Save'))
custom_save = QPushButton(_('&Save'))
layout.addWidget(custom_list, 0, 0, 1, 3)
layout.addWidget(custom_add, 0, 3)
layout.addWidget(custom_del, 0, 4)
Expand Down
2 changes: 1 addition & 1 deletion setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def scroll_widget(self):
scroll_area.setWidget(func(self))
layout.addWidget(scroll_area, 1)

save_button = QPushButton(_('Save'))
save_button = QPushButton(_('&Save'))
layout.addWidget(save_button)

def save_current_config():
Expand Down
Binary file modified translations/es.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions translations/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ msgstr ""
msgid "Preparing user interface..."
msgstr ""

msgid "Start"
msgid "&Start"
msgstr ""

msgid "Input Format"
Expand Down Expand Up @@ -163,8 +163,8 @@ msgstr ""
msgid "No translation yet"
msgstr ""

msgid "Save"
msgstr "Guardar"
msgid "&Save"
msgstr "&Guardar"

msgid "Your changes have been saved."
msgstr ""
Expand Down
Binary file modified translations/fr.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions translations/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ msgstr "Filtrant le contenu du ebook..."
msgid "Preparing user interface..."
msgstr "Préparant l'interface usager..."

msgid "Start"
msgstr "Début"
msgid "&Start"
msgstr "&Début"

msgid "Input Format"
msgstr "Format d'entrée"
Expand Down Expand Up @@ -163,8 +163,8 @@ msgstr ""
msgid "No translation yet"
msgstr "Pas de traduction encore"

msgid "Save"
msgstr "Enregistrer"
msgid "&Save"
msgstr "&Enregistrer"

msgid "Your changes have been saved."
msgstr "Vos modifications ont été sauvegardées."
Expand Down
4 changes: 2 additions & 2 deletions translations/message.pot
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ msgid "Preparing user interface..."
msgstr ""

#: advanced.py:236
msgid "Start"
msgid "&Start"
msgstr ""

#: advanced.py:250 batch.py:71 setting.py:186
Expand Down Expand Up @@ -209,7 +209,7 @@ msgid "No translation yet"
msgstr ""

#: advanced.py:909 components/engine.py:207 setting.py:98
msgid "Save"
msgid "&Save"
msgstr ""

#: advanced.py:987
Expand Down
Binary file modified translations/pt.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions translations/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ msgstr "Filtrando conteúdo do ebook..."
msgid "Preparing user interface..."
msgstr "Preparando a interface de usuário..."

msgid "Start"
msgstr "Iniciar"
msgid "&Start"
msgstr "&Iniciar"

msgid "Input Format"
msgstr "Formato de Entrada"
Expand Down Expand Up @@ -162,8 +162,8 @@ msgstr ""
msgid "No translation yet"
msgstr "Ainda não há tradução"

msgid "Save"
msgstr "Salvar"
msgid "&Save"
msgstr "&Salvar"

msgid "Your changes have been saved."
msgstr "Suas alterações foram salvas."
Expand Down
Binary file modified translations/tr.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions translations/tr.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ msgstr "E-kitap içeriği filtreleniyor..."
msgid "Preparing user interface..."
msgstr "Kullanıcı arayüzü hazırlanıyor..."

msgid "Start"
msgstr "Başlat"
msgid "&Start"
msgstr "&Başlat"

msgid "Input Format"
msgstr "Giriş Formatı"
Expand Down Expand Up @@ -164,8 +164,8 @@ msgstr ""
msgid "No translation yet"
msgstr "Henüz çeviri yok"

msgid "Save"
msgstr "Kaydet"
msgid "&Save"
msgstr "&Kaydet"

msgid "Your changes have been saved."
msgstr "Değişiklikleriniz kaydedildi."
Expand Down
Binary file modified translations/zh_CN.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions translations/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ msgstr "过滤电子书内容..."
msgid "Preparing user interface..."
msgstr "准备用户界面..."

msgid "Start"
msgstr "开始"
msgid "&Start"
msgstr "开始(&S)"

msgid "Input Format"
msgstr "输入格式"
Expand Down Expand Up @@ -160,8 +160,8 @@ msgstr "某些译文与原文行数不一致。确认不进行检查直接输出
msgid "No translation yet"
msgstr "尚未翻译"

msgid "Save"
msgstr "保存"
msgid "&Save"
msgstr "保存(&S)"

msgid "Your changes have been saved."
msgstr "更改已保存。"
Expand Down
Binary file modified translations/zh_TW.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions translations/zh_TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ msgstr ""
msgid "Preparing user interface..."
msgstr ""

msgid "Start"
msgid "&Start"
msgstr ""

msgid "Input Format"
Expand Down Expand Up @@ -161,8 +161,8 @@ msgstr ""
msgid "No translation yet"
msgstr ""

msgid "Save"
msgstr "儲存"
msgid "&Save"
msgstr "儲存(&S)"

msgid "Your changes have been saved."
msgstr ""
Expand Down

0 comments on commit 31d650d

Please sign in to comment.