Repository navigation
i18n: add Serbian (Latin script) interface translations - #453
Merged
Merged
Conversation
Adds Language::Sr ("sr"), following the existing per-language module
pattern (crates/ui-egui/src/i18n/<lang>.rs with a translate(text) ->
Option<&'static str>). All 381 strings in the JAPANESE master list are
covered, verified by the existing completeness test.
Latin script (sr-Latn), ekavian dialect — the common default for
digital/software Serbian. Cyrillic (sr-Cyrl) could follow as a
separate variant if wanted; this keeps the PR to one script, matching
how every other language here is a single variant.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3 tasks done
Member
|
Merged — thank you @Dejan-Port for the contribution! |
vangel76
added a commit
to vangel76/gridcraft
that referenced
this pull request
Oct 13, 2026
Keep the audit's corrections and add what main merged meanwhile (storytold#727, storytold#528, storytold#833, storytold#792/storytold#794, storytold#785/storytold#786, storytold#840, storytold#453, storytold#739, storytold#652); landed PRs no longer listed as open; one Last updated line per doc. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Requested in #143. Adds
Language::Sr("sr"), following the existing per-language module pattern:crates/ui-egui/src/i18n/sr.rswithtranslate(text: &str) -> Option<&'static str>, wired into theLanguageenum (ALL,name,code,from_tag,tr).All 381 strings in the
JAPANESEmaster list are covered, verified by the existingtranslations_are_unique_and_preserve_unknown_textcompleteness test (now also checks Serbian).Script: Latin (
sr-Latn), ekavian dialect — the common default for digital/software Serbian (what Windows, most Serbian software and most speakers' own typing default to). Cyrillic (sr-Cyrl) could follow as its own variant if wanted; this keeps the PR to one script, matching how every other language here is a single variant rather than per-script.Test plan
translations_are_unique_and_preserve_unknown_text— passes for Serbian (all 381 keys present, uniqueness,context|labeldisambiguation,Sheet1!A1-style text left untranslated).Language::Sr.tr("Data"),.tr("Page Layout|Orientation")vs plain.tr("Orientation").tags_reduce_to_a_supported_language—sr-Latn-RS,sr-RS, and baresrall resolve toLanguage::Sr.cargo fmt --all -- --check,cargo clippy -p gridcraft-ui-egui --all-targets -- -D warnings.cargo test -p gridcraft-ui-egui --lib: 74/75 pass. The one failure (missing French: Different First Page) is pre-existing on a cleanmaincheckout with none of this branch's changes — confirmed separately, unrelated to Serbian.🤖 Generated with Claude Code