The Country picker in Commerce Reference Store references the navigation_country
keys in the WebAppResources_<
code
>.properties
files when displaying the list of countries you can pick from; a navigation_country
key exists for each site/country combination. In order for a new country’s name to appear in the Country picker you must add it to all of the WebAppResources_<
code
>.properties
files.
Note: These changes will not appear until after you rebuild and redeploy the ATGProduction.ear
file, which is the last step in this process and is described in Redeploying the ATGProduction.ear File.
To add a new country’s name to the Country Picker:
Extract the following files from the
<ATG10dir>/CommerceReferenceStore/store/Storefront/lib/classes.jar
file:WebAppResources.properties
WebAppResources_de.properties
WebAppResources_es.properties
Place copies of the extracted files in the
<AT1010dir>/home/locallib/atg/projects/store/web
directory.At this point, you should have four
WebAppResources
files in this directory, one each for English, German, Spanish, and Italian.In each
WebAppResources
file, search for thenavigation_country
key. You should see existingnavigation_country
keys for United States and Germany.Add a
navigation_country.storeSiteIT
key for Italy. The value for this key will depend on the language of the resource bundle, for example:For
WebAppResources.properties
, addnavigation_country.storeSiteIT=Italy
For
WebAppResources_de.properties
, addnavigation_country.storeSiteIT=Italien
For
WebAppResources_es.properties
, addnavigation_country.storeSiteIT=Italia
For
WebAppResources_it.properties
, addnavigation_country.storeSiteIT=L'Italia
Save the resource bundles.