SAP Translation Hub (Beta) service in HCP enables you to translate short texts in HCP applications into additional languages quickly and easily. These services are available as REST services. In new release (April 2016) of SAP WebIDE, these translation services are integrated with SAP WebIDE and HTML5 application can get translated in different languages within WebIDE.
To enable the Beta service in HCP trial account. Following Configuration is need to updated in you trial account setup.
1. Click on Europe(Trial) in HCP cockpit and edit account configuration.
Figure 1 : Account setting to enable beta features
All the translation in HTML5 application are done by i18n.properties files stored in webapp/i18n. Ui5 Project has a separate file for each supported language with a suffix for the locale, for example i18n_de.properties for German, i18n_fr.properties for French, and so on. When a user runs the app, SAPUI5 will load the language file that fits best to the user's environment.These translation files are bind to SAP UI5 views using ResourceModel.
You can find the details process in following links
https://sapui5.netweaver.ondemand.com/docs/guide/df86bfbeab0645e5b764ffa488ed57dc.html
https://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f385926f4d1014b6dd926db0e91070/content.htm
To enable the translation services access from SAP WebIDE, Following configuration is required.
1. Enable and Configure the SAP Translation Hub service for your HCP account.
Enable SAP Translation Hub service in HCP cockpit.
Figure 2 HCP Cockpit Service Page
Assign Role to user who can assess Translation services
2. Create HCP Destination to Translation service
Create destination on account level with name - translationHubBeta with following Property
Name = translationHubBeta
Type=HTTP
URL= https://saptranslation-<HCP trial account name>.hanatrial.ondemand.com/ui
Authentication=AppToAppSSO
Proxy Type=Internet
Additional Properties:
TrustAll=true
WebIDEEnabled=true
WebIDE is integrated with Translation Data source and it suggest you the text that can be used in UI5 view files. With the use of this suggestion, translation services assures that you will get translation of this text in most of the languages.
You can choose these suggestions using CTRL + SPACE button while filling the text in UI5 view.
After selecting, the correct text from suggestion these text are automatically added in your project translation i18n.properties files.
By this process, you can make sure that Translation Service translates project text automatically.
Select HTML5 Project settings - > GIT Repository Configuration and check GIT server configuration.
Following following blog to atttach your HTML5 application with Git repository
http://scn.sap.com/docs/DOC-72610#DeployingAppPushToGit
Select the Languages in which translation files are required.
Translation service automatically generates the translation files in selected language and stores in GIT remote server. You need to fetch these changes in your WebIDE using GIT Pull option.
Translation files are automatically generated in HTML project i18n folder.
Enable Run setting as Preview as Frame and Run with mock data.
Translated languages can be change from right hand side Language Box in Test Frame.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
38 | |
19 | |
14 | |
12 | |
10 | |
10 | |
10 | |
8 | |
8 | |
8 |