Skip to content

feat: add Arabic interface translation - #37

Merged
bearinmindcat merged 2 commits into
artcraft-android:mainfrom
hussain-hz:work/upstream-arabic-translation
Nov 3, 2026
Merged

bearinmindcat merged 2 commits into
artcraft-android:mainfrom
hussain-hz:work/upstream-arabic-translation

Conversation

@hussain-hz

@hussain-hz hussain-hz commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Add the Arabic interface catalog at values-ar/strings.xml, covering all 711 translatable resources in the current English catalog: 700 strings and 11 plurals. Each plural includes zero, one, two, few, many and other, with natural singular/dual wording.

The translation follows upstream wording and behavior. It keeps resource names, format argument types/positions, escapes, product names and technical identifiers intact. Preferences, notification text, read-only messages and the Show status bar option follow upstream wording and behavior. No fork-specific features, themes, engine changes or application identity changes are included.

The existing supportsRtl and generated locale config handle Arabic discovery and layout direction. A small icon-helper change enables autoMirror only for the four navigation arrows/chevrons so Back/Next and drill-in indicators follow RTL; rotation, alignment, drawing and media icons keep their physical directions. Generated locale config includes ar without manifest changes.

Validation completed:

  • XML parsing and Android resource processing succeeded.
  • Catalog comparison: exactly 711 translated resources, no missing/extra/duplicate keys or empty strings.
  • Format arguments and escaped control sequences checked against English; singular/dual/zero count omission follows natural Arabic plural wording.
  • All 11 plurals contain the six Arabic quantity categories.

Debug APK assembly succeeded. Focused Android localization lint completed with 0 errors and no Arabic-resource findings; its 11 MissingQuantity warnings are in the unchanged Spanish catalog. Full lint remains blocked by three existing errors in unchanged upstream files: SuspiciousIndentation (HomeScreen.kt:174), NonObservableLocale (ReadAloud.kt:631), and ContextCastToActivity (AppRoot.kt:87). Local validation used installed NDK 30 through an external init script; the repository's NDK configuration is unchanged.

Emulator review covered Arabic Home, Preferences, About/version formatting, PDF viewer and its menu, plus English/Arabic navigation-arrow direction. These checks do not cover every translated string or all application flows. The PR remains a draft for review.

Arabic interface screenshots

Captured from a debug build of this upstream contribution, with Arabic selected as the application language.

Home Preferences
Arabic Home screen with RTL labels Arabic Preferences screen
PDF viewer Viewer menu
PDF viewer with Arabic toolbar labels and mirrored Back arrow Arabic viewer menu showing display settings, pages and attachments

@hussain-hz
hussain-hz marked this pull request as ready for review October 28, 2026 11:43
@bearinmindcat
bearinmindcat merged commit f7486b0 into artcraft-android:main Nov 3, 2026
3 checks 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.

3 participants