diff --git a/README.markdown b/README.markdown index 8f5429a..498f2da 100644 --- a/README.markdown +++ b/README.markdown @@ -19,7 +19,7 @@ Features - Mobile CSS (responsive design) - Keyboard shortcuts (pressing '?' displays a pop-up listing the shortcuts; pressing 'q' closes it) - Basic bookmarks -- Translated in English, French, German, Italian, Czech, Spanish and Simplified Chinese +- Translated in English, French, German, Italian, Czech, Spanish, Portuguese and Simplified Chinese - Themes support - Alternative login with a Google Account or Mozilla Persona - **Full article download for feeds that display only a summary** (website scraper based on Xpath rules) @@ -52,6 +52,7 @@ People who sent a pull-request, report a bug, make a new theme or share a super - Derjus: https://github.com/derjus - Eauland: https://github.com/eauland - Félix: https://github.com/dysosmus +- Geriel Castro: https://github.com/GerielCastro - Horsely: https://github.com/horsley - Ing. Jan Kaláb: https://github.com/Pitel - Itoine: https://github.com/itoine @@ -286,6 +287,24 @@ It would be awesome for everybody :) - Bootstrap 3 (Light) By Silvus - Bootswatch Cyborg By Silvus +### 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 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 + +French translations are always the most recent (because I am french). + +Create a new translation: + +1. Make a new directory: `locales/xx_XX` by example `locales/fr_CA` for French Canadian +2. Create a new file for the translation: `locales/xx_XX/translations.php` +3. Use the content of the french locales to have the most recent keys and replace the values +4. Inside the file `model.php`, add a new entry for your translation in the function `get_languages()` +5. Check with your local installation of Miniflux if everything is ok +6. Send a pull-request with Github + ### Coding standards for contributors - Line indentation: 4 spaces diff --git a/locales/es_ES/translations.php b/locales/es_ES/translations.php index 2544651..943a76e 100644 --- a/locales/es_ES/translations.php +++ b/locales/es_ES/translations.php @@ -79,6 +79,7 @@ return array( 'Simplified Chinese' => 'Chino simplificado', 'Czech' => 'Checo', 'Spanish' => 'Español', + 'Portuguese' => 'Portugués', 'unread' => 'no leídos', 'bookmark' => 'añadir a marcadores', 'remove bookmark' => 'borrar marcador', diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php index 5ed7d58..432d2eb 100644 --- a/locales/fr_FR/translations.php +++ b/locales/fr_FR/translations.php @@ -79,6 +79,7 @@ return array( 'Spanish' => 'Espagnol', 'Simplified Chinese' => 'Chinois simplifié', 'Czech' => 'Tchèque', + 'Portuguese' => 'Portuguais', 'unread' => 'non lus', 'bookmark' => 'ajouter aux favoris', 'remove bookmark' => 'supprimer des favoris', diff --git a/locales/pt_BR/translations.php b/locales/pt_BR/translations.php index b2b8791..ebad374 100644 --- a/locales/pt_BR/translations.php +++ b/locales/pt_BR/translations.php @@ -15,6 +15,7 @@ return array( 'German' => 'Alemão', 'Italian' => 'Italiano', 'Simplified Chinese' => 'Chinês Simplificado', + 'Portuguese' => 'Português', 'unread' => 'não lido', 'bookmarks' => 'lesezeichen', 'bookmark' => 'lesezeichen', diff --git a/model.php b/model.php index ec311eb..a20f65e 100644 --- a/model.php +++ b/model.php @@ -47,7 +47,7 @@ function get_languages() 'es_ES' => t('Spanish'), 'fr_FR' => t('French'), 'it_IT' => t('Italian'), - 'pt_BR' => t('Português'), + 'pt_BR' => t('Portuguese'), 'zh_CN' => t('Simplified Chinese'), );