Which directory should i put localization message pack

i have put localization message pack for chinese to ,but the web ui language still is english .,even if i select the chinese language in login window. i don’t know what incorret. please help me.

thanks!

messagePackInIDEA

ProjectLocalSetting

the loginWindow capture

loginWindow

Hi,

The problem is in message pack selection mechanism. See the linked YouTrack issue for more details.

If you rename your localization files to “messages_zh_CN.properties” (uppercase country code), everything should work.

Thank you.

hi, thank you!
I changed the file name to “messages_zh_CN.properties” and change the language setting in CUBA stuido according to your comment,but the problem still exists.
then I changed the file name to “messages_cn.properties” ,don’t include country code,and changed the language setting in studio also. but the same problem .
here is the capture:

app-gui-xx-SHAPSHOT.jar

loginWin

languageSettingInCUBAStudio

messages_cn.properties

Hi,

As I see, you have specified localized messages for the GUI module, but Web-client could not find them. Assumably your Web module has no message pack for the selected language.

Create messages_cn.properties in the Web module and add
@include = com.haulmont.cuba.gui to it. This will tell Web-client to search messages in GUI message pack.

WebMessages

Hi,
Thank you very much! Now it works!

Thre another problem about mp2xls tool.
I will translate full messages using mp2xls tool.
As you know, my previous problem caused by the missing "@include " directive ,but why the mp2xls tool have not write the "@include " directive when generate messages pack.

XLSMessages

ChineseWebUI

GeneratedWebMessagesPack

ChineseLoginWin

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-8793