Update lang/README.md

This commit is contained in:
ruan 2020-08-06 16:24:38 +02:00
parent dd5aa8e4c6
commit b2c00c66c3

View File

@ -5,13 +5,13 @@ Example: `$this->lang = 'es_ES.utf8';`
----- -----
To create a new locale: To create a new locale (example being "es_ES"):
- Copy lang/en_US.utf8.php to a new file (e.g. `lang/es_ES.utf8.php`) - 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: - Edit the new file, change "class en_US" to "class es_ES" so it looks like this:
``` ```
<?php <?php
class Lang { class es_ES {
public function __construct() { public function __construct() {
... ...
} }