简体   繁体   中英

How to change the language of an OpenXava application?

I want that my OpenXava application works in multiple languages (English, Japanese and Spanish). How can I set the language of my application to Japanese, for example?

An OpenXava application works by default with the language defined in the user browser as default language. So, if you want see your OpenXava application in Japanese with Chrome, go to the Setting option of Chrome, there open the Advanced options and then open the Languages section. Move Japanese to the firt position of the list. In this way:

在此处输入图像描述

Firefox, Safari and Edge also have options to change the language. Afterwards, reload your OpenXava application in the browser and it will be in Japanese, as following:

在此处输入图像描述

OpenXava has the most common used labels translated to English, Spanish, German, French, Chinese, Russian, Japanese, Portuguese, Catalan, Indonesian, Italian, Polish, Serbian and Swedish, therefore most of the labels will be in Japanese automatically. Although, you can add new translations for your own terms or add a new language easily. Look at the OpenXava documentation about internationalization .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM