Localizing XML Refactoring Operations
Oxygen XML Editor plugin includes localization support for the XML refactoring operations.
The translation keys for the built-in refactoring operations are located in [OXYGEN_INSTALL_DIR]/refactoring/i18n/translation.xml.
         
The localization support is also available for custom refactoring operations. The following information can be translated:
- The operation name,description, andcategory.
- The descriptionof theparameterselement.
- The label,description, andpossibleValuesfor eachparameter.
Translated refactoring information uses the following form:
${i18n(translation_key)}
         Oxygen XML Editor plugin scans the
            following locations to find the translation.xml files that are used to
            load the translation keys: 
- A refactoring/i18nfolder, created inside a directory that is associated to a customized framework.
- A i18nfolder, created inside a directory that is associated to a customized framework.
- An i18nfolder inside any specified folder. In this case, you need to open the Preferences dialog box , go to , and specify the folder in the Load additional refactoring operations from text box.
- The refactoring/i18nfolder from the Oxygen XML Editor plugin installation directory ([OXYGEN_INSTALL_DIR]/refactoring/i18n).
Example of a Refactoring Operation Descriptor File with i18n Support
<?xml version="1.0" encoding="UTF-8"?>
<refactoringOperationDescriptor
    xmlns="http://www.oxygenxml.com/ns/xmlRefactoring" id="remove_text_content" 
           name="${i18n(Remove_text_content)}">
    <description>${i18n(Remove_text_content_description)}</description>
    <script type="XQUERY_UPDATE" href="remove_text_content.xq"/>
    <parameters>
        <description>${i18n(parameters_description)}</description>
        <parameter label="${i18n(Element_name)}" name="element_localName" 
                      type="NC_NAME">
            <description>${i18n(Element_name_descriptor)}</description>
            <possibleValues>
                <value default="true" name="value1">${i18n(value_1)}</value>
                <value name="value2">${i18n(value_2)}</value>
            </possibleValues>
        </parameter>
    </parameters>
</refactoringOperationDescriptor>
            