From 653d36c9e6823370f3f1128aa2968313782cb155 Mon Sep 17 00:00:00 2001 From: Juan Fernandez Date: Fri, 3 Aug 2018 17:04:36 -0400 Subject: [PATCH] Translate static pages --- app/views/pages/accessibility.html.erb | 131 ++++++------------ app/views/pages/conditions.html.erb | 6 +- app/views/pages/privacy.html.erb | 31 +++-- config/locales/en/pages.yml | 97 ++++++++++++- config/locales/es/pages.yml | 97 ++++++++++++- config/locales/he/pages.yml | 3 +- .../site_customization/custom_pages_spec.rb | 2 +- 7 files changed, 256 insertions(+), 111 deletions(-) diff --git a/app/views/pages/accessibility.html.erb b/app/views/pages/accessibility.html.erb index 87ef99ffe..cf956e3e8 100644 --- a/app/views/pages/accessibility.html.erb +++ b/app/views/pages/accessibility.html.erb @@ -5,142 +5,95 @@
-

Accesibilidad

-

La accesibilidad web se refiere a la posibilidad de acceso a la web y a sus contenidos por todas las personas, independientemente de las discapacidades (físicas, intelectuales o técnicas) que puedan presentar o de las que se deriven del contexto de uso (tecnológicas o ambientales).

-

Cuando los sitios web están diseñados pensando en la accesibilidad, todos los usuarios pueden acceder en condiciones de igualdad a los contenidos, por ejemplo:

+

<%= t('.title') %>

+ <%= simple_format(t('.description')) %>
    -
  • Proporcionando un texto alternativo a las imágenes, los usuarios invidentes o con problemas de visión pueden utilizar lectores especiales para acceder a la información.
  • -
  • Cuando los vídeos disponen de subtítulos, los usuarios con dificultades auditivas pueden entenderlos plenamente.
  • -
  • Si los contenidos están escritos en un lenguaje sencillo e ilustrados, los usuarios con problemas de aprendizaje están en mejores condiciones de entenderlos.
  • -
  • Si el usuario tiene problemas de movilidad y le cuesta usar el ratón, las alternativas con el teclado le ayudan en la navegación.
  • + <% t('.examples').each do |example| %> +
  • <%= example %>
  • + <% end %>
-

"Atajos" de teclado

+

<%= t('.keyboard_shortcuts.title') %>

-

Para poder navegar por este sitio web de forma accesible, se han programado un grupo de teclas de acceso rápido que recogen las principales secciones de interés general en los que está organizado el sitio.

+

<%= t('.keyboard_shortcuts.navigation_table.description') %>

- + - - + + - - - - - - - - - - - - - - - - - - - - - - - - + <% t('.keyboard_shortcuts.navigation_table.rows').each do |row| %> + + + + + <% end %>
Atajos de teclado para el menú de navegación<%= t('.keyboard_shortcuts.navigation_table.caption') %>
TeclaPágina<%= t('.keyboard_shortcuts.navigation_table.key_header') %><%= t('.keyboard_shortcuts.navigation_table.page_header') %>
0Inicio
1Debates
2Propuestas
3Votaciones
4Presupuestos participativos
5Procesos legislativos
<%= row[:key_column] %><%= row[:page_column] %>
-

Dependiendo del sistema operativo y del navegador que se utilice, la combinación de teclas será la siguiente:

+

<%= t('.keyboard_shortcuts.browser_table.description') %>

- + - - + + - - - - - - - - - - - - - - - - - - - - + <% t('.keyboard_shortcuts.browser_table.rows').each do |row| %> + + + + + <% end %>
Combinación de teclas dependiendo del sistema operativo y navegador<%= t('.keyboard_shortcuts.browser_table.caption') %>
NavegadorCombinación de teclas<%= t('.keyboard_shortcuts.browser_table.browser_header') %><%= t('.keyboard_shortcuts.browser_table.key_header') %>
ExplorerALT + atajo y luego ENTER
FirefoxALT + MAYÚSCULAS + atajo
ChromeALT + atajo (si es un MAC, CTRL + ALT + atajo)
SafariALT + atajo (si es un MAC, CMD + atajo)
OperaMAYÚSCULAS + ESC + atajo
<%= row[:browser_column] %><%= row[:key_column] %>
-

Tamaño del texto

-

El diseño accesible de este sitio web permite que el usuario pueda elegir el tamaño del texto que le convenga. Esta acción puede llevarse a cabo de diferentes maneras según el navegador que se utilice.

