mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Fix lang/README.md formatting for GitLab renderer
This commit is contained in:
parent
ae8f2c574f
commit
0845c19f1c
@ -1,15 +1,14 @@
|
|||||||
To create a new locale:
|
To create a new locale:
|
||||||
- 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 DefaultLang" to "class Lang" so it looks like this:
|
||||||
```
|
|
||||||
|
|
||||||
|
```
|
||||||
<?php
|
<?php
|
||||||
class Lang {
|
class Lang {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
- Translate all array assignments, e.g. `$array["title.bans"] = 'Baneos';`
|
- 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';`
|
- Edit inc/settings.php, set `this->lang` to your locale. Example: `$this->lang = 'es_ES.utf8';`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user