Copying a locale in cPanel allows you to duplicate language settings into either a standard or non-standard locale. This is useful when creating custom language variations or testing localization changes. You can copy any existing locale to a new standard locale (one supported by Unicode CLDR) or create a custom non-standard locale for specialized needs.
Understanding Locale Types
Before copying a locale, it's important to understand the two types available:
- Standard locale: A language with data in the Unicode Common Locale Data Repository (CLDR). These are officially recognized languages with complete Unicode support.
- Non-standard locale: A custom language or variant with no data in the CLDR. These are typically used for testing, specialized deployments, or languages not yet supported by Unicode.
How to Copy a Locale to a Standard Locale
Follow these steps to duplicate a locale into a standard locale:
- Select the original locale from the Duplicate Locale menu.
- Choose the Standard locale option.
- Select your target locale from the Standard locale menu.
- Click Duplicate. The system will redirect you to a new interface.
- Click Click here to download to save the duplicate in XML format, or click upload it here to edit the copy's XML file directly.
How to Copy a Locale to a Non-Standard Locale
To create a custom locale copy, follow these steps:
- Select your original locale from the Duplicate Locale menu.
- Choose the Non standard locale option.
- Enter a name for your new locale, prefixed with the i_ tag (for example, i_custom_locale).
- Click Duplicate to create the copy.
- Download the XML file or edit it directly through the interface.
Important: The i_ prefix is required for all non-standard locales. This standard naming convention helps the system identify and manage custom locales separately from official language files.
Special Notes About Locale Copying
When working with locale duplication in your control panel, keep these points in mind:
- The cPanel Snowmen locale (i_cpanel_snowmen) is a testing locale only. It's designed for theme developers and should not be used for production sites.
- Copied locales are stored in XML format, which you can download and edit in any text editor.
- Changes to locale files require proper XML syntax to function correctly.
- Custom locales created with the i_ prefix will appear alongside standard locales in your language selection menu.
Frequently Asked Questions
What is a locale in cPanel?
A locale is a set of language and regional formatting settings that control how text, dates, times, and numbers appear in your control panel. Each locale corresponds to a specific language or regional variant.
Why would I need to copy a locale?
You might copy a locale to create a customized language variant, test translations, or modify specific text strings without affecting the original locale. This is especially useful for agencies managing multiple client sites with slightly different terminology needs.
Can I edit a locale after copying it?
Yes, after copying a locale, you can download the XML file and edit it with any text editor. You can then upload the modified version back to your control panel. Just make sure to maintain proper XML formatting to avoid errors.
What happens if I accidentally select the Snowmen locale?
The Snowmen locale replaces interface text with snowman symbols and is meant only for testing. If you accidentally enabled it, simply return to your locale settings and select a different language to restore normal functionality.
If you need assistance with locale management or encounter any issues while copying locales, our support team is available 24/7 to help. Visit https://www.obhost.net/contact or email support@obhost.org for expert guidance.