From ce1e7c6690b2bef678e5fe4a7d7671f23a355351 Mon Sep 17 00:00:00 2001 From: Gustavo Kureck Piccoli Date: Sat, 6 May 2023 16:15:55 -0300 Subject: [PATCH] Add pt-br translations and README.md tag n flag --- README.md | 4 ++-- translations.json | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5a967d8..a1c129c5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ A [Telegram bot](https://core.telegram.org/bots/api) that integrates with OpenAI - [x] (NEW!) GPT-4 support - If you have access to the GPT-4 API, simply change the `OPENAI_MODEL` parameter to `gpt-4` - [x] (NEW!) Localized bot language - - Available languages :gb: :de: :ru: :tr: :it: :finland: :es: :indonesia: :netherlands: :cn: :taiwan: :vietnam: :iran: + - Available languages :gb: :de: :ru: :tr: :it: :finland: :es: :indonesia: :netherlands: :cn: :taiwan: :vietnam: :iran: :brazil: - [x] (NEW!) 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) @@ -90,7 +90,7 @@ Check out the [Budget Manual](https://github.com/n3d1117/chatgpt-telegram-bot/di | `IMAGE_SIZE` | The DALL·E generated image size. Allowed values: `256x256`, `512x512` or `1024x1024` | `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`. [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`. [Contribute with additional translations](https://github.com/n3d1117/chatgpt-telegram-bot/discussions/219) | `en` | Check out the [official API reference](https://platform.openai.com/docs/api-reference/chat) for more details. diff --git a/translations.json b/translations.json index 11b91518..7d74f6c8 100644 --- a/translations.json +++ b/translations.json @@ -83,6 +83,47 @@ "ask_chatgpt":"Preguntar a ChatGPT", "loading":"Cargando..." }, + "pt-br":{ + "help_description": "Mostra a mensagem de ajuda", + "reset_description": "Redefine a conversa. Opcionalmente, passe instruções de alto nível (por exemplo, /reset Você é um assistente útil)", + "image_description": "Gera uma imagem a partir do prompt (por exemplo, /image gato)", + "stats_description": "Obtenha suas estatísticas de uso atuais", + "resend_description": "Reenvia a última mensagem", + "chat_description": "Converse com o bot!", + "disallowed": "Desculpe, você não tem permissão para usar este bot. Você pode verificar o código-fonte em https://github.com/n3d1117/chatgpt-telegram-bot", + "budget_limit": "Desculpe, você atingiu seu limite de uso.", + "help_text": ["Eu sou um bot ChatGPT, fale comigo!", "Envie-me uma mensagem de voz ou arquivo e eu o transcreverei para você", "Código-fonte aberto em https://github.com/n3d1117/chatgpt-telegram-bot"], + "stats_conversation": ["Conversa atual", "mensagens do chat na história", "tokens do chat na história"], + "usage_today": "Uso hoje", + "usage_month": "Uso este mês", + "stats_tokens": "tokens de chat usados", + "stats_images": "imagens geradas", + "stats_transcribe": ["minutos e", "segundos transcritos"], + "stats_total": "💰 Para um valor total de $", + "stats_budget": "Seu orçamento restante", + "monthly": " para este mês", + "daily": " para hoje", + "all-time": "", + "stats_openai": "Este mês sua conta OpenAI foi cobrada em $", + "resend_failed": "Você não tem nada para reenviar", + "reset_done": "Feito!", + "image_no_prompt": "Por favor, forneça um prompt! (por exemplo, /image gato)", + "image_fail": "Falha ao gerar imagem", + "media_download_fail": ["Falha ao baixar arquivo de áudio", "Certifique-se de que o arquivo não seja muito grande. (máx. 20 MB)"], + "media_type_fail": "Tipo de arquivo não suportado", + "transcript": "Transcrição", + "answer": "Resposta", + "transcribe_fail": "Falha ao transcrever texto", + "chat_fail": "Falha ao obter resposta", + "prompt": "prompt", + "completion": "conclusão", + "openai_rate_limit": "Limite de taxa OpenAI excedido", + "openai_invalid": "Solicitação inválida OpenAI", + "error": "Ocorreu um erro", + "try_again": "Por favor, tente novamente mais tarde", + "answer_with_chatgpt": "Responder com ChatGPT", + "ask_chatgpt": "Perguntar ao ChatGPT", + "loading": "Carregando..."}, "de": { "help_description":"Zeige die Hilfenachricht", "reset_description":"Setze die Konversation zurück. Optionale Eingabe einer grundlegenden Anweisung (z.B. /reset Du bist ein hilfreicher Assistent)",