1.3 KiB
1.3 KiB
Translations
How to translate Miniflux to a new language?
- 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 up to date (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 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
How to update an existing translation?
- Open the translation file
locales/xx_XX/translations.php
- Missing translations are commented and the values are empty, just fill blank and remove comments
- Check with your local installation of Miniflux and send a pull-request