Introduction
Use the /scripts/locale_export
script to distribute your custom locales.
Notes:
- In the following examples, Swiss High German (
de_ch
) is the customized locale to distribute. - To distribute a custom locale to multiple target servers, you must repeat steps 3 through 5 on each target server.
Distribute a custom locale
Log in to the source server.
Use SSH to log in to the source server as the root
user.
Run the /scripts/locale_export
script.
Run the following command, where de_ch
represents the locale that you wish to export:
/scripts/locale_export --locale=de_ch |
This command creates the /var/cpanel/locale/export/de_ch.xlf
file.
Note:
To view additional options for this script, run the/scripts/locale_export --help
command.
Use the scp
command to copy the file to the target server.
For example, use the following command to distribute the de_ch.xlf
file to the server.example.com
server:
scp /var/cpanel/locale/export/de_ch .xlf root@server.example.com: /var/cpanel/locale/export/de_ch .xlf |
This command copies the locale file to the /var/cpanel/locale/export/de_ch.xlf
location on the server.example.com
server.
Log in to the target server.
Use SSH to log in to the target server as the root
user.
Run the /scripts/locale_import
script to import the locale.
Run the following command, where de_ch
represents the locale that you wish to import:
/scripts/locale_import --locale=de_ch |
Note:
To view additional options for this script, run the/scripts/locale_import --help
command.