exportresourcestrings

www.altova.com すべてを展開/折りたたむ このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  MapForce Server コマンドライン >

exportresourcestrings

The exportresourcestrings command outputs an XML file containing the resource strings of the MapForce Server application. It takes two arguments:

 

the language of the resource strings in the output XML file; this is the export language. Allowed export languages (with their language codes in parentheses) are: English (en), German, (de), Spanish (es), French (fr), and Japanese (ja)
the path and name of the output XML file

 

How to create localizations is described below.

 

Syntax

 

mapforceserver exportresourcestrings [options] LanguageCode XMLOutputFile

 

Click to expand/collapseコマンドライン上の文字種とスラッシュ

Windows上での MapForceServer

Unix (Linux、 Mac) 上での mapforceserver

 

* 小文字は (mapforceserver) 全てのプラットフォーム(Windows、Linux、 および Mac)で使用することができますが、大文字と小文字 (MapForceServer) は、 Windows および Mac のみでしか使用できません。

* Linux と Mac 上ではスラッシュを使用し、Windows 上では、バックスラッシュを使用してください。

 

 

Argument

Description

LanguageCode

Specifies the language of resource strings in the exported XML file.
Supported languages are: en, de, es, fr, ja

XMLOutputFile

Specifies the location and name of the exported XML file.

 

 

Option

Description

--h, --help

Displays information about the command

 

Options are listed in their short forms (if available) and long forms. You can use one or two dashes for both short and long forms. An option that takes a value is written like this: --option=value.

 

Note:On Windows systems: Avoid using the end backslash and closing quote on the command line \", for example, as in: "C:\My directory\". These two characters are interpreted by the command line parser as a literal double-quotation mark. Use the double backslash \\ if spaces occur in the command line and you need the quotes (for example: "C:\My Directory\\"). Alternatively, try to avoid using spaces and, therefore, quotes at all.

 

Examples

An example of the exportresourcestrings command:

 

mapforceserver exportresourcestrings de c:\Strings.xml

 

This command creates a file called Strings.xml at c:\ that contains all the resource strings of MapForce Server in German.

 

Creating localized versions of MapForce Server

You can create a localized version of MapForce Server for any language of your choice. Five localized versions (English, German, Spanish, French, and Japanese) are already available in the C:\Program Files (x86)\Altova\MapForceServer2019\bin folder, and therefore do not need to be created.

 

Create a localized version as follows:

 

1.Generate an XML file containing the resource strings by using the exportresourcestrings command (see command syntax above). The resource strings in this XML file will be one of the five supported languages: English (en), German (de), Spanish (es), French (fr), or Japanese (ja), according to the LanguageCode argument used with the command.
2.Translate the resource strings from one of the four supported languages into the target language. The resource strings are the contents of the <string> elements in the XML file. Do not translate variables in curly brackets, such as {option} or {product}.
3.Contact Altova Support to generate a localized MapForce Server DLL file from your translated XML file.
4.After you receive your localized DLL file from Altova Support, save the DLL in the C:\Program Files (x86)\Altova\<%APPFOLDER\bin folder. Your DLL file will have a name of the form MapForceServer2019_lc.dll. The _lc part of the name contains the language code. For example, in MapForceServer2019_de.dll, the de part is the language code for German (Deutsch).
5.Run the setdeflang command to set your localized DLL file as the MapForce Server application to use. For the argument of the setdeflang command, use the language code that is part of the DLL name.

 

Note:Altova MapForce Server is delivered with support for five languages: English, German, Spanish, French, and Japanese. So you do not need to create a localized version of these languages. To set any of these languages as the default language, use MapForce Server's setdeflang command.

 


(C) 2019 Altova GmbH