diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-24 22:51:30 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-24 22:51:30 -0400 |
commit | 90e06162999c8ec7fa9bcfa391800f7907419d9b (patch) | |
tree | f0f8d4a760f25c4f7773e0a1851031db6b08b9f2 /docs/translations.markdown | |
parent | 180efb962c6fc4da47ed39e60db137d63ffaad5b (diff) |
Rename Locales and Templates folders to be more consistent
Diffstat (limited to 'docs/translations.markdown')
-rw-r--r-- | docs/translations.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/translations.markdown b/docs/translations.markdown index ec7162be..8a9dca6a 100644 --- a/docs/translations.markdown +++ b/docs/translations.markdown @@ -4,7 +4,7 @@ Translations How to translate Kanboard to a new language? -------------------------------------------- -- Translations are stored inside the directory `app/Locales` +- Translations are stored inside the directory `app/Locale` - There is sub-directory for each language, by example for the French we have `fr_FR`, Italian `it_IT` etc... - A translation is a PHP file that return an Array with a key-value pairs - The key is the original text in english and the value is the translation for the corresponding language @@ -13,8 +13,8 @@ How to translate Kanboard to a new language? ### Create a new translation: -1. Make a new directory: `app/Locales/xx_XX` by example `app/Locales/fr_CA` for French Canadian -2. Create a new file for the translation: `app/Locales/xx_XX/translations.php` +1. Make a new directory: `app/Locale/xx_XX` by example `app/Locale/fr_CA` for French Canadian +2. Create a new file for the translation: `app/Locale/xx_XX/translations.php` 3. Use the content of the French locales and replace the values 4. Inside the file `app/Model/Config.php`, add a new entry for your translation inside the function `getLanguages()` 5. Check with your local installation of Kanboard if everything is ok @@ -23,6 +23,6 @@ How to translate Kanboard to a new language? How to update an existing translation? -------------------------------------- -1. Open the translation file `app/Locales/xx_XX/translations.php` +1. Open the translation file `app/Locale/xx_XX/translations.php` 2. Missing translations are commented with `//` and the values are empty, just fill blank and remove comments 3. Check with your local installation of Kanboard and send a pull-request |