From 57cb8c54e8edadb432cb92b46bcccd8246d16e52 Mon Sep 17 00:00:00 2001 From: ruan Date: Sat, 10 Mar 2018 10:06:42 +0200 Subject: [PATCH] Added lang/README.md --- lang/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lang/README.md diff --git a/lang/README.md b/lang/README.md new file mode 100644 index 0000000..d5387c8 --- /dev/null +++ b/lang/README.md @@ -0,0 +1,18 @@ +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: +``` + +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 your locale is outdated (if new messages are added to en_US), those new messages will be in English.