mirror of
https://github.com/yusufipk/dikte.git
synced 2026-09-11 10:56:10 +00:00
Merge master into feature/groq-transcription
This commit is contained in:
@@ -27,7 +27,10 @@ def language():
|
||||
return _lang
|
||||
|
||||
|
||||
def t(text, **kwargs):
|
||||
def t(text, /, **kwargs):
|
||||
# The string is positional-only so that every name is free to be a
|
||||
# placeholder: t("Discarded: {text}", text=…) would otherwise be two values
|
||||
# for one argument, and fail at the moment the message is shown.
|
||||
out = TR.get(text, text) if _lang == "tr" else text
|
||||
return out.format(**kwargs) if kwargs else out
|
||||
|
||||
@@ -42,7 +45,7 @@ _TR_CASES = {
|
||||
}
|
||||
|
||||
|
||||
def name(text, case=""):
|
||||
def name(text, /, case=""):
|
||||
if _lang != "tr" or not case:
|
||||
return text
|
||||
return _TR_CASES.get(case, {}).get(text, text)
|
||||
@@ -98,19 +101,22 @@ TR = {
|
||||
"Unexpected error: {error}": "Beklenmeyen hata: {error}",
|
||||
|
||||
# --- audio / paste errors -----------------------------------------
|
||||
"pw-record not found. Is pipewire-audio installed?":
|
||||
"pw-record bulunamadı. pipewire-audio kurulu mu?",
|
||||
"Could not start recording: {error}": "Kayıt başlatılamadı: {error}",
|
||||
"wl-copy not found. Install wl-clipboard.":
|
||||
"wl-copy bulunamadı. wl-clipboard paketini kur.",
|
||||
"No audio recorder found. Install pulseaudio-utils or pipewire-audio.":
|
||||
"Ses kayıt aracı bulunamadı. pulseaudio-utils ya da pipewire-audio kur.",
|
||||
"Audio recorder stopped before receiving sound: {error}":
|
||||
"Ses kayıt aracı veri alamadan kapandı: {error}",
|
||||
"Could not copy to clipboard: {error}": "Panoya kopyalanamadı: {error}",
|
||||
"wl-copy exited with code {code}.": "wl-copy {code} koduyla çıktı.",
|
||||
"ydotool not found, cannot paste automatically.":
|
||||
"ydotool bulunamadı, otomatik yapıştırma yapılamıyor.",
|
||||
"{tool} not found. Install {packages}.":
|
||||
"{tool} bulunamadı. {packages} paketlerini kur.",
|
||||
"{tool} exited with code {code}.": "{tool} {code} koduyla çıktı.",
|
||||
"{tool} not found, cannot paste automatically.":
|
||||
"{tool} bulunamadı, otomatik yapıştırma yapılamıyor.",
|
||||
"Unknown key: {key}": "Bilinmeyen tuş: {key}",
|
||||
"Could not run ydotool: {error}": "ydotool çalıştırılamadı: {error}",
|
||||
"ydotool failed: {error}\nIs ydotoold running? (systemctl --user status ydotool)":
|
||||
"ydotool hatası: {error}\nydotoold çalışıyor mu? (systemctl --user status ydotool)",
|
||||
"Could not run {tool}: {error}": "{tool} çalıştırılamadı: {error}",
|
||||
"{tool} failed: {error}": "{tool} hatası: {error}",
|
||||
"Is ydotoold running? (systemctl --user status ydotool)":
|
||||
"ydotoold çalışıyor mu? (systemctl --user status ydotool)",
|
||||
|
||||
# --- api errors ----------------------------------------------------
|
||||
"{service} API key is empty. Add it in Settings.":
|
||||
@@ -266,9 +272,19 @@ TR = {
|
||||
|
||||
# --- settings: shortcut ------------------------------------------------
|
||||
"Install as a KDE shortcut": "KDE kısayolu olarak kur",
|
||||
"Install as a global shortcut": "Global kısayol olarak kur",
|
||||
"Remove": "Kaldır",
|
||||
"Registered in KDE: {shortcut}": "KDE'de kayıtlı: {shortcut}",
|
||||
"No KDE shortcut installed.": "KDE kısayolu kurulu değil.",
|
||||
"Registered in {desktop}: {shortcut}": "{desktop}'da kayıtlı: {shortcut}",
|
||||
"No global shortcut installed.": "Global kısayol kurulu değil.",
|
||||
"No global shortcut installed. The tray menu starts a meeting too.":
|
||||
"Global kısayol kurulu değil. Toplantı tepsi menüsünden de başlatılabilir.",
|
||||
"No global shortcut installed. The tray menu asks it too.":
|
||||
"Global kısayol kurulu değil. Tepsi menüsünden de soru sorulabilir.",
|
||||
"Shortcut saved: {shortcut}": "Kısayol kaydedildi: {shortcut}",
|
||||
"Could not register the GNOME shortcut: {error}":
|
||||
"GNOME kısayolu kaydedilemedi: {error}",
|
||||
"Use the built-in listener (/dev/input), for when the KDE shortcut is not active yet":
|
||||
"Yerleşik dinleyici kullan (/dev/input), KDE kısayolu henüz etkin değilken",
|
||||
"Works immediately, no session restart. The only difference: the key "
|
||||
|
||||
Reference in New Issue
Block a user