Hi,
I’ve followed this guide to enable Spanish translations of CUBA components. However, I’m facing a problem where the login screen would not be translated to Spanish.
In the app-web module I have the following tree:
src/com/haulmont/cuba/gui/messages.properties
...
loginWindow.okButton = Submit2
...
src/com/haulmont/cuba/gui/messages_es.properties
...
loginWindow.okButton = Enviar
...
src/com/haulmont/cuba/web/messages.properties
@include = com.haulmont.cuba.gui
...
src/com/haulmont/cuba/web/messages_es.properties
@include = com.haulmont.cuba.gui
...
src/es/company/project/web-app.properties
...
cuba.mainMessagePack = +com.haulmont.cuba.web es.company.project.web
...
src/es/company/project/web/messages.properties
...
loginWindow.okButton = Enviar2
...
With this configuration the login page shown is:
However, if I comment the line from src/es/company/project/web/messages.properties:
src/es/company/project/web/messages.properties
...
#loginWindow.okButton = Enviar2
...
The login page shown instead is:
In either case, the menu is correctly translated after logging in:
Does anyone have any clue about why it’s not picking translations for the login page?
Regards,
Bernat.
EDIT: I noticed there is no locale select at the login screen, this might be related.