+

<%= t('.textsize.title') %>

+

<%= t('.textsize.browser_settings_table.description') %>

- - + + - - - - - - - - - - - - - - - - - - - - + <% t('.textsize.browser_settings_table.rows').each do |row| %> + + + + + <% end %>
NavegadorAcción a realizar <%= t('.textsize.browser_settings_table.browser_header') %><%= t('.textsize.browser_settings_table.action_header') %>
ExplorerVer > Tamaño del texto
FirefoxVer > Tamaño
ChromeAjustes (icono) > Opciones > Avanzada > Contenido web > Tamaño fuente
SafariVisualización > ampliar/reducir
OperaVer > escala
<%= row[:browser_column] %><%= row[:action_column] %>
-

Otra forma de modificar el tamaño de texto es utilizar los atajos de teclado definidos en los navegadores, en particular la combinación de teclas:

+

<%= t('.textsize.browser_shortcuts_table.description') %>

    -
  • CTRL y + (CMD y + en MAC) para aumentar el tamaño del texto
  • -
  • CTRL y - (CMD y - en MAC) para reducir el tamaño del texto
  • + <% t('.textsize.browser_shortcuts_table.rows').each do |row| %> +
  • <%= row[:shortcut_column] %> <%= row[:description_column] %>
  • + <% end %>
-

Compatibilidad con estándares y diseño visual

+

<%= t('.compatibility.title') %>

-

Todas las páginas de este sitio web cumplen con  las Pautas de Accesibilidad o Principios Generales de Diseño Accesible establecidas por el Grupo de Trabajo WAI perteneciente al W3C.

+

<%= t('.compatibility.description_html') %>

diff --git a/app/views/pages/conditions.html.erb b/app/views/pages/conditions.html.erb index 7a1e5ac54..f85c61542 100644 --- a/app/views/pages/conditions.html.erb +++ b/app/views/pages/conditions.html.erb @@ -6,9 +6,9 @@
-

<%= t("pages.conditions") %>

-

AVISO LEGAL SOBRE LAS CONDICIONES DE USO, PRIVACIDAD Y PROTECCIÓN DE DATOS PERSONALES DEL PORTAL DE GOBIERNO ABIERTO

-

Página de información sobre las condiciones de uso, privacidad y protección de datos personales.

+

<%= t('.title') %>

+

<%= t('.subtitle') %>

+

<%= t('.description') %>

diff --git a/app/views/pages/privacy.html.erb b/app/views/pages/privacy.html.erb index c7824b96c..f18e32bbc 100644 --- a/app/views/pages/privacy.html.erb +++ b/app/views/pages/privacy.html.erb @@ -6,22 +6,27 @@
-

<%= t("pages.privacy") %>

-

AVISO DE PROTECCIÓN DE DATOS

+

<%= t(".title") %>

+

<%= t('.subtitle') %>

+
    -
  1. La navegación por la informacion disponible en el Portal de Gobierno Abierto es anónima.
  2. -
  3. Para utilizar los servicios contenidos en el Portal de Gobierno Abierto el usuario deberá darse de alta y proporcionar previamente los datos de carácter personal segun la informacion especifica que consta en cada tipo de alta.
  4. -
  5. Los datos aportados serán incorporados y tratados por el Ayuntamiento de acuerdo con la descripción del fichero siguiente: -
      -
    • Nombre del fichero/tratamiento: NOMBRE DEL FICHERO
    • -
    • Finalidad del fichero/tratamiento: Gestionar los procesos participativos para el control de la habilitación de las personas que participan en los mismos y recuento meramente numérico y estadístico de los resultados derivados de los procesos de participación ciudadana
    • -
    • Órgano responsable: ÓRGANO RESPONSABLE
    • -
    -
  6. -
  7. El interesado podrá ejercer los derechos de acceso, rectificación, cancelación y oposición, ante el órgano responsable indicado todo lo cual se informa en el cumplimiento del artículo 5 de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal.
  8. -
  9. Como principio general, este sitio web no comparte ni revela información obtenida, excepto cuando haya sido autorizada por el usuario, o la informacion sea requerida por la autoridad judicial, ministerio fiscal o la policia judicial, o se de alguno de los supuestos regulados en el artículo 11 de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal.
  10. + <% t('.info_items').each do |item| %> + <% if item.key? :text %> +
  11. <%= item[:text] %>
  12. + <% else %> +
      + <% item[:subitems].each do |subitem| %> +
    • + <%= subitem[:field] %> + <%= subitem[:description] %> +
    • + <% end %> +
    + <% end %> + <% end %>
