KBEC-00118 - Translating custom form labels

Article ID:360033194091
1 minute readKnowledge base

Description

CloudBees CD (CloudBees Flow) allows you to customize the web UI, such as adding/editing forms (web pages) and fields. Each field can have a label (field name) to identify what information you must supply in the field. Some labels in internationalized custom forms may not be translated.

For example: If you are using CloudBees CD (CloudBees Flow) in Chinese instead of English and all labels are not translated, this article discusses how to translate the labels that remain in English.

Solution

To provide your own translations for custom form labels:

CloudBees CD (CloudBees Flow) uses the gettext format for php dictionaries.
  1. Place the English strings in the custom form xml

  2. Place translations for the English strings in customform.po

  3. Convert the .po file to a .mo file using gettext tools

  4. Place the .mo file in the commander/locale specific directories
    (Be sure to update the .mo files in all of the languages at the same time)

  5. Restart Apache after replacing .mo files