Interface Translation

From RadPHP XE2 Documentation
Jump to: navigation, search
You can translate RadPHP interface into any language you want.
Note: Before you start a new translation, check if there is one already.

Contents

Locate Translation File

Translation file is called localization.sib. You will find it inside localization directory, which is in RadPHP installation folder.

Install SIL Editor

This file can be edited using SIL Editor, which is part of the TSILang Components Suite. You can download the editor from tsilang.com/download.html.

Add a New Language

Now that you know where localization.sib is and you have SIL Editor installed:

  1. Open the file in the editor.
  2. Select any form in the tree view on the left pane.
  3. Go to Tools > Add Language. If you chose a form in the left pane, it should not be grayed out.
  4. You will be asked for the name of the language you want to add. Type it, and click OK.

Translate

Now, you can start translating. Iterate through the forms in the tree view on the left pane. Inside each one you will find different categories, and inside them the strings to translate. Categories help you contextualize your translations. Now, after selecting a category, you can start translating from the central (edition) pane, a column for your language was added at the end (right end) of the translation table (Test in the screenshot below).

Interface-translation.png

While translating RadPHP interface, do not forgets these notes below:

  • Don’t translate strings if there is not a Spanish translation for them already. Those strings are not supposed to be translated, and by translating them, you might prevent RadPHP from working properly, or even from working at all.
  • You will see string which contain combinations of characters like %s or %d. These are placeholders which will be replaced by dynamic values on runtime. Do not remove these placeholders from your translation, and do not change its order, since it would result in RadPHP not working properly, or even crashing.
  • Try not to use different words from your language to translate the same English word in different contexts. Else, you might cause errors in RadPHP.
Personal tools