Forums de discussion

Différence entre Language_fr.properties.native et Language_fr.properties

Nicolas B, modifié il y a 16 années.

Différence entre Language_fr.properties.native et Language_fr.properties

Junior Member Publications: 35 Date d'inscription: 28/05/07 Publications récentes
Bonjour,

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

Merci.

Nicolas
thumbnail
Jorge Ferrer, modifié il y a 16 années.

RE: Différence entre Language_fr.properties.native et Language_fr.propertie

Liferay Legend Publications: 2871 Date d'inscription: 31/08/06 Publications récentes
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, modifié il y a 16 années.

RE: Différence entre Language_fr.properties.native et Language_fr.propertie

Junior Member Publications: 35 Date d'inscription: 28/05/07 Publications récentes
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
thumbnail
Jorge Ferrer, modifié il y a 16 années.

RE: Différence entre Language_fr.properties.native et Language_fr.propertie

Liferay Legend Publications: 2871 Date d'inscription: 31/08/06 Publications récentes
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).