Refactor and tests.

This commit is contained in:
taitus
2017-08-10 15:02:02 +02:00
parent 555c47e012
commit 4539c5fa00
36 changed files with 1023 additions and 110 deletions

View File

@@ -37,6 +37,7 @@ data:
- config/locales/%{locale}/officing.yml
- config/locales/%{locale}/budgets.yml
- config/locales/%{locale}/legislation.yml
- config/locales/%{locale}/community.yml
- config/locales/%{locale}/documents.yml
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:

View File

@@ -1,41 +1,48 @@
en:
community:
create_first_community_theme: Create the first community theme
join_the_community_of_users: Join the community of users, give your opinion.
tab:
participant: Participants
sidebar:
title: Community
description: Join the community of users, give your opinion.
title: Comunidad
description: Partecipa a la comunidad de usuarios, da tu opinión.
button_to_access: Access the community
topic:
title: Participants
new_topic: Create topic
edit_topic: Edit theme
recommendations_title: Recommendations to create a theme
recommendation_one: Do not write the topic title or whole sentences in capital letters. On the internet that is considered shouting. And no one likes to be yelled at.
recommendation_two: Any topic or comment that implies an illegal action will be eliminated, also those that intend to sabotage the spaces of the subject, everything else is allowed.
recommendation_three: Enjoy this space, the voices that fill it, it's yours too
without_topics: Create the first community topic
show:
title: User community
title: Proposal community
description: Participate in the community of this proposal
participants: Participants
create_first_community_topic: Create the first community topic
tab:
participants: Participants
sidebar:
participate: Participate
new_topic: Create topic
disabled_info_title: You need to be logged to create a new topic
topic:
edit_button: Edit
comments:
one: 1 comment
other: "%{count} comments"
zero: No comments
topic:
create: Create a theme
edit_button: Edit
create: Create a topic
edit: Edit Topic
form:
topic_title: Topic Title
topic_description_as_comment: Initial comment
topic_description: Description
new:
submit_button: Create theme
submit_button: Create topic
edit:
submit_button: Edit theme
submit_button: Edit topic
create:
submit_button: Create topic
update:
submit_button: Update topic
show:
community_of_the_proposal: Community of the proposal
tab:
comments_tab: Comments
sidebar:
recommendations_title: Recommendations to create a topic
recommendation_one: Do not write the topic title or whole sentences in capital letters. On the internet that is considered shouting. And no one likes to be yelled at.
recommendation_two: Any topic or comment that implies an illegal action will be eliminated, also those that intend to sabotage the spaces of the subject, everything else is allowed.
recommendation_three: Enjoy this space, the voices that fill it, it's yours too.
topics:
show:
login_to_comment: You must %{signin} or %{signup} to leave a comment.

View File

@@ -179,6 +179,7 @@ en:
verification/sms: phone
signature_sheet: Signature sheet
document: Document
topic: Topic
geozones:
none: All city
all: All scopes

View File

@@ -13,6 +13,7 @@ en:
spending_proposal: "Spending proposal created successfully. You can access it from %{activity}"
budget_investment: "Budget Investment created successfully."
signature_sheet: "Signature sheet created successfully"
topic: "Topic created successfully."
save_changes:
notice: Changes saved
update:
@@ -23,6 +24,7 @@ en:
proposal: "Proposal updated successfully."
spending_proposal: "Investment project updated succesfully."
budget_investment: "Investment project updated succesfully."
topic: "Topic updated successfully."
destroy:
spending_proposal: "Spending proposal deleted succesfully."
budget_investment: "Investment project deleted succesfully."

View File

@@ -1,39 +1,48 @@
es:
community:
create_first_community_theme: Crea el primer tema de la comunidad
join_the_community_of_users: Partecipa a la comunidad de usuarios, da tu opinión.
tab:
participant: Participantes
sidebar:
title: Comunidad
description: Partecipa a la comunidad de usuarios, da tu opinión.
button_to_access: Acceder a la comunidad
topic:
title: Participa
new_topic: Crea un tema
recommendations_title: Recomendaciones para crear un tema
recommendation_one: No escribas el título del tema o frases enteras en mayúsculas. En internet eso se considera gritar. Y a nadie le gusta que le griten.
recommendation_two: Cualquier tema o comentario que implique una acción ilegal será eliminada, también las que tengan la intención de sabotear los espacios del tema, todo lo demás está permitido.
recommendation_three: Disfruta de este espacio, de las voces que lo llenan, también es tuyo
without_topics: Crea el primer tema de la comunidad
show:
title: Comunidad de usuarios
title: Comunidad de la propuesta
description: Participa en la comunidad de esta propuesta
paricipants: Participantes
create_first_community_topic: Crea el primer tema de la comunidad
tab:
paricipants: Participantes
sidebar:
participate: Participa
new_topic: Crea un tema
disabled_info_title: Necesitas estar logueado para crear un nuevo tema
topic:
edit_button: Editar
comments:
one: 1 Comentario
other: "%{count} Comentarios"
zero: Sin comentarios
topic:
create: Crear un tema
edit_button: Editar
edit: Editar tema
form:
topic_title: Titulo del tema
topic_description_as_comment: Comentario inicial
topic_description: Descripción
new:
submit_button: Crear tema
edit:
submit_button: Guardar cambios
create:
submit_button: Crear tema
update:
submit_button: Actualizar tema
show:
community_of_the_proposal: Comunidad de la propuesta
tab:
comments_tab: Comentarios
sidebar:
recommendations_title: Recomendaciones para crear un tema
recommendation_one: No escribas el título del tema o frases enteras en mayúsculas. En internet eso se considera gritar. Y a nadie le gusta que le griten.
recommendation_two: Cualquier tema o comentario que implique una acción ilegal será eliminada, también las que tengan la intención de sabotear los espacios del tema, todo lo demás está permitido.
recommendation_three: Disfruta de este espacio, de las voces que lo llenan, también es tuyo
topics:
show:
login_to_comment: Necesitas %{signin} o %{signup} para comentar.

View File

@@ -179,6 +179,7 @@ es:
verification/sms: el teléfono
signature_sheet: la hoja de firmas
document: el documento
topic: Tema
geozones:
none: Toda la ciudad
all: Todos los ámbitos de actuación

View File

@@ -13,6 +13,7 @@ es:
spending_proposal: "Propuesta de inversión creada correctamente. Puedes acceder a ella desde %{activity}"
budget_investment: "Propuesta de inversión creada correctamente."
signature_sheet: "Hoja de firmas creada correctamente"
topic: "Tema creado correctamente."
save_changes:
notice: Cambios guardados
update:
@@ -23,6 +24,7 @@ es:
poll_booth: "Urna actualizada correctamente."
spending_proposal: "Propuesta de inversión actualizada correctamente."
budget_investment: "Propuesta de inversión actualizada correctamente"
topic: "Tema actualizado correctamente."
destroy:
spending_proposal: "Propuesta de inversión eliminada."
budget_investment: "Propuesta de inversión eliminada."