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/it/feedback.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'app/i18n/it/feedback.php') diff --git a/app/i18n/it/feedback.php b/app/i18n/it/feedback.php index f137de9e8..26cd9bf6a 100644 --- a/app/i18n/it/feedback.php +++ b/app/i18n/it/feedback.php @@ -1,17 +1,17 @@ array( - 'optimization_complete' => 'Ottimizzazione completata', - ), 'access' => array( 'denied' => 'Non hai i permessi per accedere a questa pagina', 'not_found' => 'Pagina non disponibile', ), + 'admin' => array( + 'optimization_complete' => 'Ottimizzazione completata', + ), '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 non può essere abilitata. Verifica i logs per dettagli.', 'ok' => '%s è ora abilitata', ), - 'no_access' => 'Accesso negato a %s', 'not_enabled' => '%s non abilitato', 'not_found' => '%s non disponibile', + 'no_access' => 'Accesso negato a %s', ), 'import_export' => array( 'export_no_zip_extension' => 'Estensione ZIP non presente sul server. Per favore esporta i files singolarmente.', @@ -63,8 +63,8 @@ return array( 'sub' => array( 'actualize' => 'Aggiorna', 'articles' => array( - 'marked_read' => 'The selected articles have been marked as read.', //TODO - Translation - 'marked_unread' => 'The articles have been marked as unread.', //TODO - Translation + 'marked_read' => 'The selected articles have been marked as read.', // TODO - Translation + 'marked_unread' => 'The articles have been marked as unread.', // TODO - Translation ), 'category' => array( 'created' => 'Categoria %s creata.', @@ -72,10 +72,10 @@ return array( 'emptied' => 'Categoria svuotata', 'error' => 'Categoria non aggiornata', 'name_exists' => 'Categoria già esistente.', - 'no_id' => 'Categoria senza ID.', - 'no_name' => 'Il nome della categoria non può essere lasciato vuoto.', 'not_delete_default' => 'Non puoi cancellare la categoria predefinita!', 'not_exist' => 'La categoria non esite!', + 'no_id' => 'Categoria senza ID.', + 'no_name' => 'Il nome della categoria non può essere lasciato vuoto.', 'over_max' => 'Hai raggiunto il numero limite di categorie (%d)', 'updated' => 'Categoria aggiornata.', ), @@ -86,12 +86,12 @@ return array( 'already_subscribed' => 'Hai già sottoscritto %s', 'deleted' => 'Feed cancellato', 'error' => 'Feed non aggiornato', - 'internal_problem' => 'RSS feed non aggiunto. Verifica i logs per dettagli.', //TODO - Translation + 'internal_problem' => 'RSS feed non aggiunto. Verifica i logs per dettagli.', 'invalid_url' => 'URL %s non valido', + 'not_added' => '%s non può essere aggiunto', + 'no_refresh' => 'Nessun aggiornamento disponibile…', 'n_actualized' => '%d feeds aggiornati', 'n_entries_deleted' => '%d articoli cancellati', - 'no_refresh' => 'Nessun aggiornamento disponibile…', - 'not_added' => '%s non può essere aggiunto', 'over_max' => 'Hai raggiunto il numero limite di feed (%d)', 'updated' => 'Feed aggiornato', ), @@ -107,16 +107,16 @@ return array( ), 'user' => array( 'created' => array( - '_' => 'Utente %s creato', 'error' => 'Errore nella creazione utente %s ', + '_' => 'Utente %s creato', ), 'deleted' => array( - '_' => 'Utente %s cancellato', 'error' => 'Utente %s non cancellato', + '_' => 'Utente %s cancellato', ), 'updated' => array( - '_' => 'User %s has been updated', //TODO - Translation - 'error' => 'User %s has not been updated', //TODO - Translation + 'error' => 'User %s has not been updated', // TODO - Translation + '_' => 'User %s has been updated', // TODO - Translation ), ), ); -- cgit v1.2.3