Unable to Localize User Editor labels

Hi,

I’ve been trying to localize the following messages:

login=Login
name=Nome
firstName=Nome
lastName=Cognome
middleName=Secondo Nome
position=Posizione
email=Email
group=Gruppo
role=Ruolo

I put this entries inside
{ProjectDIR}\models\gui\src\com\haulmont\cuba\gui\app\security\user\edit\messages_it.properties

Nothing hppens, nonetheless other labels like:


loginMsg=Login non specificata
groupMsg=Gruppo non specificato
confirmPasswMsg=Conferma Password non specificata
passwMsg=Password non specificata

are correctly set

Hi!
To override localization of these messages you should put to your main message pack in gui module the following key/value pairs:


com.haulmont.cuba.security.entity/User.login=Login 
com.haulmont.cuba.security.entity/User.name=Nome 
com.haulmont.cuba.security.entity/User.firstName=Nome 
com.haulmont.cuba.security.entity/User.lastName=Cognome 
com.haulmont.cuba.security.entity/User.middleName=Secondo Nome 
com.haulmont.cuba.security.entity/User.position=Posizione 
com.haulmont.cuba.security.entity/User.email=Email 
com.haulmont.cuba.security.entity/User.group=Gruppo 
com.haulmont.cuba.security.entity/User.role=Ruolo 

Actually, you can override any localization property in such way (considering default localization message pack).

Thanks it worked, only in the web module.

only in the web module
What do you mean?

I used studio to update the main message pack because putting it in the gui module didn’t work… It turns out Studio put it in \modules\web\src\com\company{application}\web\messages_it.properties

I guess I’m missing smthg about who overwrites what sorry :slight_smile: