Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation issues #53

Merged
merged 3 commits into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions translation/translations2pgsql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

-- Translations to PgSQL

SET client_encoding = 'UTF8';

BEGIN;

ALTER TABLE doc_tags DROP CONSTRAINT doc_tags_id_tag_fkey;

DELETE FROM tags;

\copy tags(id_tag, tag_en, tag_es, tag_fr ) from '/tmp/translations/translation_alboran_tags.csv' (DELIMITER ',', FORMAT CSV,HEADER TRUE)

ALTER TABLE doc_tags ADD CONSTRAINT doc_tags_id_tag_fkey
FOREIGN KEY (id_tag) REFERENCES tags(id_tag);

COMMIT;

BEGIN;

ALTER TABLE doc_tags DROP CONSTRAINT doc_tags_id_doc_fkey;

DELETE FROM documents;

\copy documents(id_doc,title_en,title_es,title_fr,source,description_en,description_es, description_fr, doc_link, img_link, highlight, topic_id ) from '/tmp/translations/alboran_documents.csv' (DELIMITER ',', FORMAT CSV,HEADER TRUE)

ALTER TABLE doc_tags ADD CONSTRAINT doc_tags_id_doc_fkey
FOREIGN KEY (id_doc) REFERENCES documents(id_doc);

COMMIT;

BEGIN;

DELETE FROM translation;

\copy translation(key,en,es,fr) from '/tmp/translations/translation_alboran_main_traducido_EN-FR.csv' (DELIMITER ',', FORMAT CSV,HEADER TRUE)

INSERT INTO translation (key) VALUES('');

COMMIT;
16 changes: 8 additions & 8 deletions www/src/js/template/about_template.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<div id="aboutProject">

<div class="header">
<a class="selected" href="#why"><lang>¿Por qué Espacio Alborán?</lang></a>
<a class="selected" href="#why"><lang>Por qué Espacio Alborán</lang></a>
<a href="#characteristics"><lang>Características</lang></a>
<a href="#how"><lang>¿Cómo surge?</lang></a>
<a href="#what"><lang>¿Qué puedes encontrar?</lang></a>
<a href="#forWhat"><lang>¿Para qué sirve?</lang></a>
<a href="#how"><lang>Cómo surge</lang></a>
<a href="#what"><lang>Qué puedes encontrar</lang></a>
<a href="#forWhat"><lang>Para qué sirve</lang></a>
<a href="#coordination"><lang>Coordinación</lang></a>
</div>

<section id="why">
<div class="header">
<h2><lang>¿Por qué Espacio Alborán?</lang></h2>
<h2><lang>Por qué Espacio Alborán</lang></h2>
</div>
<div class="container">
<div class="row">
Expand Down Expand Up @@ -327,7 +327,7 @@ <h3><lang>La riqueza y su biodiversidad</lang></h3>

<section id="how">
<div class="header">
<h2><lang>¿Cómo surge el proyecto Espacio Alborán?</lang></h2>
<h2><lang>Cómo surge el proyecto Espacio Alborán</lang></h2>
</div>
<div class="container">
<div class="row">
Expand All @@ -344,7 +344,7 @@ <h2><lang>¿Cómo surge el proyecto Espacio Alborán?</lang></h2>

<section id="what">
<div class="header">
<h2><lang>¿Qué puedes encontrar en geoportal del espacio alborán?</lang></h2>
<h2><lang>Qué puedes encontrar en geoportal del espacio alborán</lang></h2>
</div>
<div class="container">
<div class="row">
Expand All @@ -364,7 +364,7 @@ <h2><lang>¿Qué puedes encontrar en geoportal del espacio alborán?</lang></h2>

<section id="forWhat">
<div class="header">
<h2><lang>¿Para qué sirve el Geoportal?</lang></h2>
<h2><lang>Para qué sirve el Geoportal</lang></h2>
</div>
<div class="container">
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions www/src/js/template/home_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12">
<h2><lang>Un <strong>espacio</strong></lang> para la gobernanza que promueve el intercambio de conocimiento, la participación, la gestión y el aprendizaje.</h2>
<h2><lang>Un <strong>espacio</strong> para la gobernanza que promueve el intercambio de conocimiento, la participación, la gestión y el aprendizaje.</lang></h2>
<h3><i><lang>Seleccione un mapa preconfigurado:</lang></i></h3>
</div>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h3><lang>Aprende</lang></h3>
<div class="section">
<img src="/img/home/ALB_icon_XL_historias-white.svg">
<div>
<h3><lang>¿Tienes algo que contar o compartir sobre el Mar de Alborán?</lang></h3>
<h3><lang>Tienes algo que contar o compartir sobre el Mar de Alborán</lang></h3>
<span><lang>Participa y hazlo a través de un mapa.</lang></span>
<a href="/<lang>lang</lang>/<lang>_link join</lang>" jslink><lang>Ver historias</lang></a>
<a href="/<lang>lang</lang>/<lang>_link join</lang>/<lang>_link writehistory</lang>" jslink><lang>Escribir historia</lang></a>
Expand Down