config: add Ukrainian (ID 30) to the console languages #2565

Manually merged
github merged 2 commits from github-bot/gh-2565 into gh-pr/2565/base 2026-11-26 19:42:04 +00:00 AGit
Owner

@⁠NevesHenry on GitHub · 2026-11-26 18:54 UTC · original
NevesHenry:ukrainian-console-language → main · +9 −6 · 6 files · 2 commits · merged 2026-11-26 19:32 UTC

Fixes #2554

Console language ID 30 is Ukrainian (shadps4-qtlauncher maps "Ukrainian" to index 30). KytyPS5 stopped at 29: MAX_CONSOLE_LANGUAGE rejected --console-language 30 and the saved launcher value, the launcher combo box had no entry for it, and Localization::Locales (src/common/localization.cpp) had 30 entries, so ID 30 fell back to en-US.

Changes:

  • MAX_CONSOLE_LANGUAGE 29 -> 30 in src/common/emulatorConfig.h and src/launcher/include/configuration.h
  • "Ukrainian" appended to CONSOLE_LANGUAGE_NAMES (src/launcher/src/configurationEditDialog.cpp)
  • "uk-UA" appended to Locales (array size 31)
  • No uk-UA catalog added; missing keys already fall back to en-US.

Testing: trophy_system (tests/TrophySystemTests.cpp) now expects LocaleName(30) == "uk-UA" and uses 31 as the first invalid ID. On base it fails with "console language selects its locale", with the change it prints "all cases passed". The launcher change was not compiled here (built with KYTY_BUILD_LAUNCHER=OFF).

AI disclosure: written with Claude Code (AI); I reviewed and tested the change.

🤖 Generated with Claude Code

**@⁠NevesHenry** on GitHub · 2026-11-26 18:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2565) `NevesHenry:ukrainian-console-language` → `main` · +9 −6 · 6 files · 2 commits · merged 2026-11-26 19:32 UTC Fixes #2554 Console language ID 30 is Ukrainian (shadps4-qtlauncher maps "Ukrainian" to index 30). KytyPS5 stopped at 29: `MAX_CONSOLE_LANGUAGE` rejected `--console-language 30` and the saved launcher value, the launcher combo box had no entry for it, and `Localization::Locales` (src/common/localization.cpp) had 30 entries, so ID 30 fell back to en-US. Changes: - `MAX_CONSOLE_LANGUAGE` 29 -> 30 in src/common/emulatorConfig.h and src/launcher/include/configuration.h - "Ukrainian" appended to `CONSOLE_LANGUAGE_NAMES` (src/launcher/src/configurationEditDialog.cpp) - "uk-UA" appended to `Locales` (array size 31) - No uk-UA catalog added; missing keys already fall back to en-US. Testing: `trophy_system` (tests/TrophySystemTests.cpp) now expects `LocaleName(30) == "uk-UA"` and uses 31 as the first invalid ID. On base it fails with "console language selects its locale", with the change it prints "all cases passed". The launcher change was not compiled here (built with KYTY_BUILD_LAUNCHER=OFF). AI disclosure: written with Claude Code (AI); I reviewed and tested the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:59:19 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-26 18:57 UTC · original

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The console language limit increases from 29 to 30. The locale list adds uk-UA, and the launcher language list adds Ukrainian. The localization test adds a Ukrainian entry with the English “Trophy earned!” text and changes an invalid-language test index from 30 to 31.

Suggested reviewers: pipe530

Change: Feature

Merge Risk: Minimal · up to d54e1

This change adds Ukrainian as console language 30 across the configuration limits, locale table, launcher list and tests. The inspected paths show no concrete defect, and missing translations fall back to English. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: adding Ukrainian as console language ID 30. The raw summary confirms the constant bump from 29 to 30, the new uk-UA locale entry, and the launcher language name. The …
Description check Passed The description states the purpose (console language ID 30 as Ukrainian), links issue #2554, and lists the changes that match the summary: the MAX_CONSOLE_LANGUAGE bump, the CONSOLE_LANGUAGE_NAMES ent…
Linked Issues check Passed Issue #2554 asks to add Ukrainian (ID 30) to the console languages. At the reviewed head, src/common/localization.cpp declares Locales with std::array<std::string_view, 31> and places "uk-UA" at i…
Out of Scope Changes check Passed All listed changes serve issue #2554: raising the console language limit in the two configuration headers, adding the Locales entry, adding the launcher combo entry, and updating the test to cover ID …
Full details: Title check

Explanation

The title states the main change: adding Ukrainian as console language ID 30. The raw summary confirms the constant bump from 29 to 30, the new uk-UA locale entry, and the launcher language name. The title is specific, concise, and matches the changeset.

Full details: Description check

Explanation

The description states the purpose (console language ID 30 as Ukrainian), links issue #2554, and lists the changes that match the summary: the MAX_CONSOLE_LANGUAGE bump, the CONSOLE_LANGUAGE_NAMES entry, the uk-UA Locales entry, and the trophy_system test update. It also gives testing notes. It is related to the changeset.

Full details: Linked Issues check

Explanation

Issue #2554 asks to add Ukrainian (ID 30) to the console languages. At the reviewed head, src/common/localization.cpp declares Locales with std::array&lt;std::string_view, 31&gt; and places "uk-UA" at index 30. src/common/emulatorConfig.h sets MAX_CONSOLE_LANGUAGE = 30, so ID 30 passes validation. src/launcher/src/configurationEditDialog.cpp appends "Ukrainian" as the 31st entry of CONSOLE_LANGUAGE_NAMES, which gives the launcher combo box an entry at index 30. The PR also updates Configuration::MAX_CONSOLE_LANGUAGE in src/launcher/include/configuration.h and the trophy_system test expectations (tests/TrophySystemTests.cpp). Those two files were not read directly; the claims rest on the PR summary. The launcher change was not compiled. No Ukrainian catalog is added, which the issue does not require. Missing keys fall back through Common::Localization::Get to the en-US catalog.

