Adam has a built-in Translation-framework that allows you to easily translations
our out-of-the-box studios or any custom studio to another language. These
translations are stored in the database and can be configured using the Config
Studio. In the last couple of months we've noticed a few times that people don't
know that they can easily transfer these
translations to another database.
This can be done using the Adam.Core.CommandLine-tool. The
ExportTranslations command exports one or more languages of all or some
translations to an XML file. The ImportTranslations command can then be
used to import these translations in another database.
The ExportTranslations command has a -studio- and a -module-argument that allows
you to export only the translations that match your custom studio for example. These
arguments support an * as a wildcard. For example, to export the French translations
used only by the Config Studio, do something like this:
Adam.Core.CommandLine.exe ExportTranslations -studio=Config*
-path=C:\English.xml -language=French
Note though that exporting the ConfigStudio-studio alone is most of the time not
sufficient. Quite a few translations are shared by all studios (e.g. error
messages, trace messages, providers...) and are stored in other Studio-codes in
the translations (e.g. Adam.Core, Adam.Tools, Adam.Web.Core, Providers...). Make
sure to export them to if this is necessary.
By default the ImportTranslations-command will import the exported
translations again in the same languages as the languages that were used during
the export. The language names have to match between the source and target
database in this case. You first have to create any missing languages using the
Config Studio in the target database if you want to import in languages that
don't exist yet. You can easily force ImportTranslations to import in a
different language though. Simply open the XML-file and you'll notice entries
like this:
| XML |
1
|
<language name="English" />
|
Search and
replace these nodes to import in a different language.
More information about
ADAM translations can be found in the Adam Documentation.