1.0 KiB
1.0 KiB
Translations
How to create or update a translation?
- Translations are stored inside the directory
locales
- There is sub-directory for each language, by example for french we have
fr_FR
, for italianit_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
French translations are always the most recent (because I am french).
Create a new translation:
- Make a new directory:
locales/xx_XX
by examplelocales/fr_CA
for French Canadian - Create a new file for the translation:
locales/xx_XX/translations.php
- Use the content of the french locales to have the most recent keys and replace the values
- Inside the file
models/config.php
, add a new entry for your translation inside the functionget_languages()
- Check with your local installation of Miniflux if everything is ok
- Send a pull-request with Github