Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Nicolas B
Différence entre Language_fr.properties.native et Language_fr.properties
14 de agosto de 2007 5:59
Respuesta

Nicolas B

Ranking: Junior Member

Mensajes: 35

Fecha de incorporación: 28 de mayo de 2007

Mensajes recientes

Bonjour,

Quel est la différence entre ces deux fichiers : Language_fr.properties.native et Language_fr.properties ?

Merci.

Nicolas
Jorge Ferrer
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
26 de agosto de 2007 10:49
Respuesta

Jorge Ferrer

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2768

Fecha de incorporación: 31 de agosto de 2006

Mensajes recientes

Hi Nicolas,

I cannot answer you in French, but as nobody else has done it in a few days I'll go ahead and do it in English.

Language_fr.properties is generated at build time from Language_fr.properties.native using the native2ascii tool that is part of the JDK. The .native one is encoded in UTF-8 and is the one modified to add a new translation or change an existing one. But only Language_fr.properties is read at runtime.

Does this explanation help?
Nicolas B
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
27 de agosto de 2007 0:23
Respuesta

Nicolas B

Ranking: Junior Member

Mensajes: 35

Fecha de incorporación: 28 de mayo de 2007

Mensajes recientes

Thanks for your answer. But i need a precision.
You say "Language_fr.properties is read at runtime". So when I want to change a translation why i had to only change the Language_fr.properties.native file and not both ? When you change a translation in the Language_fr.properties.native, does it's reproducing automatically in the Language_fr.properties file (thanks to the extension procedure) ?

Nicolas
Jorge Ferrer
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
27 de agosto de 2007 5:46
Respuesta

Jorge Ferrer

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2768

Fecha de incorporación: 31 de agosto de 2006

Mensajes recientes

Hi Nicolas,

By "extension procedure" you mean the extension environment provided by Liferay? If so, I think it does not automatically invoke native2ascii, although it should be fairly easy to copy that functionality from Liferay's own development environment (see target build-lang-cmd in portal-impl/build.xml).