Question & Answer
Question
How and When to create/extend extnbundle.properties
Answer
1) Use extnbundle.properties to override literals in yscpapibundle.properties, ycpapibundle.properties
2) When there are newly created resource keys -----
Create entries for these newly created resource keys in the <INSTALL_DIR>/extensions/global/resources/extnbundle.properties file
and in the corresponding properties files for each locale.
3) For existing keys, to implement localization, save the extended resource bundles as <INSTALL_DIR>/resources/extn/extnbundle_<language>_<country>.properties.
eg.
A
.User needs a bundle for default locale and another for French locale.
Consider localizing the value of
Ship_Node_Address=Ship Node Address which is in ycpapibundle.properties.
1)This is an existing key, so it can be added and overridden as below
Modify as Ship_Node_Address=Ship Warehouse Address in <INSTALL_
DIR>/resources/extn/extnbundle.properties.
For French locale
1)ycpapibundle.properties should be saved as ycpapibundle_fr_FR.properties in <INSTALL_DIR>\resources (maintaining the original ycpapibundle.properties also )
2)save the extended resource bundles as <INSTALL_DIR>/resources/extn/extnbundle_<language>_<country>.properties. (maintain the original also )
B
User has some customized screens and wants to add newly created resource keys in default and French locales eg. ABC = English speakers, ABC= French Speakers
English Locale
1)Create ABC = English speakers in the <INSTALL_DIR>/extensions/global/resources/extnbundle.properties file
2)Remove <INSTALL_DIR>/resources/extn/extnbundle.properties
French
1)Create ABC = French speakers in the <INSTALL_DIR>/extensions/global/resources/extnbundle_fr_FR.properties file
2)Remove <INSTALL_DIR>/resources/extn/extnbundle_<language>_<country>.properties
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21598347