Language bundles - default, custom, and those installed with Parallels H-Sphere packages - are compiled and merged into the resulting internal bundles located in the internal bundle directory, ~cpanel/shiva/languages by default. Instead of parsing default and custom bundles, Parallels H-Sphere takes interface texts directly from this directory.
Merging language bundles is performed by a Java tool called language bundle compiler:
java psoft.hsphere.LangBundlesCompiler
Language bundle compiler works in the following way:
LANG_LIST parameters set in:~cpanel/shiva/packages/PackageName/default.properties, where PackageName is the name of the package without its version and build number;~cpanel/shiva/psoft_config/hsphere.properties file;LANG_LIST contains definitions for the languages, delimited with whitespace, each including the following components:<language>_<COUNTRY>_<ENCODING>|<HTML_ENCODING>:misc.langs.<LABEL>lang
Here:
LANG_LIST parameters, bundle compiler looks for the bundles:hsphere_lang.propertieshsphere_lang_<language>.propertieshsphere_lang_<language>_<COUNTRY>.propertieshsphere_lang_<language>_<COUNTRY>_<ENCODING>.propertiesin the following directories, in order of priority:
~cpanel/shiva/packages/PackageName/Package bundle location is set in the package properties file ~cpanel/shiva/packages/PackageName/default.properties:
TEMPLATE_BUNDLE=packages.PackageName.hsphere_lang
~cpanel/shiva/custom/bundles/Custom bundle location is set in ~cpanel/shiva/psoft_config/hsphere.properties:
CUSTOM_TEMPLATE_BUNDLE=custom.bundles.hsphere_lang
~cpanel/shiva/psoft/hsphere/lang/Default bundle location is set in hsphere.properties:
TEMPLATE_BUNDLE=psoft.hsphere.lang.hsphere_lang
See Introduction To Bundles for details.
~cpanel/shiva/languages/.
Notes:
~cpanel/shiva/languages directory is not found, language bundle compiler will be launched automatically and will create this directory with the resulting bundles.INT_LANGBUNDLE_DIRECTORY parameter in hsphere.properties. Or, set INT_TEMPLATE_BUNDLE to override the location of the respective internal bundles.LANG_LIST parameters, bundle compiler converts all regional language bundles into UTF-8. This is done due to the Java restrictions in relation to regional encodings: Java can work only with ISO-8859-1 and Unicode symbols.Encoding conversion hints:
~cpanel/shiva/psoft/hsphere/lang directory.