From a2eea842cb5cd3a078fef4cbf6b19ce06c184e35 Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 13 Mar 2019 15:34:50 +0100 Subject: [PATCH] Improve i18n on admin --- app/views/admin/geozones/_form.html.erb | 40 ++++++++++++++---------- app/views/admin/officials/index.html.erb | 1 + config/locales/en/activerecord.yml | 5 +++ config/locales/en/admin.yml | 3 ++ config/locales/en/settings.yml | 2 +- config/locales/es/activerecord.yml | 5 +++ config/locales/es/admin.yml | 21 +++++++------ config/locales/es/settings.yml | 2 +- 8 files changed, 52 insertions(+), 27 deletions(-) diff --git a/app/views/admin/geozones/_form.html.erb b/app/views/admin/geozones/_form.html.erb index 0d1dea166..0a1bde3d9 100644 --- a/app/views/admin/geozones/_form.html.erb +++ b/app/views/admin/geozones/_form.html.erb @@ -1,25 +1,33 @@ <%= form_for [:admin, @geozone] do |f| %> - <%= render 'errors' %> + <%= render "errors" %> -
- <%= f.label :name, t("admin.geozones.geozone.name") %> - <%= f.text_field :name, label: false %> +
+ <%= f.text_field :name %>
-
- <%= f.label :html_map_coordinates, t("admin.geozones.geozone.coordinates") %> + +
+
+ <%= f.label :census_code %> +

<%= t("admin.geozones.geozone.code_help") %>

+ <%= f.text_field :census_code, label: false %> +
+ +
+ <%= f.label :external_code %> +

<%= t("admin.geozones.geozone.code_help") %>

+ <%= f.text_field :external_code, label: false %> +
+
+ +
+ <%= f.label :html_map_coordinates %> +

<%= t("admin.geozones.geozone.coordinates_help") %>

<%= f.text_field :html_map_coordinates, label: false %>
-
- <%= f.label :external_code, t("admin.geozones.geozone.external_code") %> - <%= f.text_field :external_code, label: false %> -
-
- <%= f.label :census_code, t("admin.geozones.geozone.census_code") %> - <%= f.text_field :census_code, label: false %> -
-
- <%= f.submit(class: "button success expanded", value: t("admin.geozones.edit.form.submit_button")) %> +
+ <%= f.submit(value: t("admin.geozones.edit.form.submit_button"), + class: "button success") %>
<% end %> diff --git a/app/views/admin/officials/index.html.erb b/app/views/admin/officials/index.html.erb index a05ebfecc..b9ff920c3 100644 --- a/app/views/admin/officials/index.html.erb +++ b/app/views/admin/officials/index.html.erb @@ -1,4 +1,5 @@

<%= t("admin.officials.index.title") %>

+

<%= t("admin.officials.index.help") %>

