Switching BotBanish to Your Language

Started by Randem, December 28, 2017, 12:44:05 PM

Previous topic - Next topic

Randem

In current versions the feature to change languages has been improved. From the SMF main menu, go to BotBanish->Settings->Select Language to change the language for BotBanish. The language change will be immediate for BotBanish only.

Randem

In the BotBanish 3.0 for SMF install this method is not used.
Use the settings in the miscellaneous section to change BotBanish Settings.


In the language section of the Settings_Client.php file you will find the code

//================================================================
// Language Section
//================================================================

$language_types = array('english', 'spanish_latin', 'spanish_latin-utf8');
define('BotBanish_Language_Select', 'english');

To add a new language file to the system you would need to change these two lines. Add your language to the end of the $language_types array, then change the BotBanish_Language_Select define from 'english' to the parameter that you added at the end of the $language_type array. Of course you will need to add your converted language files to the Language folder in the BotBanish folder on your system. That is all to it. If the language files are not found the system will default to English.

If your language is already present in the $language_types array, all you would need to do is to change the BotBanish_Language_Select parameter to match the language in the $language_type array that you want to use.

If you do a language conversion, please submit it so that we can include it in future releases of BotBanish. Below is the english file that can be converted.

Mahalo!