From c8a71e658a4fe02453becc3fe325e9c992264238 Mon Sep 17 00:00:00 2001 From: Eyad Mahmoud Date: Sun, 10 Dec 2023 10:31:54 +0200 Subject: [PATCH 1/2] Arabic translation update --- translations.json | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/translations.json b/translations.json index 7277c51..0c70524 100644 --- a/translations.json +++ b/translations.json @@ -797,5 +797,52 @@ "ask_chatgpt": "ChatGPTdan so'rash", "loading": "Yuklanmoqda...", "function_unavailable_in_inline_mode": "Bu funksiya inline rejimida mavjud emas" + }, + "ar": { + "help_description":"عرض رسالة المساعدة", + "reset_description":"إعادة تعيين المحادثة. يمكنك منح بعض السياق (مثلًا /reset أنت مساعد مفيد)", + "image_description":"إنشاء صورة من المطالبة (مثلًا /image مسجد)", + "tts_description":"تحويل النص إلى كلام (مثلًا /tts السلام عليكم)", + "stats_description":"الحصول على إحصائيات الاستخدام الحالية", + "resend_description":"إعادة إرسال آخر رسالة", + "chat_description":"الدردشة مع البوت!", + "disallowed":"عذرًا، غير مسموح لك باستخدام هذا البوت. يمكنك التحقق من شفرة المصدر عبر https://github.com/n3d1117/chatgpt-telegram-bot", + "budget_limit":"عفوًا، لقد وصلت إلى حد الاستخدام.", + "help_text":["أنا بوت ChatGPT، يمكنك التحدث إلي!", "إرسال رسالة صوتية أو ملف لتحويلهما إلى نص", "مفتوح المصدر على https://github.com/n3d1117/chatgpt-telegram-bot"], + "stats_conversation":["المحادثة الحالية", "رسائل الدردشة بالسجل", "رموز الدردشة بالسجل"], + "usage_today":"استخدام هذا اليوم", + "usage_month":"استخدام هذا الشهر", + "stats_tokens":"الرموز", + "stats_images":"الصور المنشئة", + "stats_tts":"الأحرف المحولة إلى كلام", + "stats_transcribe":["من الدقائق و", "من الثواني تم تحويلهم إلى نص"], + "stats_total":"💰 الإجمالي $", + "stats_budget":"ميزانيتك المتبقية", + "monthly":" لهذا الشهر", + "daily":" لليوم", + "all-time":"", + "stats_openai":"هذا الشهر، تم إصدار فاتورة لحساب OpenAI الخاص بك بمبلغ $", + "resend_failed":"لا شيء لديك لإعادة إرساله", + "reset_done":"تم!", + "image_no_prompt":"الرجاء تقديم مطالبة! (مثلًا /image مسجد)", + "image_fail":"فشل إنشاء الصورة", + "tts_no_prompt":"الرجاء تقديم نص! (مثلًا /tts السلام عليكم)", + "tts_fail":"فشل تحويل النص إلى كلام", + "media_download_fail":["فشل تنزيل الملف الصوتي", "التحقق من أن حجم ملفك ليس كبيرًا. (بحد أقصى 20 م.ب.)"], + "media_type_fail":"صيغة الملف غير مدعومة", + "transcript":"النص", + "answer":"الإجابة", + "transcribe_fail":"فشل تحويل الكلام إلى نص", + "chat_fail":"فشل الحصول على إجابة", + "prompt":"المطالبة", + "completion":"الاكتمال", + "openai_rate_limit":"تم تجاوز حد OpenAI", + "openai_invalid":"طلب OpenAI غير صالح", + "error":"حدث خطأ ما", + "try_again":"الرجاء المحاولة مجددًا لاحقًا", + "answer_with_chatgpt":"الإجابة بواسطة ChatGPT", + "ask_chatgpt":"سؤال ChatGPT", + "loading":"قيد التحميل...", + "function_unavailable_in_inline_mode": "هذه الوظيفة غير متوفرة في الوضع المضمن" } } From e801eb6b0aae577d9e7c846b8ff06fd8066c5967 Mon Sep 17 00:00:00 2001 From: Eyad Mahmoud Date: Sun, 10 Dec 2023 10:34:51 +0200 Subject: [PATCH 2/2] Add Arabic to README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1479b2..6cc7d99 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ A [Telegram bot](https://core.telegram.org/bots/api) that integrates with OpenAI - [x] GPT-4 support - If you have access to the GPT-4 API, simply change the `OPENAI_MODEL` parameter to `gpt-4` - [x] Localized bot language - - Available languages :gb: :de: :ru: :tr: :it: :finland: :es: :indonesia: :netherlands: :cn: :taiwan: :vietnam: :iran: :brazil: :ukraine: :malaysia: :uzbekistan: + - Available languages :gb: :de: :ru: :tr: :it: :finland: :es: :indonesia: :netherlands: :cn: :taiwan: :vietnam: :iran: :brazil: :ukraine: :malaysia: :uzbekistan: :saudi_arabia: - [x] Improved inline queries support for group and private chats - by [@bugfloyd](https://github.com/bugfloyd) - To use this feature, enable inline queries for your bot in BotFather via the `/setinline` [command](https://core.telegram.org/bots/inline) - [x] Support *new models* [announced on June 13, 2023](https://openai.com/blog/function-calling-and-other-api-updates) @@ -108,7 +108,7 @@ Check out the [Budget Manual](https://github.com/n3d1117/chatgpt-telegram-bot/di | `IMAGE_SIZE` | The DALL·E generated image size. Must be `256x256`, `512x512`, or `1024x1024` for dall-e-2. Must be `1024x1024` for dall-e-3 models. | `512x512` | | `GROUP_TRIGGER_KEYWORD` | If set, the bot in group chats will only respond to messages that start with this keyword | - | | `IGNORE_GROUP_TRANSCRIPTIONS` | If set to true, the bot will not process transcriptions in group chats | `true` | -| `BOT_LANGUAGE` | Language of general bot messages. Currently available: `en`, `de`, `ru`, `tr`, `it`, `fi`, `es`, `id`, `nl`, `zh-cn`, `zh-tw`, `vi`, `fa`, `pt-br`, `uk`, `ms`, `uz`. [Contribute with additional translations](https://github.com/n3d1117/chatgpt-telegram-bot/discussions/219) | `en` | +| `BOT_LANGUAGE` | Language of general bot messages. Currently available: `en`, `de`, `ru`, `tr`, `it`, `fi`, `es`, `id`, `nl`, `zh-cn`, `zh-tw`, `vi`, `fa`, `pt-br`, `uk`, `ms`, `uz`, `ar`. [Contribute with additional translations](https://github.com/n3d1117/chatgpt-telegram-bot/discussions/219) | `en` | | `WHISPER_PROMPT` | To improve the accuracy of Whisper's transcription service, especially for specific names or terms, you can set up a custom message. [Speech to text - Prompting](https://platform.openai.com/docs/guides/speech-to-text/prompting) | `-` | | `TTS_VOICE` | The Text to Speech voice to use. Allowed values: `alloy`, `echo`, `fable`, `onyx`, `nova`, or `shimmer` | `alloy` | | `TTS_MODEL` | The Text to Speech model to use. Allowed values: `tts-1` or `tts-1-hd` | `tts-1` |