Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 29 Current »



Language xml files and Terms

At startup, Macrium Reflect loads the language .xml file corresponding the chosen language in 'Other tasks' > 'Edit Defaults and Settings' > 'Advanced' > 'Language':



Folder 'C:\program Files\Macrium\Common\Languages' is the source for all available languages and translations.
New languages are automatically downloaded when Reflect starts.  


Language files are named using the ISO 639-1 character code of the language.


Example xml format:

<localization>
    <language code="de" updated="2021-11-12T15:18:15+0000">German</language>
    <date_created>19/11/2021 11:48</date_created>
    <executable>
        <name>ReflectBin</name>
        <strings>
                <IDR_MAINFRAME-POPUP1>&amp;Datei</IDR_MAINFRAME-POPUP1>
  • The language code must be a valid ISO 639- code, in this case it's "de"

  • The updated date of "2021-11-12T15:18:15+0000" indicates whether the file is outdated, and if so, it will be replaced if a later file is found when checking for updates or if the language is switched to German.

  • The executable name "ReflectBin" indicates that the text is used in the main Reflect application. 

  • In the example above term IDR_MAINFRAME-POPUP1 is a unique identifier (term) that defines the text element Datei in Macrium Reflect, in this case it's the first menu item on the main screen:


Other than testing, please do not update language xml files directly.  Language xml files are generated by downloading data from our on-line localization database, POEditor, or by automatic updates from our server. 

How to find the unique identifier for a term 

Download en-us.xml

You can simply search the English language xml file to locate the term for English text.  The file 'en-us.xml' contains every term available for translation available in Macrium Reflect and installed components,

Use 'DownloadLangXml.exe en-us'   to get the latest English terms. 

See: Viewing your translations in Macrium Reflect  for more information on DownloadLangXml.exe


Open the file in Windows notepad and use the Ctrl+F search facility to search for English text. 



In this example the unique term id is IDS_XML_EMPTY_LIST_PARA2_OPTION1_CREATE_IMAGE for "Create an Image...".

The full term id in POEditor will be preceded by the application name and the # character, i.e, ReflectBin#IDS_XML_EMPTY_LIST_PARA2_OPTION1_CREATE_IMAGE


Macrium Reflect Language Debug Mode


Command Line

Reflect has command line parameters to turn Language Debugging on and off.

OnReflect.exe/ReflectBin.exe  -dl1
OffReflect.exe/ReflectBin.exe  -dl0


Menu Option


You can also create an empty file in the installation folder named: 'debuglanguage': 

Folder:  C:\Program Files\Macrium\Reflect\
File:    debuglanguage


If this file exists then you can toggle debug on/off using the 'Other Tasks' > 'Debug Language' menu option. The file can be created/deleted at any time nd the menu option will show/hide dynamically. 

 

Note: Only dialogs and menus that are re-shown or refreshed will show the resource identifiers. To show all strings restart Macrium Reflect. 
It isn't possible to restart Macrium reflect in Windows PE. 
Note: If the file dubuglanguage exists when building rescue media then the menu option will also be available in Windows PE/RE
It isn't possible to restart Macrium reflect in Windows PE. (see note above)


Registry

Alternatively, you can set the following registry entry to make Reflect load in Language debug mode:

KeyHKEY_LOCAL_MACHINE\SOFTWARE\Macrium\Reflect\Settings
NameDebugLanguage
TypeDWORD 32 bit
Value0 - Off,  1 - On

Restart Reflect after changing the registry.

Reflect showing unique identifiers 

Note: In some cases these may be truncated and difficult to read.
  • No labels