Reports for WinForms | ComponentOne
Design-Time Support / Localization / Localization Toolbar
In This Topic
    Localization Toolbar
    In This Topic

    The Localize dialog box contains the following toolbar menu buttons:

    Button Description
    Create new translation begins a new localization for a ComponentOne assembly.
    Open opens an existing translation for a particular assembly.
    Save saves the current translation.
    Save as saves the current translation and allows you to select the project in which to save the translation.
    Add culture adds a new culture.
    Delete culture removes a culture from the translations.
    Select culture selects the culture to display and edit.
    Options customizes the appearance and behavior of the localization window.

    Create New Translation

    Clicking the Create new translation button begins a new localization for a ComponentOne assembly. A dialog box opens for you to select the ComponentOne assembly to localize.

    Note: The assembly must be referenced in the currently open solution.

    Open

    Clicking the Open button opens an existing translation for a particular assembly. All translations that you create are stored as .resx files, and are automatically added to the project that you select while saving the translation. Clicking this item shows a dialog box where a previously saved translation can be selected.

    When you create a new solution it does not contain any translations, so initially that window would look similar to the following image:

    After you have created and saved a translation, the Available cultures panel shows the list of cultures for which translations were created for the selected assembly.

    Save

    Clicking the Save button saves the current translation.

    The translation is saved in the project shown in the status bar. When the translation is saved, a folder with the name C1LocalizedResources is created in the selected project (if it does not already exist), and the .resx files with translations are saved in that folder, and added to the project. For each culture, a separate .resx file is created. These files are visible in the Solution Explorer window.

    Note: If your translation is only for the invariant culture, the .resx file does not contain a culture suffix.

    Save As

    Clicking the Save as button saves the current translation and allows you to select the project in which to save the translation.

    Add Culture

    Clicking the Add culture button adds a new culture.

    You can make translations for several cultures, and dynamically switch between them at run time. For each culture, a separate .resx file is created in the C1LocalizedResources folder. Clicking the Add culture button opens the Select culture dialog box that provides a list of available cultures:

    Initially the list contains neutral cultures only. To show all cultures, uncheck the Show only neutral cultures checkbox. You can use the English name, Display name, and Code boxes to filter the list of shown cultures. After you have selected a culture, press the OK button to add it to the translations. The newly added culture will appear in the Culture drop-down in the toolbar, and will become current in the window.

    Delete Culture

    Clicking the Delete culture button removes a culture from the translations. The Select cultures to delete dialog box provides the list of cultures existing in the translations:

    Selecting a culture and clicking OK removes it from the translations.

    Select Culture

    The Culture drop-down allows you to select the culture to display and edit.

    Options

    Clicking the Options button allows to customize the appearance and behavior of the localization window. The available Localization options include:

    Option Description
    Sync tree with grid When this item is checked, selecting a string in the right panel list also selects that string in the tree on the left. By default this item is unchecked.
    Show names in grid When this item is checked, the Name column is show in the right hand panel, otherwise that column is hidden. By default this item is checked.
    Show selected group only When this item is checked, the list of strings on the right contains only the strings from the group currently selected in the tree on the left. By default this item is unchecked.