BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to Copy a Locale in cPanel?

Posted by Allura on 20 02 2018.

Overview
This interface allows the user to convert a standard locale into a non-standard locale. It is indeed a very useful interface. A standard locale is a language with data in Unicode Common Locale Data Repository (CLDR). A non standard locale is a language with no data in CLDR.

 
Copy a Locale into a Standard Locale
To copy a locale into a standard locale, the following steps need to be performed:

●        Select the original locale from the Duplicate Locale menu.

●        The Standard Locale is to be selected.

●        Click Duplicate. The system will redirect you to a new interface.

●        Click here to download to download the duplicate in XML format, or click upload it here to edit the copy’s XML.

 

The CPANEL Snowmen locale is not for general use. Theme customizers and third-party developers can use this locale to test CPANEL & WHM’s localization system against their customizations.

 
Copy a Locale into a non-standard Locale
To copy a locale into a non-standard locale the following steps need to be…

Overview

This interface allows the user to convert a standard locale into a non-standard locale. It is indeed a very useful interface. A standard locale is a language with data in Unicode Common Locale Data Repository (CLDR). A non standard locale is a language with no data in CLDR.

 

Copy a Locale into a Standard Locale

To copy a locale into a standard locale, the following steps need to be performed:

●        Select the original locale from the Duplicate Locale menu.

●        The Standard Locale is to be selected.

●        Click Duplicate. The system will redirect you to a new interface.

●        Click here to download to download the duplicate in XML format, or click upload it here to edit the copy’s XML.

 

The CPANEL Snowmen locale is not for general use. Theme customizers and third-party developers can use this locale to test CPANEL & WHM’s localization system against their customizations.

 

Copy a Locale into a non-standard Locale

To copy a locale into a non-standard locale the following steps need to be performed:

●        Select an original locale from the Duplicate Locale menu.

●        Select Non standard locale.

●        Enter a name for the copy, prefixed with the I_ tag, in the appropriate boxes.

 

An I_ tag is a standard way to create, identify, and work with a non-standard locale. It consists of a code prefixed with the letter I, followed by an underscore (_).

 

●        Select the options from the Fallback Locale, Number Formatting, and Character Orientation menus.

When an I_ tag’s lexicon does not have a phrase, the tag will reference the locale that is set to fallback find the phrase there.

●        Click Duplicate. The system will redirect you to a new interface.

●        Click here to download to download the duplicate in XML format, or click upload it here to edit the copy’s XML.

If a desired locale is not present, click rebuild the locale databases to update the list of locales.

 

Conclusion

The Locale can not only be copied but also it can be edited by using the bulk mode Locale Editor .  A theme can be chosen from the theme menu and then it can be edited. The copied locale can also be deleted when it is required to be deleted. It is indeed an essential component of CPANEL.