Browser-based Language

by Destroy666 0 Stars 94 Downloads

Sets forum language based on the HTTP_ACCEPT_LANGUAGE header sent by the browser if no language is chosen by the user.

Project Details

https://github.com/Destroy666x/MyBB-Brow...d_Language

Installation:

  1. Upload everything from upload folder to your forum root (where index.php, forumdisplay.php etc. are located).
  2. Activate plugin in ACP -> Configuration -> Plugins.

Troubleshooting:
  • Some stuff (login, 2FA, etc.) in ACP is not translated due to MyBB hook inaccessibility.
  • You need to install any translations you want to provide to users automatically. If a browser is set to French only and there's no French translation, MyBB will load the default forum language for the browser user.
  • As mentioned earlier, the browser needs to send a proper HTTP_ACCEPT_LANGUAGE header.
  • Language codenames in inc/language/[language_name].php's $langinfo['htmllang'] variable have to be compatible with http://www.metamodpro.com/browser-language-codes

Translations:

Feel free to submit translation to github in Pull Requests. Also, if you want them to be included on the MyBB mods site, ask me to provide you the contributor status for my project.

Donations:

Donations will motivate me to work on further MyBB plugins. Feel free to use the button in the ACP Plugins section anytime.
Thanks in advance for any input.
Author
Destroy666
Collaborators
None
Version
1.1
Submitted
12-26-2015, 12:07 AM
Last Updated
12-26-2015, 08:17 PM
Bug Tracking
Disabled
MyBB Versions
1.8.x