How To
Summary
For example, language configured in environment is Korean and Chinese. All the text in the Store application is converted into Korean and Chinese languages. But on custom screen for custom strings, text is not translated into Korean and Chinese languages.
Objective
Describe steps to translate custom strings in different languages
Environment
IBM Sterling Store Engagement
Steps
Procedure
1) Go to <devtoolkit_docker>/compose directory.
2) In om-compose.properties find these two properties:
2.1) OM_INSTALL_LOCALIZATION=true
2.2) OM_LOCALES=zh_CN,zh_TW,fr_FR,ja_JP,pt_BR,ko_KR,ru_RU,tr_TR,it_IT,es_ES,de_DE,pl_PL
2.2) OM_LOCALES=zh_CN,zh_TW,fr_FR,ja_JP,pt_BR,ko_KR,ru_RU,tr_TR,it_IT,es_ES,de_DE,pl_PL
Uncomment both properties by removing #, if property start with #.
3) Run command ./om-compose.sh update-extn.
4) Once build is successfully generated, run command: docker exec -it om-runtime bash.
5) For Korean translation go to directory: /opt/ssfs/runtime/repository/factorysetup/complete_installation/XMLS/ko_KR.
5.1) Create new file "en_US_customlocalizedstrings_ko_KR.properties".
5.2) Add new translation keys and values.
(Make sure not to copy existing labels, which are in en_US_ycplocalizedstrings_ko_KR.properties).
(Make sure not to copy existing labels, which are in en_US_ycplocalizedstrings_ko_KR.properties).
6) For Traditional Chinese translation go to directory: /opt/ssfs/runtime/repository/factorysetup/complete_installation/XMLS/zh_TW.
6.1) Create new file "en_US_customlocalizedstrings_zh_TW.properties"
6.2) Add new translation keys and values.
(Make sure not to copy existing labels, which are in en_US_ycplocalizedstrings_zh_TW.properties).
(Make sure not to copy existing labels, which are in en_US_ycplocalizedstrings_zh_TW.properties).
7) To add data in YFS_LOCALIZED_STRINGS, run the following command:
7.1) cd /opt/SSFS_9.5/runtime/bin
7.2) ./sci_ant.sh -f localizedstringreconciler.xml import -Dsrc=/opt/ssfs/runtime/repository/factorysetup/complete_installation/XMLS -Dbasefilename=customlocalizedstrings
7.2) ./sci_ant.sh -f localizedstringreconciler.xml import -Dsrc=/opt/ssfs/runtime/repository/factorysetup/complete_installation/XMLS -Dbasefilename=customlocalizedstrings
8) Restart the application server to reflect the changes.
P.S. Above steps translate custom strings in different languages on containerized developer toolkit (DTK). Configuration Deployment Tool (CDT) can be used to move translations from DTK to IBM Sterling Store Engagement (SaaS) environment.
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"ARM Category":[{"code":"a8m0z000000cxzVAAQ","label":"Call Center Store and SIM"}],"ARM Case Number":"TS009189958","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
28 November 2023
UID
ibm16823763