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/es/feedback.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'app/i18n/es/feedback.php') diff --git a/app/i18n/es/feedback.php b/app/i18n/es/feedback.php index 5a7358b0d..3db76ea27 100755 --- a/app/i18n/es/feedback.php +++ b/app/i18n/es/feedback.php @@ -1,17 +1,17 @@ array( - 'optimization_complete' => 'Optimimización completada', - ), 'access' => array( 'denied' => 'No dispones de permiso para acceder a esta página', 'not_found' => 'La página que buscas no existe', ), + 'admin' => array( + 'optimization_complete' => 'Optimimización completada', + ), '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 no se puede activar. Revisa el registro de FreshRSS para más información.', 'ok' => '%s ha quedado activado', ), - 'no_access' => 'No tienes acceso a %s', 'not_enabled' => '%s no está activado', 'not_found' => '%s no existe', + 'no_access' => 'No tienes acceso a %s', ), 'import_export' => array( 'export_no_zip_extension' => 'La extensión ZIP no está disponible en tu servidor. Por favor, exporta estos archivos uno a uno.', @@ -63,8 +63,8 @@ return array( 'sub' => array( 'actualize' => 'Actualización', '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' => 'Se ha creado la categoría %s.', @@ -72,10 +72,10 @@ return array( 'emptied' => 'Se ha vaciado la categoría', 'error' => 'No es posible actualizar la categoría', 'name_exists' => 'Ya existe una categoría con ese nombre.', - 'no_id' => 'Debes especificar la id de la categoría.', - 'no_name' => '¡El nombre de la categoría no puede dejarse en blanco!.', 'not_delete_default' => '¡No puedes borrar la categoría por defecto!', 'not_exist' => 'La categoría no existe', + 'no_id' => 'Debes especificar la id de la categoría.', + 'no_name' => '¡El nombre de la categoría no puede dejarse en blanco!.', 'over_max' => 'Has alcanzado el límite de categorías (%d)', 'updated' => 'La categoría se ha actualizado.', ), @@ -86,12 +86,12 @@ return array( 'already_subscribed' => 'Ya estás suscrito a %s', 'deleted' => 'Fuente eliminada', 'error' => 'No es posible actualizar la fuente', - 'internal_problem' => 'No ha sido posible agregar la fuente RSS. Revisa el registro de FreshRSS para más información.', //TODO - Translation + 'internal_problem' => 'No ha sido posible agregar la fuente RSS. Revisa el registro de FreshRSS para más información.', 'invalid_url' => 'La URL %s es inválida', + 'not_added' => '%s no ha podido se añadida', + 'no_refresh' => 'No hay fuente a actualizar…', 'n_actualized' => 'Se han actualiado %d fuentes', 'n_entries_deleted' => 'Se han eliminado %d artículos', - 'no_refresh' => 'No hay fuente a actualizar…', - 'not_added' => '%s no ha podido se añadida', 'over_max' => 'Has alcanzado tu límite de fuentes (%d)', 'updated' => 'Fuente actualizada', ), @@ -107,16 +107,16 @@ return array( ), 'user' => array( 'created' => array( - '_' => 'Se ha creado el usuario %s', 'error' => 'No se ha podido crear al usuario %s', + '_' => 'Se ha creado el usuario %s', ), 'deleted' => array( - '_' => 'El usuario %s ha sido eliminado', 'error' => 'El usuario %s no ha podido ser eliminado', + '_' => 'El usuario %s ha sido eliminado', ), '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