Set Up String Resource
Content
- Set Webstore Selling Language
- Set Webstore Selling Language Per Country
- Manually Set String Resource
- Import / Export String Resource
This article demonstrates how to set up string resources in Connected Business. When setting up string resources for your webstore, make sure that the token (!COUNTRYSELECTLIST!) is on the template.ascx file of the skin used in the webstore. To check this, you can go to the installation folder of Connected Business > CBE > Web > Skins. Select the skin folder currently used in the website (e.g. Skin_99) and open the template.ascx file using a notepad or any html editor.
In the template, verify if the (!COUNTRYSELECTLIST!) is in the code as shown in the image below.
Set Webstore Selling Language
- The Selling Language form in Connected Business allows you to enable other languages to be available in the webstore. To set a selling language, go to eCommerce module > Setup > Selling Language.
- In the Selling Language form, tick the Include checkbox of the languages you want to support in the website.
- Go to the webstore and you will see that the selling languages selected are now available in the selling language dropdown list.
Set Webstore Selling Language Per Country
You can also set the language to be used for each country supported in the webstore. To do this,
- Go to System Manager module > Setup > Country and the Country form will be displayed.
- Search for the country supported in the webstore. The Country Detail form will be displayed.
- In the Language field, select the language to be used for the country selected.
- Click Save and Close.
Manually Set String Resource
The String Resource form is where you can set and store all language-specific text used by each language supported in the webstore. The language code used in the String Resource form is based on the Short String column in the Language dropdown field of the Country Detail form. To access the String Resource form, go to eCommerce module > Setup > String Resource. To set a string resource,
- Go to eCommerce module > Setup > String Resource. The String Resource form will be displayed.
- Search for the string resource name to be modified (e.g. Home). The String Resource Detail form will be displayed.
- In the Locale Setting field, select the language to be used for the string resource (e.g. en - tt).
- In the Config Value field, enter the preferred string resource value or text to be shown in the webstore for the country selected (e.g. My Home).
- Reset the web cache for the webstore and you will see that the string resource is updated based on the selected selling language.
Import / Export String Resource
To automatically set and create string resources, you can export and import existing string resource and modify the string value based on your preferred locale setting. To do this,
- Go to eCommerce module > Setup > String Resource. The String Resource form will be displayed.
- Click the Export button.
- Select an existing language for the Locale Setting and the website code. Click OK.
- Enter the String Resource filename and path location where you want to store the String Resource template.
- If you want to modify the text shown in the webstore for a specific language, open the String Resource template and modify the value in the String Value column.
- After making the modifications, open the String Resource form in Connected Business (go to eCommerce module > Setup > String Resource) and click Import button.
- Select the excel file for the String Resource template.
- Select the Locale Setting where you want to apply the template. Click OK to start importing.
- After successfully importing the data, reset the web cache for the webstore (go to eCommerce module > Webstore and click on Reset Web Cache) to apply the changes.