2019-06-02 12:41:46 +02:00
..
2019-02-07 16:24:23 +00:00
2018-04-26 07:59:12 +02:00
2018-04-26 07:59:12 +02:00
2018-04-26 07:59:12 +02:00
2018-04-26 07:59:12 +02:00
2018-04-26 07:59:12 +02:00
2019-06-02 12:41:46 +02:00
2018-12-02 07:17:17 +00:00

To use an existing locale:

  • Open inc/settings.php with a text editor
  • Find the lang option and set it to the locale you want to use. Example: $this->lang = 'es_ES.utf8';

To create a new locale:

  • Copy lang/en_US.utf8.php to a new file (e.g. lang/es_ES.utf8.php)
  • Edit the new file, change "class DefaultLang" to "class Lang" so it looks like this:
<?php
class Lang {
    public function __construct() {
       ...
    }
}
  • Translate all array assignments, e.g. $array["title.bans"] = 'Baneos';
  • Edit inc/settings.php, set this->lang to your locale. Example: $this->lang = 'es_ES.utf8';

All messages not translated by the main locale will be translated by the fallback locale (en_US.utf8). Thus, if new messages are added to en_US, those new messages will be in English until your locale is updated to include translations for the new messages.