+
diff --git a/config/locales/en/pages.yml b/config/locales/en/pages.yml index fcc1dafec..8b9473949 100644 --- a/config/locales/en/pages.yml +++ b/config/locales/en/pages.yml @@ -1,6 +1,9 @@ en: pages: - conditions: Terms and conditions of use + conditions: + title: Terms and conditions of use + subtitle: LEGAL NOTICE ON THE CONDITIONS OF USE, PRIVACY AND PROTECTION OF PERSONAL DATA OF THE OPEN GOVERNMENT PORTAL + description: Information page on the conditions of use, privacy and protection of personal data. general_terms: Terms and Conditions help: title: "%{org} is a platform for citizen participation" @@ -63,7 +66,97 @@ en: If you are a programmer, you can see the code and help us to improve it at [CONSUL app](https://github.com/consul/consul 'consul github'). titles: how_to_use: Use it in your local government - privacy: Privacy Policy + privacy: + title: Privacy Policy + subtitle: INFORMATION REGARDING DATA PRIVACY + info_items: + - text: The navigation through the information available in the Open Government Portal is anonymous. + - text: To use the services contained in the Open Government Portal, the user must register and previously provide personal data according to the specific information included in each type of registration. + - text: 'The data provided will be incorporated and processed by the City Council in accordance with the description of the following file:' + - subitems: + - field: 'File name:' + description: NAME OF THE FILE + - field: 'Purpose of the file:' + description: Managing participatory processes to control the qualification of the people participating in them and merely numerical and statistical recount of the results derived from citizen participation processes. + - field: 'Institution in charge of the file:' + description: INSTITUTION IN CHARGE OF THE FILE + - text: The interested party may exercise the rights of access, rectification, cancellation and opposition, before the responsible body indicated, all of which is reported in compliance with article 5 of the Organic Law 15/1999, of December 13, on the Protection of Data of Character Personal. + - text: As a general principle, this website does not share or disclose information obtained, except when it has been authorized by the user, or the information is required by the judicial authority, prosecutor's office or the judicial police, or any of the cases regulated in the Article 11 of the Organic Law 15/1999, of December 13, on the Protection of Personal Data. + accessibility: + title: Accessibility + description: |- + Web accessibility refers to the possibility of access to the web and its contents by all people, regardless of the disabilities (physical, intellectual or technical) that may arise or from those that derive from the context of use (technological or environmental) . + + When websites are designed with accessibility in mind, all users can access content in equal conditions, for example: + examples: + - Proporcionando un texto alternativo a las imágenes, los usuarios invidentes o con problemas de visión pueden utilizar lectores especiales para acceder a la información.Providing alternative text to the images, blind or visually impaired users can use special readers to access the information. + - When videos have subtitles, users with hearing difficulties can fully understand them. + - If the contents are written in a simple and illustrated language, users with learning problems are better able to understand them. + - If the user has mobility problems and it is difficult to use the mouse, the alternatives with the keyboard help in navigation. + keyboard_shortcuts: + title: Keyboard shortcuts + navigation_table: + description: To be able to navigate through this website in an accessible way, a group of quick access keys has been programmed that gather the main sections of general interest in which the site is organized. + caption: Keyboard shortcuts for the navigation menu + key_header: Key + page_header: Page + rows: + - key_column: 0 + page_column: Home + - key_column: 1 + page_column: Debates + - key_column: 2 + page_column: Proposals + - key_column: 3 + page_column: Votes + - key_column: 4 + page_column: Participatory budgets + - key_column: 5 + page_column: Legislative processes + browser_table: + description: 'Depending on the operating system and the browser used, the key combination will be as follows:' + caption: Key combination depending on the operating system and browser + browser_header: Browser + key_header: Key combination + rows: + - browser_column: Explorer + key_column: ALT + shortcut then ENTER + - browser_column: Firefox + key_column: ALT + CAPS + shortcut + - browser_column: Chrome + key_column: ALT + shortcut (CTRL + ALT + shortcuts for MAC) + - browser_column: Safari + key_column: ALT + shortcut (CMD + shortcut for MAC) + - browser_column: Opera + key_column: CAPS + ESC + shortcut + textsize: + title: Text size + browser_settings_table: + description: The accessible design of this website allows the user to choose the size of the text that suits him. This action can be carried out in different ways depending on the browser used. + browser_header: Browser + action_header: Action to be taken + rows: + - browser_column: Explorer + action_column: View > Text size + - browser_column: Firefox + action_column: View > Size + - browser_column: Chrome + action_column: Settings (icon) > Options > Advanced > Web Content > Text size + - browser_column: Safari + action_column: View > Zoom In/Zoom out + - browser_column: Opera + action_column: View > scale + browser_shortcuts_table: + description: 'Another way to modify the text size is to use the keyboard shortcuts defined in browsers, in particular the key combination:' + rows: + - shortcut_column: CTRL and + (CMD and + on MAC) + description_column: Increases text size + - shortcut_column: CTRL and - (CMD and - on MAC) + description_column: Descreases text size + compatibility: + title: Compatibility with standards and visual design + description_html: 'All pages of this website comply with the Accessibility Guidelines or General Principles of Accessible Design established by the Working Group WAI belonging to W3C.' + titles: accessibility: Accessibility conditions: Terms of use diff --git a/config/locales/es/pages.yml b/config/locales/es/pages.yml index 81d66a5ad..65402e859 100644 --- a/config/locales/es/pages.yml +++ b/config/locales/es/pages.yml @@ -1,6 +1,9 @@ es: pages: - conditions: Condiciones de uso + conditions: + title: Condiciones de uso + subtitle: AVISO LEGAL SOBRE LAS CONDICIONES DE USO, PRIVACIDAD Y PROTECCIÓN DE DATOS PERSONALES DEL PORTAL DE GOBIERNO ABIERTO + description: Página de información sobre las condiciones de uso, privacidad y protección de datos personales. general_terms: Términos y Condiciones help: title: "%{org} es una plataforma de participación ciudadana" @@ -65,7 +68,97 @@ es: Si eres programador, puedes ver el código y ayudarnos a mejorarlo en [aplicación CONSUL](https://github.com/consul/consul 'github consul'). titles: how_to_use: Utilízalo en tu municipio - privacy: Política de privacidad + privacy: + title: Política de privacidad + subtitle: AVISO DE PROTECCIÓN DE DATOS + info_items: + - text: La navegación por la informacion disponible en el Portal de Gobierno Abierto es anónima. + - text: Para utilizar los servicios contenidos en el Portal de Gobierno Abierto el usuario deberá darse de alta y proporcionar previamente los datos de carácter personal segun la informacion especifica que consta en cada tipo de alta. + - text: 'Los datos aportados serán incorporados y tratados por el Ayuntamiento de acuerdo con la descripción del fichero siguiente:' + - subitems: + - field: 'Nombre del fichero/tratamiento:' + description: NOMBRE DEL FICHERO + - field: 'Finalidad del fichero/tratamiento:' + description: Gestionar los procesos participativos para el control de la habilitación de las personas que participan en los mismos y recuento meramente numérico y estadístico de los resultados derivados de los procesos de participación ciudadana + - field: 'Órgano responsable:' + description: ÓRGANO RESPONSABLE + - text: El interesado podrá ejercer los derechos de acceso, rectificación, cancelación y oposición, ante el órgano responsable indicado todo lo cual se informa en el cumplimiento del artículo 5 de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal. + - text: Como principio general, este sitio web no comparte ni revela información obtenida, excepto cuando haya sido autorizada por el usuario, o la informacion sea requerida por la autoridad judicial, ministerio fiscal o la policia judicial, o se de alguno de los supuestos regulados en el artículo 11 de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal. + accessibility: + title: Accesibilidad + description: |- + La accesibilidad web se refiere a la posibilidad de acceso a la web y a sus contenidos por todas las personas, independientemente de las discapacidades (físicas, intelectuales o técnicas) que puedan presentar o de las que se deriven del contexto de uso (tecnológicas o ambientales). + + Cuando los sitios web están diseñados pensando en la accesibilidad, todos los usuarios pueden acceder en condiciones de igualdad a los contenidos, por ejemplo: + examples: + - Proporcionando un texto alternativo a las imágenes, los usuarios invidentes o con problemas de visión pueden utilizar lectores especiales para acceder a la información. + - Cuando los vídeos disponen de subtítulos, los usuarios con dificultades auditivas pueden entenderlos plenamente. + - Si los contenidos están escritos en un lenguaje sencillo e ilustrados, los usuarios con problemas de aprendizaje están en mejores condiciones de entenderlos. + - Si el usuario tiene problemas de movilidad y le cuesta usar el ratón, las alternativas con el teclado le ayudan en la navegación. + keyboard_shortcuts: + title: '"Atajos" de teclado' + navigation_table: + description: Para poder navegar por este sitio web de forma accesible, se han programado un grupo de teclas de acceso rápido que recogen las principales secciones de interés general en los que está organizado el sitio. + caption: Atajos de teclado para el menú de navegación + key_header: Tecla + page_header: Página + rows: + - key_column: 0 + page_column: Inicio + - key_column: 1 + page_column: Debates + - key_column: 2 + page_column: Propuestas + - key_column: 3 + page_column: Votaciones + - key_column: 4 + page_column: Presupuestos participativos + - key_column: 5 + page_column: Procesos legislativos + browser_table: + description: 'Dependiendo del sistema operativo y del navegador que se utilice, la combinación de teclas será la siguiente:' + caption: Combinación de teclas dependiendo del sistema operativo y navegador + browser_header: Navegador + key_header: Combinación de teclas + rows: + - browser_column: Explorer + key_column: ALT + atajo y luego ENTER + - browser_column: Firefox + key_column: ALT + MAYÚSCULAS + atajo + - browser_column: Chrome + key_column: ALT + atajo (si es un MAC, CTRL + ALT + atajo) + - browser_column: Safari + key_column: ALT + atajo (si es un MAC, CMD + atajo) + - browser_column: Opera + key_column: MAYÚSCULAS + ESC + atajo + textsize: + title: Tamaño del texto + browser_settings_table: + description: El diseño accesible de este sitio web permite que el usuario pueda elegir el tamaño del texto que le convenga. Esta acción puede llevarse a cabo de diferentes maneras según el navegador que se utilice. + browser_header: Navegador + action_header: Acción a realizar + rows: + - browser_column: Explorer + action_column: Ver > Tamaño del texto + - browser_column: Firefox + action_column: Ver > Tamaño + - browser_column: Chrome + action_column: Ajustes (icono) > Opciones > Avanzada > Contenido web > Tamaño fuente + - browser_column: Safari + action_column: Visualización > ampliar/reducir + - browser_column: Opera + action_column: Ver > escala + browser_shortcuts_table: + description: 'Otra forma de modificar el tamaño de texto es utilizar los atajos de teclado definidos en los navegadores, en particular la combinación de teclas:' + rows: + - shortcut_column: CTRL y + (CMD y + en MAC) + description_column: para aumentar el tamaño del texto + - shortcut_column: CTRL y - (CMD y - en MAC) + description_column: para reducir el tamaño del texto + compatibility: + title: Compatibilidad con estándares y diseño visual + description_html: 'Todas las páginas de este sitio web cumplen con las Pautas de Accesibilidad o Principios Generales de Diseño Accesible establecidas por el Grupo de Trabajo WAI perteneciente al W3C.' + titles: accessibility: Accesibilidad conditions: Condiciones de uso diff --git a/config/locales/he/pages.yml b/config/locales/he/pages.yml index 88d562e28..f78de79c7 100644 --- a/config/locales/he/pages.yml +++ b/config/locales/he/pages.yml @@ -3,7 +3,8 @@ he: census_terms: כדי לאשר את החשבון, עליך להיות בגיל 18 ומעלה ולהיות רשום/ה במערכת. לאחר שסיפקת את המידע המבוקש בטופס האישור, המידע יאומת. בהסכמתך לתהליך האימות, את/ה גם מצהיר/ה שהמידע שנתת אינו כוזב, ומאמת גם את פרטי יצירת הקשר שמלאת בטפסים אלה. המידע שסופק יאומת בשיטה המפורטת קודם לכן בדף כללים ותנאי שימוש של אתר זה conditions: כללים ותנאי שימוש general_terms: כללים ותנאים - privacy: Privacy Policy + privacy: + title: Privacy Policy titles: accessibility: נגישות conditions: תנאי שימוש diff --git a/spec/features/site_customization/custom_pages_spec.rb b/spec/features/site_customization/custom_pages_spec.rb index 85e50841d..4fb486d37 100644 --- a/spec/features/site_customization/custom_pages_spec.rb +++ b/spec/features/site_customization/custom_pages_spec.rb @@ -15,7 +15,7 @@ feature "Custom Pages" do expect(page).to have_title("Terms of use") expect(page).to have_selector("h1", text: "Terms and conditions of use") - expect(page).to have_content("Página de información sobre las condiciones de uso, privacidad y protección de datos personales.") + expect(page).to have_content("Information page on the conditions of use, privacy and protection of personal data.") expect(page).to have_content("Print this info") end