Skip to content

Commit b4593fd

Browse files
committed
chore(i18n): regenerate .pot + msgmerge all locales + recompile .mo
1 parent 0bcfcb3 commit b4593fd

28 files changed

Lines changed: 27999 additions & 17769 deletions

File tree

dictee-tray.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
break
3434
gettext.textdomain("dictee")
3535
_ = gettext.gettext
36+
# N_() = no-op marker used to flag translatable strings that are stored in
37+
# module-level data (e.g. ASR_BACKENDS) and translated later, when gettext
38+
# is fully initialised. xgettext picks them up via `-kN_`.
39+
N_ = lambda s: s
3640

3741

3842
def _tt(text):
@@ -200,11 +204,11 @@ def _ptt_label():
200204
# Note: label_msgid is NOT pre-translated at module load (gettext may not be
201205
# initialised yet). _() is called when the menu is constructed.
202206
ASR_BACKENDS = [
203-
("parakeet-fp32", "Parakeet (more precise)", "parakeet", "fp32"),
204-
("parakeet-int8", "Parakeet (faster)", "parakeet", "int8"),
205-
("canary", "Canary", "canary", None),
206-
("vosk", "Vosk", "vosk", None),
207-
("whisper", "Whisper", "whisper", None),
207+
("parakeet-fp32", N_("Parakeet (more precise)"), "parakeet", "fp32"),
208+
("parakeet-int8", N_("Parakeet (faster)"), "parakeet", "int8"),
209+
("canary", "Canary", "canary", None),
210+
("vosk", "Vosk", "vosk", None),
211+
("whisper", "Whisper", "whisper", None),
208212
]
209213

210214
TRANSLATE_BACKENDS = [

pkg/dictee/usr/bin/dictee-tray

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ for _d in LOCALE_DIRS:
3333
break
3434
gettext.textdomain("dictee")
3535
_ = gettext.gettext
36+
# N_() = no-op marker used to flag translatable strings that are stored in
37+
# module-level data (e.g. ASR_BACKENDS) and translated later, when gettext
38+
# is fully initialised. xgettext picks them up via `-kN_`.
39+
N_ = lambda s: s
3640

3741

3842
def _tt(text):
@@ -200,11 +204,11 @@ def _ptt_label():
200204
# Note: label_msgid is NOT pre-translated at module load (gettext may not be
201205
# initialised yet). _() is called when the menu is constructed.
202206
ASR_BACKENDS = [
203-
("parakeet-fp32", "Parakeet (more precise)", "parakeet", "fp32"),
204-
("parakeet-int8", "Parakeet (faster)", "parakeet", "int8"),
205-
("canary", "Canary", "canary", None),
206-
("vosk", "Vosk", "vosk", None),
207-
("whisper", "Whisper", "whisper", None),
207+
("parakeet-fp32", N_("Parakeet (more precise)"), "parakeet", "fp32"),
208+
("parakeet-int8", N_("Parakeet (faster)"), "parakeet", "int8"),
209+
("canary", "Canary", "canary", None),
210+
("vosk", "Vosk", "vosk", None),
211+
("whisper", "Whisper", "whisper", None),
208212
]
209213

210214
TRANSLATE_BACKENDS = [
-2.32 KB
Binary file not shown.
-2.25 KB
Binary file not shown.
-2.79 KB
Binary file not shown.
-2.26 KB
Binary file not shown.
-2.27 KB
Binary file not shown.
-3.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)