Difference between revisions of "Translation Import/Export"

From SmartWiki
Jump to: navigation, search
Line 65: Line 65:
 
* [[Custom Field Language Settings]]
 
* [[Custom Field Language Settings]]
  
[[Category:Translation]][[Category:Custom Fields]][[Category:Translation]]
+
[[Category:Translation]][[Category:Custom Fields]]

Revision as of 13:18, 16 July 2014

System Administrators are able to export custom field translation settings as XML files and import custom field translation setting files that are XML. The Translation Import and Translation Export tabs are available within any Custom Fields Settings page.

Accessing the Translation Import/Export Tabs

  1. Go to Global Settings
    Globalsettings.PNG
  2. Under System Variables and Custom Fields, click on the hyperlink for Custom Fields
    GSCustomFields.PNG
  3. Using the left menu, select the Custom Fields you would like to translate. The associated custom fields will load within the main window once selected.
    CFSelect.PNG
  4. Above the list of custom fields you will see a language dropdown selection field. Use this to select the language you wish to add translations for.
    CFlanguage.png
  5. With a language other than English (Default) selected you will notice the Import and Export tabs have now changed to Translation Import and Translation Export. These tabs provide you the ability to export the existing field translation settings for the selected language in XML format, or import XML-formatted field translation settings.
    CFtranslate imp-exp.png


Translation XML Sample Breakdown

The following are samples of Translation XML files and how to update the data.

<customfield>
            <language>14</language>
            <id>1234567</id>
            <caption><span style="color:red">Are you a charitable organization?</span></caption>
            <captiontranslation><span style="color:red">¿Eres una organización de caridad registrada?</span></captiontranslation>
            <formatxml>
                        <audit>1</audit>
                        <maxp>0</maxp>
                        <searchable>0</searchable>
                        <wvp>,</wvp>
            </formatxml>
            <formatxmltranslation>
                        <audit>1</audit>
                        <maxp>0</maxp>
                        <searchable>0</searchable>
                        <wvp>,</wvp>
            </formatxmltranslation>
            <options>No;Yes</options>
            <optionstranslation>No;Sí</optionstranslation>
            <numberformat></numberformat>
            <numberformattranslation></numberformattranslation>
            <tabname></tabname>
            <tabnametranslation></tabnametranslation>
</customfield>

Translations for the above field are contained within the following XML tags:

  • <captiontranslation> </captiontranslation>
  • <formatxmltranslation> </formatxmltranslation>
  • <optionstranslation> </optionstranslation>
  • <numberformattranslation> </numberformattranslation>
  • <tabnametranslation> </tabnametranslation>


<language>14</language>
This tag contains the language ID. See the Language page for a list of language IDs.
<id>1234567</id>
This tag contains the Custom Field ID. This is used for matching when importing the file and must remain exactly as exported.
<captiontranslation> </captiontranslation>
These tags contain the translated caption as will be visible to the end user with the matching language ID settings.
<optionstranslation> </optionstranslation>
Should the field be a checkbox or combo box field, you will be provided with this tag in which to enter the translations for the options.
<tabnametranslation></tabnametranslation>
This tag controls the translation of the tab in which the field exists.

See Also