mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Update lang/README.md
This commit is contained in:
parent
dd5aa8e4c6
commit
b2c00c66c3
@ -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`)
|
||||
- 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
|
||||
class Lang {
|
||||
class es_ES {
|
||||
public function __construct() {
|
||||
...
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user