Skip to content

localization: add Arabic (ar_SA) translation - #2929

Open
moamen-ui wants to merge 1 commit into
sourcegit-org:developfrom
moamen-ui:add-arabic-locale
Open

moamen-ui wants to merge 1 commit into
sourcegit-org:developfrom
moamen-ui:add-arabic-locale

Conversation

@moamen-ui

Copy link
Copy Markdown

Adds an Arabic (ar_SA) UI language: src/Resources/Locales/ar_SA.axaml with the same 1,095 keys as en_US.axaml. Placeholders and format markers are identical to the English source.

  • Registered the same way as the most recent language addition (Add catalan translation #2791, Catalan): ar_SA entry in src/App.axaml and src/Models/Locales.cs (shown as "العربية").
  • TRANSLATION.md regenerated with build/scripts/localization-check.js. The other locale files were not changed.

AI disclosure: an AI tool drafted the Arabic translation. I am an Arabic speaker, but I did not review all 1,095 strings line by line. An independent AI reviewer read every pair and reported problems (wrong Git terms, a few count and verb-form issues, a physical-direction word); those were fixed. A second model review (codex, agy) could not run because their usage quotas were exhausted. A native review is very welcome, especially for the Git terms.

Terms used: Commit = إيداع, Branch = فرع, Stash = الحفظ المؤقت, Rebase = إعادة التأسيس, Pull = سحب, Push = دفع, Fetch = جلب, Reset = إعادة التعيين. Git command names (Cherry Pick, Bisect, Blame, Worktree, Submodule, LFS, SHA, HEAD) stay in Latin.

Not included:

  • Right-to-left layout. The app does not set the flow direction for any locale yet (the existing Hebrew translation is the same), so this PR changes text only. RTL layout can be a follow-up if the maintainers want it.
  • Plural and count forms. The app has no plural support, so strings with counts use label-first or non-agreeing wording where possible. Relative times such as "منذ {0} سنة" (years ago) use a fixed noun after the number and are not correct for every number. Fixing this needs plural support in the app.

Checks run:

  • XML is well-formed; key set equals en_US (1,095 / 1,095); placeholders, backticked code, and trailing spaces match the English per key.
  • localization-check.js ran with no errors.
  • dotnet build src/SourceGit.csproj (Debug): 0 errors, 0 warnings.

Not run (honest):

  • The app was not launched. In my environment the Avalonia window could not start (native render timer error), so there are no screenshots, no visual check of Arabic text in the UI, and no test of switching to Arabic at runtime.
  • No dotnet format run for the one-line C# change.

This PR is part of Taareeb, an open project for Arabic localization of open source software: https://github.com/moamen-ui/taareeb

Add src/Resources/Locales/ar_SA.axaml (1,095 keys, same as en_US),
register the language in App.axaml and Locales.cs, and update
TRANSLATION.md from the localization-check script.

Signed-off-by: Moamen Abdulraouf Mansour <23304602+moamen-ui@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant