Appendix A. Using locale-maker Utility

The locale-maker utility is used to build Plesk Expand Language Packs. For instructions on how it can be installed, refer to the Compiling LP section.

Usage

/usr/local/expand-locale-maker/sbin/locale-maker --locale-path <source-files-directory> --locale-id <xx-XX> --title <locale-title> --expand-version <expand-version> [options]

Example

The following command builds the French LP:

# /usr/local/expand-locale-maker/sbin/locale-maker --locale-path ./fr-FR --locale-id fr-FR

--title French --expand-version 2.2.0

Options

Option

Description

--locale-path

Specifies the directory where the LP source files are located.

Required.

--locale-id

Specifies the locale code in the RFC 1766 standard.

Required.

--title

Specifies the locale title that will be shown to Plesk Expand users after installing the locale to the Plesk Expand.

Required.

--expand-version

Specifies the Plesk Expand version for which the locale is build.

Required.

--output-path

Specifies the directory where LP will be created.

The current directory is used by default.

Optional.

--native-title

The locale native title. If the native title is set, it will replace the locale title.

Optional.

The following options are used in Plesk Expand LP build process and they are set automatically. (All of them are optional.)

--locale-release

Specifies the locale release version.

The YYMMDD format , where YY - current year, MM - month, DD - day of month, is used by default.

--xmlchecker-path

Specifies the path to xmlchecker which validate locale.xml file.

The /usr/local/expand-locale-maker path is used by default.

--locale-engine-path

Specifies the path to locale_engine.

The /usr/local/expand-locale-maker/locale_engine path is used by default.

--spec-file

Specifies the location of the locale spec file which contains LP description.

The /usr/local/expand-locale-maker/share/spec/locale.spec location is used by default.

--make-file

Specifies the location of the locale Makefile file.

The /usr/local/expand-locale-maker/share/Makefile location is used by default.

--locale-arch

Specifies the architecture for which the locale is built.

The noarch is used by default.

--problem-report

Specifies the error log file.

The ./build_problems file is used by default.

--help

Displays help on the use of the locale-maker utility.