Contents |
A default Hotaru installation has two language files:
/content/admin_language.php /content/main_language.php
Plugin language files can be found at:
/content/plugins/PLUGIN_NAME/languages/PLUGIN_NAME_language.php
A language pack consists of all of the above and each file goes in the user's theme languages folder, i.e.:
Language files in the theme's languages folder override the originals.
An example language pack for Hotaru CMS with the Social Bookmarking Plugin Pack (in alphabetical order):
At the top of a theme's index.php file, after the comment block, the user will need this:
$h->includeThemeLanguage();
In the case of plugin language files, each file overrides the original. However, in language items in admin_language.php and main_language.php are merged together instead. This allows theme designers to alter just a few language items without needing to duplicate the whole main_language.php file.
Note: admin_language.php in a theme folder takes precedence over admin_language.php in an admin theme. That means you can edit admin language from your theme without having to edit anything in the admin theme itself.