Message Boards
Différence entre Language_fr.properties.native et Language_fr.properties
Nicolas B, modified 16 Years ago.
Différence entre Language_fr.properties.native et Language_fr.properties
Junior Member Posts: 35 Join Date: 5/28/07 Recent Posts
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, modified 16 Years ago.
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
Liferay Legend Posts: 2871 Join Date: 8/31/06 Recent Posts
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, modified 16 Years ago.
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
Junior Member Posts: 35 Join Date: 5/28/07 Recent Posts
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, modified 16 Years ago.
RE: Différence entre Language_fr.properties.native et Language_fr.propertie
Liferay Legend Posts: 2871 Join Date: 8/31/06 Recent Posts
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).