From 9771ef9daa0f89c95fe755e38932fd5d92921cb9 Mon Sep 17 00:00:00 2001
From: Stavros Sachtouris <saxtouri@admin.grnet.gr>
Date: Thu, 9 Jul 2015 12:47:52 +0300
Subject: [PATCH] Translate static text content to Greek

---
 agkyra/nwgui/about_el.html                 | 57 ++++++++++++++++++++++
 agkyra/nwgui/{about.html => about_en.html} |  0
 agkyra/nwgui/menu.html                     |  3 +-
 agkyra/nwgui/settings.html                 |  1 +
 agkyra/ui_data/common_el.json              | 14 +++---
 5 files changed, 67 insertions(+), 8 deletions(-)
 create mode 100644 agkyra/nwgui/about_el.html
 rename agkyra/nwgui/{about.html => about_en.html} (100%)

diff --git a/agkyra/nwgui/about_el.html b/agkyra/nwgui/about_el.html
new file mode 100644
index 0000000..5cee629
--- /dev/null
+++ b/agkyra/nwgui/about_el.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (C) 2015 GRNET S.A.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<html>
+    <head>
+        <meta charset="UTF-8" />
+        <title>ΣχΡτικά ΞΌΞ΅ την Agkyra</title>
+        <link rel="stylesheet" href="static/stylesheets/main.css" />
+    </head>
+
+    <body>
+    <div class="wrapper home">
+            <header>
+                <img src="static/images/logo.png" class="logo" alt="agkyra"/>
+                <h1></i>Agkyra... it syncs<i></h1>
+            </header>
+            <p>Ξ— <b>Agkyra</b> Ρίναι Ξ­Ξ½Ξ±Ο‚ Ρυέλικτος συγχρονιστΞ�Ο‚ αρχΡίων Ξ³ΞΉΞ± το σύστημα Pithos+.<br/>Συγχρονί΢Ρι Ξ­Ξ½Ξ±Ξ½ απομακρυσμένο αποταμιΡυτΞ�ρα (container) του Pithos+ ΞΌΞ΅ Ξ­Ξ½Ξ± φάκΡλο στο Ο„ΞΏΟ€ΞΉΞΊΟŒ σύστημα.</p>
+
+            <p class="disclaimer">ΑναπτύχθηκΡ ΞΊΞ±ΞΉ υποστηρί΢Ρται Ξ±Ο€ΟŒ την ομάδα ανάπτυξης Okeanos/Synnefo του ΕΔΕ΀<br/><b>Ρπικοινωνία: okeanos-dev@grnet.gr</b></p>
+
+            <h3 class="disclaimer">Copyright 2015 Ξ•ΞΈΞ½ΞΉΞΊΟŒ Δίκτυο ΞˆΟΞ΅Ο…Ξ½Ξ±Ο‚ ΞΊΞ±ΞΉ ΀Ρχνολογίας<br/>ΔιατίθΡται ΞΌΞ΅ την παρακάτω άδΡια:</h3>
+            <embed class="licence" src="COPYING" />
+        </div>
+        <footer class="footer">
+            <p class="disclaimer">΀ο έργο συγχρηματοδοτΡίται Ξ±Ο€ΟŒ την Ελλάδα ΞΊΞ±ΞΉ την Ξ•Ο…ΟΟ‰Ο€Ξ±ΟŠΞΊΞ� ΞˆΞ½Ο‰ΟƒΞ·</p>
+            <ul class="logos">
+                <li id="eu">
+                    <a href="#" title="European Union"><img src="static/images/eu.png" /></a>
+                </li>
+                <li id="dg">
+                    <a href="#" title="Digital Greece"><img src="static/images/dg.png" /></a>
+                </li>
+                <li id="nsrf">
+                    <a href="#" title="NSRF"><img src="static/images/nsrf.png" /></a>
+                </li>
+                <li id="grnet">
+                    <a href="#" title="GRNet"><img src="static/images/grnet.png" /></a>
+                </li>
+            </ul>
+        </footer>
+    </body>
+
+</html>
diff --git a/agkyra/nwgui/about.html b/agkyra/nwgui/about_en.html
similarity index 100%
rename from agkyra/nwgui/about.html
rename to agkyra/nwgui/about_en.html
diff --git a/agkyra/nwgui/menu.html b/agkyra/nwgui/menu.html
index 7da3051..a3adb5d 100644
--- a/agkyra/nwgui/menu.html
+++ b/agkyra/nwgui/menu.html
@@ -142,7 +142,8 @@ var about_menu = new gui.MenuItem({
   iconIsTemplate: false,
   click: function () {
     if (windows['about']) windows['about'].close();
-    windows['about'] = gui.Window.open("about.html", {
+    windows['about'] = gui.Window.open(
+        "about_" + globals.settings.language + ".html", {
       toolbar: false, resizable: false, focus: true,
       width: 860, height: 620
     });
diff --git a/agkyra/nwgui/settings.html b/agkyra/nwgui/settings.html
index 468d43d..96a19cb 100644
--- a/agkyra/nwgui/settings.html
+++ b/agkyra/nwgui/settings.html
@@ -205,6 +205,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
                 var COMMON = JSON.parse(
                 fs.readFileSync(path.join('..', 'ui_data/common_' + cur_lang + '.json')));
                 var SETTINGS = COMMON.SETTINGS;
+                document.title = SETTINGS.TITLE;
                 document.getElementById('title').innerHTML = SETTINGS.TITLE;
                 document.getElementById('appearance_label').innerHTML = SETTINGS.APPEARANCE;
                 document.getElementById('language_label').innerHTML = SETTINGS.LANGUAGE;
diff --git a/agkyra/ui_data/common_el.json b/agkyra/ui_data/common_el.json
index 08e0a38..55fad32 100644
--- a/agkyra/ui_data/common_el.json
+++ b/agkyra/ui_data/common_el.json
@@ -28,23 +28,23 @@
         "1000": "ΞšΟΞ―ΟƒΞΉΞΌΞΏ σφάλμα"
     },
     "MENU": {
-        "TITLE": "Άγκυρα - συγχρονιστΞ�Ο‚ αρχΡίων",
+        "TITLE": "ΣυγχρονιστΞ�Ο‚ αρχΡίων Agkyra",
         "START": "Εκκίνηση συγχρονισμού",
         "PAUSE": "Παύση συγχρονισμού",
         "INACTIVE": "Ξ‘Ξ½Ξ΅Ξ½Ξ΅ΟΞ³ΟŒ",
         "WAITING": "ΑναμονΞ�...",
         "REMAINING": "απομένουν %s",
         "FOLDER": "Ξ€ΞΏΟ€ΞΉΞΊΟŒΟ‚ φάκΡλος",
-        "PITHOS": "ΣΡλίδα στον Ξ Ξ―ΞΈΞΏ+",
+        "PITHOS": "ΣΡλίδα στον Pithos+",
         "SETTINGS": "ΑυθμίσΡις",
         "SETTINGSOPEN": "Ξ‘Ξ½ΞΏΞΉΟ‡Ο„ΟŒ παράθυρο ρυθμίσΡων",
         "ABOUT": "ΣχΡτικά",
-        "QUIT": "ΞšΞ»Ξ΅Ξ―ΟƒΞΉΞΌΞΏ Άγκυρας"
+        "QUIT": "ΞšΞ»Ξ΅Ξ―ΟƒΞΉΞΌΞΏ Agkyra"
     },
     "NOTIFIER": {
-        "info": "Άγκυρα",
-        "warning": "Άγκυρα - προσοχΞ�!",
-        "error": "Άγκυρα - σφάλμα!"
+        "info": "Agkyra",
+        "warning": "Agkyra - προσοχΞ�!",
+        "error": "Agkyra - σφάλμα!"
     },
     "SETTINGS": {
         "TITLE": "ΑυθμίσΡις χρΞ�στη",
@@ -52,7 +52,7 @@
         "LANGUAGE": "Ξ“Ξ»ΟŽΟƒΟƒΞ±",
         "SYNCONSTART": "Έναρξη συγχρονισμού στην Ρκκίνηση",
         "CLOUD": "Απομακρυσμένο σύστημα (νέφος)",
-        "URL": "URL νέφους",
+        "URL": "ΔιΡύθυνση (URL) νέφους",
         "TOKEN": "ΚλΡιδί token",
         "RETRIEVE": "Είσοδος ΞΌΞ΅ όνομα χρΞ�στη/ΞΊΟ‰Ξ΄ΞΉΞΊΟŒ",
         "SYNC": "΀ι Ξ½Ξ± συγχρονιστΡί",
-- 
GitLab