From 3e49b44839237693ce1a8151325942704917f6c6 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Wed, 4 Dec 2019 08:27:39 +0100 Subject: Update i18n cli tools (#2673) * Update i18n cli tools Few things were bugging me when using the cli tool for i18n. So I've modified the tools to be easier to use. First, the tool automatically adds missing keys to all languages. This way, we always have all keys in all languages. Second, the tool detects all untranslated keys and adds automatically the todo comment after the value. Third, when adding a new key, the key is pushed to all languages at once. There is no need to duplicate it manually. Thus making the duplication process obsolete. Fourth, translation and ignore keys are manipulated at the same time. Thus we don't have obsolete ignored strings anymore. * Add i18n rules I find that having the common rules in the Makefile is easier to use, as long as you know they are here. As it is self documented, people will see the new rules when using make. * Use long parameters in Makefile I find that using long parameters in scripts makes it easier to understand what's going on. So I've switched all short parameters to long one. * Format all i18n files I've used the updated version of the cli tools to have some output that can be consistently formated. This commit is a huge formating commit. Nothing was added but some comments were removed in the process. --- app/i18n/oc/feedback.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'app/i18n/oc/feedback.php') diff --git a/app/i18n/oc/feedback.php b/app/i18n/oc/feedback.php index a37ad2ae2..feb220a69 100644 --- a/app/i18n/oc/feedback.php +++ b/app/i18n/oc/feedback.php @@ -1,17 +1,17 @@ array( - 'optimization_complete' => 'Optimizacion acabada', - ), 'access' => array( 'denied' => 'Avètz pas l’autorizacion d’accedir a aquesta pagina', 'not_found' => 'La pagina que cercatz existís pas', ), + 'admin' => array( + 'optimization_complete' => 'Optimizacion acabada', + ), 'api' => array( 'password' => array( - 'failed' => 'Your password cannot be modified', // TODO - Translation - 'updated' => 'Your password has been modified', // TODO - Translation + 'failed' => 'Your password cannot be modified', // TODO - Translation + 'updated' => 'Your password has been modified', // TODO - Translation ), ), 'auth' => array( @@ -44,9 +44,9 @@ return array( 'ko' => '%s pòt pas èsser activada. Consultatz los jornals d’audit de FreshRSS logs per mai de detalhs.', 'ok' => '%s es ara activada', ), - 'no_access' => 'Avètz pas accès sus %s', 'not_enabled' => '%s es pas encara activada', 'not_found' => '%s existís pas', + 'no_access' => 'Avètz pas accès sus %s', ), 'import_export' => array( 'export_no_zip_extension' => 'L\'extension ZIP es pas presenta sul servidor. Volgatz ensajar d\'exportar los fichièrs un per un.', @@ -72,10 +72,10 @@ return array( 'emptied' => 'La categoria es estada voidada', 'error' => 'Actualizacion de la categoria impossibla', 'name_exists' => 'Una categoria se ditz ja atal.', - 'no_id' => 'Vos cal precisar l’id de la categoria.', - 'no_name' => 'Vos cal donar un nom a la categoria.', 'not_delete_default' => 'Podètz pas suprimir la categoria per defaut !', 'not_exist' => 'Aquesta categoria existís pas !', + 'no_id' => 'Vos cal precisar l’id de la categoria.', + 'no_name' => 'Vos cal donar un nom a la categoria.', 'over_max' => 'Avètz atengut la limita de categoria (%d)', 'updated' => 'La categoria es estada actualizada.', ), @@ -86,12 +86,12 @@ return array( 'already_subscribed' => 'Seguissètz ja %s', 'deleted' => 'Lo flux es suprimit', 'error' => 'Error en actualizar', - 'internal_problem' => 'Lo flux pòt pas èsser ajustat. Consultatz los jornals d’audit de FreshRSS per ne saber mai. Podètz forçar l’apondon en ajustant #force_feed a l’URL.', + 'internal_problem' => 'Lo flux pòt pas èsser ajustat. Consultatz los jornals d’audit de FreshRSS per ne saber mai. Podètz forçar l’apondon en ajustant #force_feed a l’URL.', 'invalid_url' => 'L\'URL %s es invalida', + 'not_added' => '%s a pas pogut èsser ajustat', + 'no_refresh' => 'I a pas cap de flux d’actualizar…', 'n_actualized' => '%s fluxes son estats actualizats', 'n_entries_deleted' => '%d articles son estats suprimits', - 'no_refresh' => 'I a pas cap de flux d’actualizar…', - 'not_added' => '%s a pas pogut èsser ajustat', 'over_max' => 'Avètz atengut vòstra limita de fluxes (%d)', 'updated' => 'Lo flux es actualizat', ), @@ -107,16 +107,16 @@ return array( ), 'user' => array( 'created' => array( - '_' => 'L’utilizaire %s es estat creat', 'error' => 'L’utilizaire %s pòt pas èsser creat', + '_' => 'L’utilizaire %s es estat creat', ), 'deleted' => array( - '_' => 'L’utilizaire %s es estat suprimit', 'error' => 'L’utilizaire %s pòt pas èsser suprimit', + '_' => 'L’utilizaire %s es estat suprimit', ), 'updated' => array( - '_' => 'L’utilizaire %s es estat actualizat', 'error' => 'L’utilizaire %s es pas estat actualizat', + '_' => 'L’utilizaire %s es estat actualizat', ), ), ); -- cgit v1.2.3