Add Keys for update and error messages

Replaces hardcoded update and error strings in ytsage_dialogs_update.py with internationalized messages. Adds new translation keys for update success, already latest, network error, general error, pip update errors, and pip update failed in all supported languages.
This commit is contained in:
oop7
2025-10-13 15:15:27 +03:00
parent 0530f86a4c
commit 3c8fa38a94
15 changed files with 105 additions and 21 deletions
+7 -1
View File
@@ -210,7 +210,13 @@
"pip_completed": "✅ Pembaruan pip berhasil diselesaikan!",
"pip_failed": "❌ Pembaruan pip gagal: {error}",
"already_up_to_date": "✅ yt-dlp sudah terbaru!",
"pip_timeout": "❌ Waktu habis untuk pembaruan pip setelah 5 menit"
"pip_timeout": "❌ Waktu habis untuk pembaruan pip setelah 5 menit",
"update_success": "✅ yt-dlp telah berhasil diperbarui!",
"already_latest": "yt-dlp sudah terbaru (versi {version})",
"network_error": "❌ Kesalahan jaringan selama pembaruan: {error}",
"general_error": "❌ Pembaruan gagal: {error}",
"error_pip_update": "❌ Kesalahan selama pembaruan pip: {error}",
"pip_update_failed": "❌ Pembaruan pip gagal: {error}"
},
"about": {
"title": "Tentang YTSage",