<< Click to Display Table of Contents > 

SAMLight Manual > How to > Customize Program / Language > Customize Language > Translation per XML > Switching from Resource Editor to XML-translation

Switching from Resource Editor to XML-translation
Previous pageReturn to chapter overviewNext page

If you're currently using the SAM Resource Edit Mode to translate SAMLight, there's a possibility to switch to .XML-translation method without loosing your previous translations.

1.Make sure that your language is selected in the resource editor. It means that you select your language and can also keep the resource editor activated.

2.Start SAMLight with the command line parameter -export_language (or /export_language) which will generate a file named sc_resource_sc_mylanguage.xml (in Multbyte) or sc_resource_sc_mylanguage_uc.xml (in Unicode) in the folder <SCAPS>\reportfiles. This is the file containing all the strings that are available for the translation, including the strings already translated. It is strongly recommended to backup this resource-XML file. Then, you can edit the "Translated" and "Visibility" columns using any .xml file redactor (for example Microsoft Excel). Do not change any other columns!

3.After you are done with the translation, save the changes of the sc_resources_sc_mylanguage.xml in the <SAM>\reportfiles repository (don´t forget to make a backup) and start SAMLight with the command line parameter -import_language.

To load a new translation file, see Editing existing translation or in the case that your .xml does not contain some strings you need, it may be helpful to update your resource file. You will find the instruction in Resource File Update.

4.If you did new translations in the resource edit mode, you have to -export_language again to update your .XML file. It won't be done automatically.

Pay attention: This method does not work for English under Multibyte!