Skip to content

Add Multilingual Support (en, te, hi) #25

Description

@ndubbaka

https://github.com/Pragament/Android-Open-Lens-OCR-Text-Scanner

🎯 Goal

Enable support for three languages in the Android app:

  • English (en)
  • Telugu (te)
  • Hindi (hi)

📁 Tasks

  1. Create string resource files

    • res/values/strings.xml → English (default)
    • res/values-te/strings.xml → Telugu
    • res/values-hi/strings.xml → Hindi
  2. Translate UI strings

    • Use Google Translate or approved translations for now.
    • Maintain consistent meaning across all three languages.
    • Focus on major UI elements (button labels, titles, menu items, etc.)
  3. Language switching

    • add a language switcher in the app using Locale settings.
    • Example: Dropdown or menu to choose the language.
  4. Update AndroidManifest.xml

    • Ensure android:configChanges includes locale.
  5. Testing

    • Change device language in system settings to verify language switching.
    • Ensure UI does not break in any language (text overflow, RTL not needed).

💡 Example

English

<resources>
    <string name="app_name">My App</string>
    <string name="welcome">Welcome</string>
</resources>
<resources>
    <string name="app_name">నా యాప్</string>
    <string name="welcome">స్వాగతం</string>
</resources>
<resources>
    <string name="app_name">मेरा ऐप</string>
    <string name="welcome">स्वागत है</string>
</resources>

✅ Deliverables

  • Updated project with:
    • strings.xml in at least 3 languages.
    • Screenshots showing the app in each language.
  • A short write-up (README or comment in PR) with:
    • Summary of changes made.
    • Any issues encountered and how you solved them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions