Creating a translation package
Expand the user base of your application by translating it into different
languages. By creating a translation package, you bundle all the text in your
application into a single .zip
file, which translators can then
process more conveniently.
The system exports the majority of the text in your application to a
TextToTranslate.xml
file. The file does not include custom
rules, such as correspondence rules and HTML fragments. For each of these rules, the
system creates a separate folder with a pair of files called
Translation.html
and Base.html
. Both files
initially contain the same text, but during the localization process, the translator
puts the target text into the Translation.html
file.
In the header of Dev Studio, click
.In the Select a Language list, pick a target language, and then click Add.
You can select more than one language.If your application already has a translation, select the Re-translate existing translations? check box to overwrite the previous translation.
Click Next.
Select the rulesets that represent the text that you want to localize:
Choices Actions Application-specific text Select the Include application layer ruleset check box.
In the list of rulesets, select the rulesets that you want to include in the translation package.
General Pega text: no language pack Select the Include all PegaRULES application rulesets check box.
Select the Include Pega translation and export for custom translation check box.
General Pega text: rewriting the language pack translation Select the Include all PegaRULES application rulesets check box.
Select the Override Pega translation and export for custom translation check box.
Text from another ruleset Select Include field value from other rulesets, and then select the source ruleset. Click Next.
Click Enable records for translation.
The wizard might display a list of errors related to ruleset dependencies and custom code. You can click on a rule to open it in a new tab and resolve the error. For custom code, such as HTML fragments, you can use the getLocalizedTextForString(String, String) method to make the code translatable.Click Next.
Select whether you want to include example files in the translation package.
Click Download for translation, and then click Next.
Note the Work ID number for the translation, and then click Close.
The Work ID number helps you identify the translation task when the translation package is ready.
Previous topic Installing Pega language packs Next topic Preparing a translation package for a translator