I have an Android application (E-commerce) in English, Now I want to change language to Arabic and RTL(Right to Left)

  • I am new in that, where and how much efforts it take?
  • What specific problems should I look out for?
有帮助吗?

解决方案

What i have done in my app:

  • fix layout. If you use the newest android studio the function "Analyse/Inspect-Code" provides warning if you for example use layout_alignParentRight (rtl independant) without layout_alignParentEnd (rtl dependant)
  • Make shure that all text are put into string resource files (app\src\main\res\values\strings.xml for the english text). Then copy this file to app\src\main\res\values-ar\strings.xml and let somboedy translate it to arabic. Use a texteditor that can handle mixed rtl/non-rtl text if you have arabic text with english placeholders. I use notepad++ with option set "enforce rtl".
许可以下: CC-BY-SA归因
scroll top