Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Russian localisation added #308

Merged
merged 5 commits into from
Aug 27, 2024
Merged

Russian localisation added #308

merged 5 commits into from
Aug 27, 2024

Conversation

eremeyko
Copy link
Contributor

@eremeyko eremeyko commented Aug 27, 2024

  • Added the appropriate folder ‘ru-RU’
  • Translated, preserving the meaning of the messages
  • Untouched: main.json (the main language should still be English. It is international)

Summary by Sourcery

Introduce Russian localization by adding a set of JSON files with Russian translations for different modules, enhancing the application's multilingual capabilities.

New Features:

  • Add Russian localization support by introducing a new 'ru-RU' folder containing translated JSON files for various modules.

Copy link
Contributor

sourcery-ai bot commented Aug 27, 2024

Reviewer's Guide by Sourcery

This pull request adds Russian localization to the project by introducing new JSON files containing translated strings for various features and components of the application.

File-Level Changes

Change Details Files
Added Russian localization files for various features
  • Created 'ru-RU' folder to store Russian localization files
  • Translated strings for admin commands and messages
  • Translated strings for web scraper functionality
  • Translated strings for sticker-related features
  • Translated strings for night mode functionality
  • Translated strings for media extraction and conversion
  • Translated strings for YouTube download plugin
  • Translated strings for AFK (Away From Keyboard) feature
  • Translated strings for screenshot generation
  • Translated strings for group management tools
  • Translated strings for SangMata feature
  • Translated strings for developer commands
  • Translated strings for media information feature
  • Translated strings for start and help commands
  • Translated strings for AI chatbot functionality
  • Translated strings for general purpose messages
  • Translated strings for OCR (Optical Character Recognition) feature
  • Translated strings for web screenshot feature
  • Translated strings for language settings
  • Added placeholder for main language file
  • Translated strings for fun commands
  • Added empty help menu file for future translations
locales/ru-RU/admin.json
locales/ru-RU/web_scraper.json
locales/ru-RU/stickers.json
locales/ru-RU/nightmodev2.json
locales/ru-RU/media_extractor.json
locales/ru-RU/ytdl_plugins.json
locales/ru-RU/afk.json
locales/ru-RU/genss.json
locales/ru-RU/grup_tools.json
locales/ru-RU/sangmata.json
locales/ru-RU/dev.json
locales/ru-RU/mediainfo.json
locales/ru-RU/start_help.json
locales/ru-RU/chatbot_ai.json
locales/ru-RU/general.json
locales/ru-RU/ocr.json
locales/ru-RU/webss.json
locales/ru-RU/lang_setting.json
locales/ru-RU/main.json
locales/ru-RU/fun.json
locales/ru-RU/help_menu.json

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @eremeyko - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -0,0 +1,4 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (typo): Incorrect language name and flag for Russian localization

Comment on lines +1 to +20
{
"no_result": "К сожалению, не удалось найти никаких результатов!",
"no_result_w_query": "К сожалению, нет результатов по запросу: {kueri}",
"get_data": "⏳ Пожалуйста, подождите, получаю данные..",
"cl_btn": "❌ Закрыть",
"back_btn": "↩️ Вернуться",
"dl_text": "⬇️ Скачать",
"cat_text": "Категория",
"quality": "Качество",
"ex_data": "👇 Вытащить данные ",
"unauth": "Эта кнопка не для Вас..",
"invalid_cb": "Неверные данные обратного вызова, отправьте команду еще раз..",
"res_scrape": "<b>Собранная информация с</b> <code>{link}</code>:\n\n{kl}",
"header_with_query": "<b>#{web} Результаты Для:</b> <code>{kueri}</code>\n\n",
"header_no_query": "<b>#{web} Последнее:</b>\n🌀 Используйте /{cmd} [заголовок] чтобы начать поиск по заголовку.\n\n",
"invalid_cmd_scrape": "Используйте команду /{cmd} <b>[link]</b> для поиска ссылки на скачивание.",
"err_getweb": "ОШИБКА: Не удалось получить данные с интернета из-за {err}.",
"err_getapi": "ОШИБКА: Не удалось получить данные с АПИ",
"unsupport_dl_btn": "Некоторые результаты не отображаются в кнопке извлечения из-за неподдерживаемой ссылки."
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Consider centralizing common phrases to reduce duplication

{
    "common": {
        "no_result": "К сожалению, не удалось найти никаких результатов!",
        "wait": "⏳ Пожалуйста, подождите, получаю данные..",
        "buttons": {
            "close": "❌ Закрыть",
            "back": "↩️ Вернуться",
            "download": "⬇️ Скачать",
            "extract": "👇 Вытащить данные "
        }
    },
    "no_result_w_query": "К сожалению, нет результатов по запросу: {kueri}",
    "cat_text": "Категория",
    "quality": "Качество",
    "unauth": "Эта кнопка не для Вас..",
    "invalid_cb": "Неверные данные обратного вызова, отправьте команду еще раз.."
}

@yasirarism yasirarism merged commit f114690 into yasirarism:master Aug 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants