CLI 参考 > 服务器管理命令 > im exporttranslations
  
im exporttranslations
exports all the available translations for the administrative objects such as Fields, Test Result Fields, Types, and States for the display name and description attributes.
Synopsis
im exporttranslations [--user=name] [--password=password] [--hostname=server] [--port=number ] [--adminType=value] [--outputFile==value] [--sourceLocale=value] [--targetLocale=value] [--[no|confirm]overwriteOutputFile]
Description
im exporttranslations exports all the available translations for the administrative objects such as Fields, Test Result Fields, Types, and States for the display name and description attributes.
The following is an example of the command that exports the administrative object Field, for German as the target locale and for which the source locale is English. Specifies whether to confirm overwriting the file with the output file "export.xml", when the output file already exists at the same location.
im exporttranslations --adminType=field --sourceLocale=en --targetLocale=de --hostname=localhost --port=7001 --outputFile="export.xml" --confirmoverwriteOutputFile
The following is an example of how the command with selection works. This command exports the translations for the administrative objects Field (Field1, Field2), State (State1), and Type (Type1).
im exporttranslations --sourceLocale=en --targetLocale=de --hostname=localhost --port=7001 --outputFile="export.xml" --confirmoverwriteOutputFile Field:Field1 Field:Field2 State:State1 Type:Type1
Options
This command takes the universal options available to all the im commands, as well as some general options. See the options reference page for descriptions.
--adminType
specifies the field value for the name of the administrative object such as Field, Type, and State to be exported.
--sourceLocale
specifies the locale value in which translatable strings are available.
--targetLocale
specifies the locale value for which translations are required.
--outputFile
specifies the path and name of the XML file to export the translations to.
--[no|confirm]overwriteOutputFile
uses the following settings:
--[no|confirm]
specifies if to overwrite the existing file. The default is to confirm.
selection is a set of multiple administrative object and its relevant instance, separated by a colon, such as Field:field1. When we have multiple sets, they are separated by space.
See Also
Commands: im importtranslations
Miscellaneous: options