Skip to content

fix: russian strings#7147

Open
urdekcah wants to merge 1 commit intolablup:mainfrom
urdekcah:fix-russian
Open

fix: russian strings#7147
urdekcah wants to merge 1 commit intolablup:mainfrom
urdekcah:fix-russian

Conversation

@urdekcah
Copy link
Copy Markdown

Improved Russian translations for better UI experience.

  • Translated 50+ strings including "Activate", "Deactivate", "Dashboard", "Settings", "Compute" etc. from English placeholders
  • Fixed modal messages like "AreYouSureYouWantToActivateOne" and table headers ("Allocation", "Architecture")

User Impact:

  • Russian UI now fully localized without English fallbacks
  • No breaking changes for other languages

Copilot AI review requested due to automatic review settings April 29, 2026 08:40
@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Apr 29, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Russian (ru) locale strings in backend.ai-ui to remove English fallbacks and improve wording/consistency across multiple UI components (modals, tables, file explorer, general UI labels).

Changes:

  • Replaces English placeholder strings with Russian translations (e.g., modal controls, table actions, File Explorer UI).
  • Refines existing Russian strings for clarity/consistency (terminology, phrasing, punctuation).
  • Adds missing Russian entries for recently introduced component namespaces (e.g., container registry select, stepped progress “Unlimited”).

},
"comp:BAIDeleteArtifactModal": {
"ExcludedVersions": "{{count}} версии исключены.",
"ExcludedVersions": "{{count}} версий исключено.",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

Фраза «{{count}} версий исключено» грамматически некорректна для 1/2–4 (например, «2 версий»). Так как t() вызывается с параметром count, стоит использовать plural-ключи i18next (ExcludedVersions_one/_few/_many/_other) для корректного склонения.

Suggested change
"ExcludedVersions": "{{count}} версий исключено.",
"ExcludedVersions_one": "{{count}} версия исключена.",
"ExcludedVersions_few": "{{count}} версии исключены.",
"ExcludedVersions_many": "{{count}} версий исключено.",
"ExcludedVersions_other": "{{count}} версий исключено.",

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Implementing Copilot's suggestion would require code changes to properly support i18next plural forms (_one/_few/_many/_other). For now, I think it's better to keep a single translation that reads clearly for the user regardless of the count value.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about rephrase to

  1. Исключено версий: {{count}}.
  2. Исключено: {{count}} шт.
  3. Исключено версий — {{count}}
    @urdekcah

"RemoveVersions": "Удалить версии",
"Size": "Размер",
"SuccessFullyRemoved": "Успешно удалено {{count}} версии.",
"SuccessFullyRemoved": "Успешно удалено {{count}} версий.",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

Фраза «Успешно удалено {{count}} версий» будет грамматически некорректна для 1/2–4. Лучше добавить plural-формы i18next (SuccessFullyRemoved_one/_few/_many/_other) и подобрать корректные варианты («версия/версии/версий»).

Suggested change
"SuccessFullyRemoved": "Успешно удалено {{count}} версий.",
"SuccessFullyRemoved_one": "Успешно удалена {{count}} версия.",
"SuccessFullyRemoved_few": "Успешно удалено {{count}} версии.",
"SuccessFullyRemoved_many": "Успешно удалено {{count}} версий.",
"SuccessFullyRemoved_other": "Успешно удалено {{count}} версий.",

Copilot uses AI. Check for mistakes.
"OnlySCANNEDVersionsCanBePulled": "Только отсканированные версии можно вытащить.",
"Pull": "Тянуть",
"PullVersion": "Потянуть версию",
"ExcludedVersions": "{{count}} версий исключено.",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

Фраза «{{count}} версий исключено» грамматически некорректна для 1/2–4. Поскольку t() вызывается с count, имеет смысл добавить plural-ключи i18next (ExcludedVersions_one/_few/_many/_other) для корректного склонения.

Suggested change
"ExcludedVersions": "{{count}} версий исключено.",
"ExcludedVersions_one": "{{count}} версия исключена.",
"ExcludedVersions_few": "{{count}} версии исключены.",
"ExcludedVersions_many": "{{count}} версий исключено.",
"ExcludedVersions_other": "{{count}} версии исключены.",

Copilot uses AI. Check for mistakes.
"PullVersion": "Загрузить версию",
"Size": "Размер",
"SuccessFullyPulled": "Успешно запрошенные тяги для {{count}} версий.",
"SuccessFullyPulled": "Запрос на загрузку {{count}} версий успешно отправлен.",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

Фраза «Запрос на загрузку {{count}} версий…» будет грамматически некорректна для 1/2–4. Рекомендуется использовать plural-формы i18next (SuccessFullyPulled_one/_few/_many/_other) или переформулировать сообщение, чтобы не требовалось склонение.

Suggested change
"SuccessFullyPulled": "Запрос на загрузку {{count}} версий успешно отправлен.",
"SuccessFullyPulled": "Запрос на загрузку успешно отправлен. Количество версий: {{count}}.",

Copilot uses AI. Check for mistakes.
"ActivateArtifacts": "Активация артефактов",
"AreYouSureYouWantToActivateOne": "Вы уверены, что хотите активировать {{name}}?",
"AreYouSureYouWantToActivateSome": "Вы уверены, что хотите активировать {{count}} артефакты?",
"AreYouSureYouWantToActivateSome": "Вы уверены, что хотите активировать {{count}} артефактов?",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

Строка с {{count}} использует фиксированную форму «артефактов», что в русском будет некорректно для значений 2–4. Поскольку в коде в t() передаётся count, лучше добавить формы множественного числа i18next (например, ключи AreYouSureYouWantToActivateSome_few/_many/_other) или перефразировать так, чтобы не требовалось склонение.

Suggested change
"AreYouSureYouWantToActivateSome": "Вы уверены, что хотите активировать {{count}} артефактов?",
"AreYouSureYouWantToActivateSome_one": "Вы уверены, что хотите активировать {{count}} артефакт?",
"AreYouSureYouWantToActivateSome_few": "Вы уверены, что хотите активировать {{count}} артефакта?",
"AreYouSureYouWantToActivateSome_many": "Вы уверены, что хотите активировать {{count}} артефактов?",
"AreYouSureYouWantToActivateSome_other": "Вы уверены, что хотите активировать {{count}} артефакта?",

Copilot uses AI. Check for mistakes.
"comp:BAIDeactivateArtifactsModal": {
"AreYouSureYouWantToDeactivateOne": "Вы уверены, что хотите деактивировать {{name}}?",
"AreYouSureYouWantToDeactivateSome": "Вы уверены, что хотите деактивировать {{count}} артефакты?",
"AreYouSureYouWantToDeactivateSome": "Вы уверены, что хотите деактивировать {{count}} артефактов?",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

Строка с {{count}} использует фиксированную форму «артефактов», что в русском будет некорректно для значений 2–4. Так как в t() передаётся count, лучше добавить формы множественного числа i18next (AreYouSureYouWantToDeactivateSome_few/_many/_other) или перефразировать строку.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@urdekcah
How about alternative changes with sentence rephrasing?

  1. Вы уверены, что хотите деактивировать выбранные артефакты ({{count}})?
  2. Вы уверены, что хотите деактивировать отмеченные артефакты ({{count}})
  3. Вы уверены, что хотите деактивировать следующие артефакты ({{count}} шт.)?
  4. Деактивировать выбранные артефакты ({{count}})?

@urdekcah urdekcah marked this pull request as draft April 29, 2026 08:47
@urdekcah
Copy link
Copy Markdown
Author

@leksikov

@urdekcah urdekcah marked this pull request as ready for review April 29, 2026 08:49
@leksikov leksikov self-requested a review April 30, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants