MyBB Community Forums

Full Version: Admin cp translation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

When i click on Board settings => Changes the language stays english. are those variables stored in a language file or they are hardcoded somewhere else (if yes where?)? If they are hardcoded, are they going to be included in language files in future releases?

Thanks
You can read the English settings.lang.php file in a text editor: in the comments you can find information on how to translate the settings. You can also download the Dutch language pack and view that settings.lang.php file to get an idea of how it works in practice Smile
You mean this:

/**
 * Translation instructions for settings and setting groups:
 *
 * Groups:
 *          * Obtain the group name (not title) from the edit group page.
 *          * Add language variables in the following format:
 *                $l['setting_group_{name}'] = "Group Name Here";
 *                $l['setting_group_{name}_desc'] = "Group Description";
 *
 *            Ex:
 *                $l['setting_group_general'] = "General Settings";
 *                $l['setting_group_general_desc'] = "Description of general settings here";
 *
 * Settings:
 *          * Obtain the setting name from the edit seting page.
 *          * Add language variables in the following format:
 *                $l['setting_{name}'] = "Setting Name Here";
 *                $l['setting_{name}_desc'] = "Setting Description";
 *
 *            Ex:
 *                $l['setting_bbname'] = "Board Name";
 *                $l['setting_bbname_desc'] = "Description for board name here";
 *
 */

I don't really understand those instructions. But why aren't they stored in the language file?
Hi,

In which lang file can I find this part?

[Image: transl_www.kepfeltoltes.hu_.gif]

It's in the Board settings, Change, Posting
here is an example.. it helps...

$l['setting_group_cpprefs'] = "Control panel prefferaces (global)";
$l['setting_group_cpprefs_desc'] = "";

$l['setting_group_onlineoffline'] = "Board open / close";
$l['setting_group_onlineoffline_desc'] = "This setting allow something but this is an exam..";
Yes I know this, but I meant the part that I circled.
im not sure but i think it can be on settings.xml from install folder [BUT I AM NOT SURE]