Full details: Out of Scope Changes check

Explanation

All listed changes serve issue #2554: raising the console language limit in the two configuration headers, adding the Locales entry, adding the launcher combo entry, and updating the test to cover ID 30 and the new first invalid ID 31. No unrelated changes appear in the summary. The repository diff for the launcher file was unavailable through the diff operation, so the launcher hunk was checked only against the head file content.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 93cce66564 and d54e1c600f.

Files selected for processing: 5

  • src/common/emulatorConfig.h
  • src/common/localization.cpp
  • src/launcher/include/configuration.h
  • src/launcher/src/configurationEditDialog.cpp
  • tests/TrophySystemTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-26 18:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2565#issuecomment-7201047249) <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2565?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> The console language limit increases from 29 to 30. The locale list adds `uk-UA`, and the launcher language list adds Ukrainian. The localization test adds a Ukrainian entry with the English “Trophy earned!” text and changes an invalid-language test index from 30 to 31. **Suggested reviewers:** `pipe530` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"d54e1c600f5678779fe961fb68d30d04118b1112" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Feature <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>d54e1</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `d54e1` --> <!-- final_review_risk_coverage:{"sourceCommitId":"d54e1c600f5678779fe961fb68d30d04118b1112","coveredCommitId":"d54e1c600f5678779fe961fb68d30d04118b1112","kind":"reviewed"} --> This change adds Ukrainian as console language 30 across the configuration limits, locale table, launcher list and tests. The inspected paths show no concrete defect, and missing translations fall back to English. Merge risk is minimal. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title states the main change: adding Ukrainian as console language ID 30. The raw summary confirms the constant bump from 29 to 30, the new uk-UA locale entry, and the launcher language name. The … | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description states the purpose (console language ID 30 as Ukrainian), links issue `#2554`, and lists the changes that match the summary: the MAX_CONSOLE_LANGUAGE bump, the CONSOLE_LANGUAGE_NAMES ent… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Issue `#2554` asks to add Ukrainian (ID 30) to the console languages. At the reviewed head, src/common/localization.cpp declares `Locales` with `std::array<std::string_view, 31>` and places "uk-UA" at i… | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | All listed changes serve issue `#2554`: raising the console language limit in the two configuration headers, adding the Locales entry, adding the launcher combo entry, and updating the test to cover ID … | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title states the main change: adding Ukrainian as console language ID 30. The raw summary confirms the constant bump from 29 to 30, the new uk-UA locale entry, and the launcher language name. The title is specific, concise, and matches the changeset. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description states the purpose (console language ID 30 as Ukrainian), links issue `#2554`, and lists the changes that match the summary: the MAX_CONSOLE_LANGUAGE bump, the CONSOLE_LANGUAGE_NAMES entry, the uk-UA Locales entry, and the trophy_system test update. It also gives testing notes. It is related to the changeset. </dd> </dl> </details> <details> <summary><strong>Full details: Linked Issues check</strong></summary> <dl> <dd> <br> **Explanation** Issue `#2554` asks to add Ukrainian (ID 30) to the console languages. At the reviewed head, src/common/localization.cpp declares `Locales` with `std::array&lt;std::string_view, 31&gt;` and places "uk-UA" at index 30. src/common/emulatorConfig.h sets `MAX_CONSOLE_LANGUAGE = 30`, so ID 30 passes validation. src/launcher/src/configurationEditDialog.cpp appends "Ukrainian" as the 31st entry of `CONSOLE_LANGUAGE_NAMES`, which gives the launcher combo box an entry at index 30. The PR also updates `Configuration::MAX_CONSOLE_LANGUAGE` in src/launcher/include/configuration.h and the `trophy_system` test expectations (tests/TrophySystemTests.cpp). Those two files were not read directly; the claims rest on the PR summary. The launcher change was not compiled. No Ukrainian catalog is added, which the issue does not require. Missing keys fall back through `Common::Localization::Get` to the en-US catalog. </dd> </dl> </details> <details> <summary><strong>Full details: Out of Scope Changes check</strong></summary> <dl> <dd> <br> **Explanation** All listed changes serve issue `#2554`: raising the console language limit in the two configuration headers, adding the Locales entry, adding the launcher combo entry, and updating the test to cover ID 30 and the new first invalid ID 31. No unrelated changes appear in the summary. The repository diff for the launcher file was unavailable through the diff operation, so the launcher hunk was checked only against the head file content. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2565)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <br> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/93cce66564bdced2fc7054ca9794451dfeef4d9d/.coderabbit.yaml>) - **Commit**: [93cce66](<https://github.com/KytyPS5/KytyPS5/commit/93cce66564bdced2fc7054ca9794451dfeef4d9d>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `f6aad947-9c40-4dfb-a7dd-40b155a952f8` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 93cce66564bdced2fc7054ca9794451dfeef4d9d and d54e1c600f5678779fe961fb68d30d04118b1112. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 5</strong></summary> <dl> <dd> <br> * `src/common/emulatorConfig.h` * `src/common/localization.cpp` * `src/launcher/include/configuration.h` * `src/launcher/src/configurationEditDialog.cpp` * `tests/TrophySystemTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
github-bot changed target branch from main to gh-pr/2565/base 2026-11-26 19:42:03 +00:00
github manually merged commit d6d4432e0d into gh-pr/2565/base 2026-11-26 19:42:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.