0

I used this addon to add the Arabic language to my project. It worked fine but I still need to show the entity names in Arabic as well.

How can I do that?

MotGJU
  • 117
  • 5

1 Answers1

0

Entity names and properties are defined on src/main/webapp/WEB-INF/i18n/application.properties

To create the porperties-file for a specific language you can:

  • Use a Eclipse plug-in. The eclipse marketplace has some registered (sorry, I don't use any so I can't advise you which is the best)

  • Use a properties-editor tool (search on google)

  • Make it by hand:

    1. Copy src/main/webapp/WEB-INF/i18n/application.properties to src/main/webapp/WEB-INF/i18n/application_ar.properties

    2. Modify src/main/webapp/WEB-INF/i18n/application_ar.properties with translation

    3. Scape string to unicode java codes. This answer explains how do it using JDK tools

After file is created you don't have to do anything to configure: Spring WMC locates the file with language sufix and use it.

Good luck!

Community
  • 1
  • 1
jmvivo
  • 2,653
  • 1
  • 16
  • 20