<%= render 'admin/shared/user_search', url: search_admin_officials_path %> diff --git a/config/locales/en/activerecord.yml b/config/locales/en/activerecord.yml index 769737b52..6b9467867 100644 --- a/config/locales/en/activerecord.yml +++ b/config/locales/en/activerecord.yml @@ -131,6 +131,11 @@ en: organization_name: "If you are proposing in the name of a collective/organization, or on behalf of more people, write its name" image: "Proposal descriptive image" image_title: "Image title" + geozone: + name: Name + external_code: "External code (optional)" + census_code: "Census code (optional)" + html_map_coordinates: "HTML Coordinates (optional)" milestone: status_id: "Current status (optional)" title: "Title" diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 7142f403f..cbb25e08c 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -1094,6 +1094,7 @@ en: official_updated: Details of official saved index: title: Officials + help: User accounts marked as officials will have their interventions on the platform highlighted. You can define the label that appears next to the user names of these accounts from most important (level 1) to least (level 5). no_officials: There are no officials. name: Name official_position: Official position @@ -1291,7 +1292,9 @@ en: name: Name external_code: External code census_code: Census code + code_help: Response code for this geozone on the census API coordinates: Coordinates + coordinates_help: Coordinates that will generate a clickable area on an HTML image map errors: form: error: diff --git a/config/locales/en/settings.yml b/config/locales/en/settings.yml index f57b01533..363c3b875 100644 --- a/config/locales/en/settings.yml +++ b/config/locales/en/settings.yml @@ -94,7 +94,7 @@ en: polls_description: "Citizens' polls are a participatory mechanism by which citizens with voting rights can make direct decisions" signature_sheets: "Signature sheets" signature_sheets_description: "It allows adding from the Administration panel signatures collected on-site to Proposals and investment projects of the Participative Budgets" - legislation: "Legislation" + legislation: "Collaborative Legislation" legislation_description: "In participatory processes, citizens are offered the opportunity to participate in the drafting and modification of regulations and to give their opinion on certain actions that are planned to be carried out" spending_proposals: "Spending proposals" spending_proposals_description: "⚠️ NOTE: This functionality has been replaced by Participatory Budgeting and will disappear in new versions" diff --git a/config/locales/es/activerecord.yml b/config/locales/es/activerecord.yml index cd66d8acd..59341c3a8 100644 --- a/config/locales/es/activerecord.yml +++ b/config/locales/es/activerecord.yml @@ -131,6 +131,11 @@ es: organization_name: "Si estás proponiendo en nombre de una organización o colectivo, o en nombre de más gente, escribe su nombre" image: "Imagen descriptiva del proyecto de gasto" image_title: "Título de la imagen" + geozone: + name: Nombre + external_code: "Código externo (opcional)" + census_code: "Código del censo (opcional)" + html_map_coordinates: "Coordenadas HTML (opcional)" milestone: status_id: "Estado actual (opcional)" title: "Título" diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 0b91ed8c6..7bbfbbc41 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -584,7 +584,7 @@ es: proposals: Propuestas proposals_topics: Temas de propuestas budgets: Presupuestos participativos - geozones: Gestionar distritos + geozones: Gestionar zonas hidden_comments: Comentarios ocultos hidden_debates: Debates ocultos hidden_proposals: Propuestas ocultas @@ -1093,6 +1093,7 @@ es: official_updated: Datos del cargo público guardados index: title: Cargos Públicos + help: Las cuentas de usuario marcadas como cargos públicos tendrán resaltadas sus intervenciones en la plataforma. Puedes definir la etiqueta que aparece al lado de los nombres de usuario de estas cuentas de mayor importancia (nivel 1) a menor (nivel 5). no_officials: No hay cargos públicos. name: Nombre official_position: Cargo público @@ -1282,31 +1283,33 @@ es: cost_for_geozone: Coste total geozones: index: - title: Distritos - create: Crear un distrito + title: Zonas + create: Crear una zona edit: Editar delete: Borrar geozone: name: Nombre external_code: Código externo census_code: Código del censo + code_help: Código de respuesta para esta zona en la API del censo coordinates: Coordenadas + coordinates_help: Coordenadas que generarán una zona clicable en un mapa de imagen HTML errors: form: error: - one: "error impidió guardar el distrito" - other: 'errores impidieron guardar el distrito.' + one: "error impidió guardar la zona." + other: 'errores impidieron guardar la zona.' edit: form: submit_button: Guardar cambios - editing: Editando distrito + editing: Editando zona back: Volver new: back: Volver - creating: Crear distrito + creating: Crear zona delete: - success: Distrito borrado correctamente - error: No se puede borrar el distrito porque ya tiene elementos asociados + success: Zona borrada correctamente + error: No se puede borrar la zona porque ya tiene elementos asociados signature_sheets: author: Autor created_at: Fecha de creación diff --git a/config/locales/es/settings.yml b/config/locales/es/settings.yml index 877fcda1f..33f1c9d80 100644 --- a/config/locales/es/settings.yml +++ b/config/locales/es/settings.yml @@ -94,7 +94,7 @@ es: polls_description: "Las votaciones ciudadanas son un mecanismo de participación por el que la ciudadanía con derecho a voto puede tomar decisiones de forma directa" signature_sheets: "Hojas de firmas" signature_sheets_description: "Permite añadir desde el panel de Administración firmas recogidas de forma presencial a Propuestas y proyectos de gasto de los Presupuestos participativos" - legislation: "Legislación" + legislation: "Legislación colaborativa" legislation_description: "En los procesos participativos se ofrece a la ciudadanía la oportunidad de participar en la elaboración y modificación de normativa y de dar su opinión sobre ciertas actuaciones que se tiene previsto llevar a cabo" spending_proposals: "Propuestas de inversión" spending_proposals_description: "⚠️ NOTA: Esta funcionalidad ha sido sustituida por Pesupuestos Participativos y desaparecerá en nuevas versiones"