Foros de discusión
Différence entre Language_fr.properties.native et Language_fr.properties
Nicolas B, modificado hace 16 años.
Différence entre Language_fr.properties.native et Language_fr.properties
Junior Member Mensajes: 35 Fecha de incorporación: 28/05/07 Mensajes recientes
Bonjour,
Quel est la différence entre ces deux fichiers : Language_fr.properties.native et Language_fr.properties ?
Merci.
Nicolas
Quel est la différence entre ces deux fichiers : Language_fr.properties.native et Language_fr.properties ?
Merci.
Nicolas
Jorge Ferrer, modificado hace 16 años.
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 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?
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, modificado hace 16 años.
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
Junior Member Mensajes: 35 Fecha de incorporación: 28/05/07 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
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, modificado hace 16 años.
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 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).
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).