Install a translation file for the XC Business Tools
Sitecore XC Business Tools lets users select a language in which to display the graphical user interface (GUI). By default, the XC Business Tools GUI displays in English. To provide business users the ability to display the XC Business Tools other languages, you must first download and install the translation file into the Sitecore Experience Platform.
The way in which you install a Business Tools translation file depends whether you use one of the translation resource (.dat) files that Sitecore provides for Danish, German, and Japanese, or whether you want to install your own XML translation file.
With each release, Sitecore provides XC Business Tools translation files for Danish, German, and Japanese. Sitecore is configured to support these languages by default. You can download translation resource files for these languages on the Sitecore Downloads site.
For any other language support, you must provide your own translation XML file.
Starting with Sitecore Experience Commerce 10.2, translation Sitecore translation files are provided as items resource files (.dat
files).
Install a Sitecore-provided translation resource file
To install one of the Business Tools translation files that Sitecore provides:
-
On the Sitecore Downloads site, go the Sitecore Experience Commerce release page and, in the Translations section, download the Business Tools translations resource package on your Sitecore server instance.
NoteThe downloaded ZIP package contains translation files for the Danish, German, and Japanese languages.
-
Extract the ZIP file, open the
Content
folder, right-click on the ZIP file corresponding to the desired language, for exampleSitecore Commerce Engine Connect (de-DE) *.*.**.zip
, and then extract the content to theitems
folder in the following location in Sitecore:\inetpub\wwwroot\<Sitecore>\sitecore modules\
NoteThe structure of the
items
folder included in the ZIP package matches the structure of theitems
folder in Sitecore. As a result, the translated files are copied to the appropriate location under\inetpub\wwwroot\<Sitecore>\sitecore modules\items\
(in themaster/localization
,core/localization
andweb/localization
folders). -
Open Internet Information Manager (IIS) and restart the IIS service.
-
To verify that the translation file is available in Sitecore, on the Sitecore Launchpad, click Content Editor, go to Sitecore/Commerce/Commerce Control Panel/Commerce Engine Settings/Commerce Terms/Systems Messages, and click any system message item.
-
On the ribbon, on the Versions tab, in the Language group, click the language you imported, for example German (Germany). In the Content area, in the Value field, you can see the translated string, as shown in the following example:
-
In Postman, run the Sync content path sample request to make the new language added to Sitecore available in the Business Tools.
-
In Postman, in the
SitecoreCommerce_DevOps/Caching
, collection, run theClearAllCaches (Redis only)
to flush the Redis cache.When you launch Sitecore XC Business Tools and select the language you want to display, for example German, the interface now displays in that language, as shown in the following example:
Install a customer-provided translation file
If you do not use one the translation files that Sitecore provides on the Download site, you can install your own translation XML file.
To install a custom translation XML file:
-
Store the language file you want to import in the following location
C:\inetpub\wwwroot\<YourSitecoreServer>
. This is where the file must be stored so that you can access it in subsequent steps. -
On the Sitecore Launchpad, click Control Panel and in the Localization section, click Import languages.
-
In the Import Languages dialog box, click Browse. The Open Language File dialog box opens.
-
Click Browse, select the language file to import (for example,
es-ES.xml
), and then click Open.NoteIf you cannot find the required language file in the Open Language File dialog box, make sure that it is stored in
C:\inetpub\wwwroot\<YourSitecoreServer>.
-
In the Import Languages dialog box, click Next, and click Next again to confirm the language to import.
-
In the Database drop-down list, click Core, and then click Import. A dialog box notifies you when the import operation is complete.
NoteItems in the translation file with the database set to "master" override the database selection you make in the Import Language dialog box.
-
To verify that the translation file is available in Sitecore, on Sitecore Launchpad, click Content Editor, go to Sitecore/Commerce/Commerce Control Panel/Commerce Engine Settings/Commerce Terms/Systems Messages, and click any system message item.
-
On the ribbon, on the Versions tab, in the Language group, click the language you imported. In the Content area, in the Value field, you can see the translated string, as shown in the following example:
-
Open Internet Information Manager (IIS) and restart the IIS service.
-
In Postman, run the Sync content path sample request to make the new language added to Sitecore available in the Business Tools.
-
In Postman, in the
SitecoreCommerce_DevOps/Caching
, collection, run theClearAllCaches (Redis only)
to flush the Redis cache. -
In the Business Tools, when you choose the installed language in the language picker, the user interface is displayed in that language.