Skip Navigation LinksBCGSoft > Support > Developer Area > Translator

Translator

Translator is a tool for localizing your program's interface into any language.

The Translator application is named BCGTranslator.exe and installed in the <install path>\BCGSoft\BCGControlBarPro\Designers folder. The corresponding shortcut is added to the "BCGCBPro" application group.

It supports selecting a predefined (or custom) language, operates with translations in XML language files, synchronizing with resource text labels (other synchronization options are also available).

BCGSoft Translator: Start page

Description of Translator interface

Menu

  1. File:
    • Open... - open an existing Visual Studio project (dsp, vcproj, vcxproj).
    • Close - close a project being edited.
    • Save - save a project being edited.
    • Exit - close the Translator.
  2. Edit:
    • Cut - cut the selection and put it on the Clipboard.
    • Copy - copy the selection and put it on the Clipboard.
    • Paste - insert Clipboard contents.
    • Clear target(s) - clear the translation of the selected items.
    • Add item... - add an item(s) to the translation.
    • Remove item - remove an item(s) from the translation.
    • Syncronize... - syncronize translations.
    • Add from Resources... - add missing resource text labels (string tables, toolbars, menus, ribbons, or dialogs).
  3. View:
    • Toolbars - show, hide, and customize the application toolbars and docking windows.
    • Status bar - show or hide the application status bar.
    • Application Look - specify the application's theme.
  4. Help: displays Translator version info and this development guide.

Docking Windows

  1. Actions - displays shortcuts to actions available in the current context. For example, if there is no open project, you can only open an existing project, or project from the recent list:

    BCGSoft Translator: 'Actions' pane

  2. Elements - displays a list of translations available in the project being edited. Use docking pane to add, delete and see the properties:

    BCGSoft Translator: 'Elements' pane

    If you click "Add" button the "Add translation" dialog appears:
    BCGSoft Translator: 'Add Button' dialog

    In a few steps, here you can pick a predefined language, specify translation names and locale, then select synchronization type for your interface. For details, see the General Workflow section below.

    Clicking the "Delete" button removes the selected translation.

  3. Properties - displays properties for the currently selected object (translation).

    The following screenshot illustrates translation properties:

    BCGSoft Translator: 'Properties' pane

    • ID - specify the new translation ID.
    • File Name - specify the name of the translation in XML file.
    • Source Locale - specify the translation source language.
    • Target Locale - specify the translation target language.
    • Internal Resource DLL - specify internal resource DLL.

General Workflow and Main view

  1. Start the application and open your working Visual Studio project (.dsp, .vcproj, .vcxproj). BCGSoft Translator logo
  2. To add or delete a translation click the appropriate button on the Elements pane toolbar.

    BCGSoft Translator: Add new translation. Step 1

  3. In this dialog, you can select a predefined or custom language:

    BCGSoft Translator: Add new translation dialog. Step 2

  4. The next step is to specify the translation names and locale:

    BCGSoft Translator: Translation names and locale. Step 3

  5. Then you must select one of the following synchronization types:

    BCGSoft Translator: Synchronization types. Step 4

    • Synchronize with resource text labels. Synchronize the structure with resource text labels (string tables, toolbars, menus, ribbons, or dialogs).

      Please note that if you are using the non-English resources, your .rc file should be saved with UTF-8 or UTF-16 encoding. Otherwise, your resource strings will be incorrectly imported to the Translator.

    • Synchronize with other translations. Create the structure (with empty target strings) based on other translations.
    • Create empty. Create a new translation with the empty structure.

  6. For example, let's choose the first method. Once the text labels are loaded, simply fill in the blank matches (or clear any you don't need). BCGSoft Translator: Workflow

Editing the translation scheme

To add an item(s), you can use the corresponding button on the toolbar: BCGSoft Translator: 'Add item' button

To delete item(s), use 'Remove item' button: BCGSoft Translator: 'Remove item' button

You can also synchronize the content of translations (Edit -> Synchronize…) with several options:

BCGSoft Translator: 'Synchronize' dialog

  • Synchronize this translation. Synchronize the structure of the current translation with other translations (add missing lines and delete nonexistent lines).
  • Synchronize other translations. Synchronize the structure of other translations with the current translations (add missing lines and delete nonexistent lines).
  • Synchronize all translations. Collect lines from all translations and add missing links to all translations.

Translator generates the corresponding XML, which can be viewed through the XML Viewer (View –> XML Viewer).

BCGSoft Translator: XML Viewer

Please look at the Localization article to examine how to use translations prepared by the Translator in your application.

Back to the Developer Area