Translate Your SAP Cloud Platform Portal Freestyle Site
- How to download your site content for translation
- How to translate the content yourself in the SAP Translation Hub (optional)
- How to import and upload the translated content
- You’ve opened your SAP Cloud Platform subaccount.
- You’ve opened the
Portal Serviceand navigated to the Site Directory where your
Supplier Portalsite that you created is located. For more information, see Create a Portal freestyle site.
Note that these steps are carried out using the Supplier Portal site that you created in a previous tutorial. However you can do these steps on any Portal site that you’ve created.
- Step 1
In this step, you will download the content of the
Supplier Portalsite into a ZIP file.
The files are downloaded into your
Downloadsfolder. For convenience sake, in your
Downloadsfolder, you may want to create a new folder called
TRANSLATIONSand store your files there so that they are easy to find when you need to upload them again.
From the Site Directory select the
Supplier Portalsite and click Edit to open it in the Portal Site Designer.
From the left side panel, click Services and Tools.
Select the Translations Manager tile and click Configure to open the UI of the Translations Manager.
Under Translation Files click Download.
You are downloading the site’s content in the master language (English).
master_Language_<date>.zipfile that appears at the bottom of the screen and open it using the options menu.
You can now see the following files in the
Here’s an explanation about the files that you’ve downloaded:
A folder that includes all the site’s assets such as images, HTML files, and so on.
A properties file with the site’s source strings such as text strings for menu items.
A text file with explanations.
A properties file that includes any web content strings in the site (these files exist only if there are web content widgets used in the site).
<siteId>.propertiesfile and the
WCE_<siteId>.propertiesfile and click Extract To.
Extract the zip files into your Downloads folder and save it in the Translation Files folder that you created. It’ll make it easier to find them afterwards when you need to upload them for translation.
If you go up a level and look at your Translation Files folder, you’ll see both your translation files like this:
Your files are now ready for translation.
At this stage you can send these files to your translator. They will then translate the files and when the translation is done, they will return the files to you for uploading back into your Portal site. In this case you will continue with Step 2 of this tutorial and then skip to steps 5 and 6.
If you want to translate the files yourself using the SAP Translation Hub – a service of SAP Cloud Platform, skip Step 2 and continue with the rest of the tutorial (steps 3, 4, 5, and 6).
- Step 2
This step is relevant only if you’ve sent your content files to a translator (in other words, you are not using the
SAP Translation Hubto translate your site content).
When you get the translated files back from your translator, you receive them in the same format as when you sent the files to them like this:
Before you can upload the translated files to your Portal site, you need to ensure that each translated file includes a language locale as a suffix. This suffix identifies the translated language.
If the files don’t already include this suffix, rename the properties file that has been translated to German and add
deas the suffix. Do the same with the properties file that has been translated to French - rename this one with
frin the suffix.
Now open the
master_Language_<date>.zipfile (that you downloaded in Step 1) and add the renamed property files to this zip file.
Do this for both the
When you’re done, this is how the files should look in your
Note that you have 3 files for each - one with the German translation
<siteId>_de.properties, one with the French translation
<siteId>_fr.properties, and the original one that is already there and has not changed.
- Step 3
To do this step, you need to go back to the SAP Cloud Platform cockpit where you can access the SAP Translation Hub service.
You’re still in the Translation Manager. To access the cockpit easily, click Useful Tools at the bottom of the left panel and choose SAP Cloud Platform Cockpit.
From the left side panel in the cockpit, click Services.
From the Globalization category, select the SAP Translation Hub tile.
From the SAP Translation Hub - Overview page, click Go to UI for Translation Workflow.
The SAP Translation Hub user interface opens in a new browser tab.
- Step 4
In this step, you are going to create translation projects for the
.propertiesfiles that you downloaded.
Click + at the footer of the Translation Projects list.
Click File Upload.
In the File Upload Project Details screen, enter the following values:
Property Value Project Name
Supplier Portal Site Texts
Java Properties Files
Target Languages select
This is how it looks on the screen.
The new Translation Project is created.
Click Upload File at the bottom right corner of the screen.
In the File Upload dialog click Browse.
Navigate to the Translation Files folder where you saved your downloaded files and select the
<SITE_ID>.propertiesfile. Click Open.
Click Upload and Translate. You will see that the translation process starts. Hang on until the progress bar shows that the translation process is done.
Once the translation process is complete, click the Translations tab that appears.
Click Download Translations at the bottom right of the screen.
You can see your translation zip file at the bottom of the screen. Click Open.
Supplier Portal Site Texts.zipopens from your
Note that you have two files - one in German and one in French.
Now you need to create another translation project for the web content properties file (
WCE_<SITE_ID>.properties). To do this, repeat steps 1 to 12. Name this project
Supplier Portal WCM Texts. Select the same target languages as the first properties file, and then upload the
The result is:
You are now ready to upload your translated files to your Portal site. To do this, you need to go back to the Portal Site Designer and open the
- Step 5
In this step you will upload the translated files. Either the files that you received from your translator or those that you translated above in the SAP Translation Hub.
Go back to the Portal Service.
From the Site Directory, open your
Supplier Portalsite for editing.
Click Services and Tools and open the Translations Manager.
Under Translation Files, click Upload.
From your Downloads folder, select the
Supplier Portal Site Texts.zipfile. You will get a toast message to say that the upload was successful.
Then click Upload again to upload the
Supplier Portal Site WCM Texts.zipfile.
In the Translations Manager scroll down to the Available Languages section and turn on the
Germanlanguages to activate them. Once activated, these languages will be available for end users of your site to select.
- Step 6
Now you are going to publish the
Supplier Portalwith all your changes. Since you have uploaded the translated content in
German, and since you have activated the
Germanlanguages, end users will be able to select these languages in their
Let’s check this out.
In the top right corner of the
Supplier Portalsite, click Publish to publish the latest changes.
In the Publish Site dialog box, click Publish and Open to open the
Supplier Portalsite in the master language (English) in a new browser tab.
Meicon on the left side of the top-level menu.
In the Settings dialog box, select Language & Region. Note that the languages
Germanare in the dropdown list for selection.
Frenchand then Save. Note that the browser reloads in
Frenchand looks like this:
Now try it out in
When you are done, set the language back to your Browser Language (English) as the language settings are applied to your User and will be applied throughout your SAP Cloud Platform account.
Just for your information - web content editors can translate the web content of a site directly from the Web Content Editor tool by selecting one of the languages activated by the site administrator. For more information, see Translate Web Content
Congratulations! You have translated your Portal freestyle site and end users can now view the content of your site in French and German.
What is the master language?