Previous Topic

Next Topic

Book Contents

Altering Locale

To alter a locale, follow these steps:

  1. Log in to the server, where a desired Plesk Expand is installed on, via SSH.
  2. Go to the directory where the locale that you need is stored by issuing the following command:

    /usr/local/expand/share/locale/xx_XX

    where xx is the abbreviation for the name of the language this locale is in, and

    XX is the abbreviation for the name of the country this locale is made for.

  3. Find the locale_addon.xml.sample addon file and copy it into locale_addon.xml :

    cp locale_addon.xml.sample locale_addon.xml

  4. Open the desired locale by issuing the following command:

    /usr/local/expand/share/locale/xx_XX/locale.xml

    find the message that you need to change and copy it in the buffer. Remember the section it belongs to.

  5. Open an addon file

    /usr/local/expand/share/locale/xx_XX/locale_addon.xml

  6. In the addon file, find the section the copied message belongs to, paste the message in it and change it as desired.

    For example, you would like to change the message of the 'action_adv_errors' key. First, you need to find the corresponding section in the addon file. In this case, this is the <name>messages_keys</name> section. Then you need to paste the copied message in the <phrase> </phrase> field, and change it as desired

    <entry>

    <keyword>action_adv_errors</keyword>

    <phrase>Some not useful key value.</phrase>

    <comment/>

    </entry>

    to

    <entry>

    <keyword>action_adv_errors</keyword>

    <phrase>My own very useful key value.</phrase>

    <comment>My comment for this key.</comment>

    </entry>

    After you modified the addon file, do the following:

    1. Install the addon file in the locale.
    2. Check how the addon file and the locale have merged together.
    3. Install the updated locale in Plesk Expand.

      If the addon file is already installed in the locale, you need to follow steps 2 and 3 only.

See Also

Modifying Language Pack

ELE Options

Installing Addon in Locale

Checking Locale and Addon Compatibility

Installing Updated Locale in Plesk Expand

Restoring Locale to Previous State

Deleting Addon from Locale