summaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-02 18:46:24 +0200
committerSimon Rettberg2014-09-02 18:46:24 +0200
commit32f22e10ff63a555e5b80207dc524390aa4bc6c1 (patch)
tree702a01c3ba1dc2a5ca6ebc4a7810005a8c76a16f /lang
parent[Render] Show untranslated tags in rendered output (diff)
downloadslx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.tar.gz
slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.tar.xz
slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.zip
[i18n] Language handling is now completely dynamic, no more hardcoded de,en,pt
Diffstat (limited to 'lang')
-rw-r--r--lang/de/messages.json1
-rw-r--r--lang/de/name.txt1
-rw-r--r--lang/de/templates/translation/_page.json8
-rw-r--r--lang/de/templates/translation/edit.json (renamed from lang/de/templates/translation/template.json)3
-rw-r--r--lang/de/templates/translation/messages.json17
-rw-r--r--lang/en/messages.json1
-rw-r--r--lang/en/name.txt1
-rw-r--r--lang/en/templates/translation/_page.json8
-rw-r--r--lang/en/templates/translation/edit.json (renamed from lang/en/templates/translation/template.json)3
-rw-r--r--lang/en/templates/translation/messages.json17
-rw-r--r--lang/pt/messages.json1
-rw-r--r--lang/pt/name.txt1
-rw-r--r--lang/pt/templates/translation/_page.json8
-rw-r--r--lang/pt/templates/translation/edit.json (renamed from lang/pt/templates/translation/template.json)3
-rw-r--r--lang/pt/templates/translation/messages.json17
15 files changed, 18 insertions, 72 deletions
diff --git a/lang/de/messages.json b/lang/de/messages.json
index db10fbad..9ffbc24e 100644
--- a/lang/de/messages.json
+++ b/lang/de/messages.json
@@ -18,6 +18,7 @@
"invalid-action": "Ung\u00fcltige Aktion: {{0}}",
"invalid-file": "Die Datei {{0}} existiert nicht!",
"invalid-ip": "Kein Interface ist auf die Adresse {{0}} konfiguriert",
+ "invalid-path": "",
"invalid-template": "Ausgew\u00e4hlte Template ist nicht g\u00fcltig",
"loginfail": "Benutzername oder Kennwort falsch",
"missing-file": "Es wurde keine Datei ausgew\u00e4hlt!",
diff --git a/lang/de/name.txt b/lang/de/name.txt
new file mode 100644
index 00000000..176e5370
--- /dev/null
+++ b/lang/de/name.txt
@@ -0,0 +1 @@
+Deutsch \ No newline at end of file
diff --git a/lang/de/templates/translation/_page.json b/lang/de/templates/translation/_page.json
index 94e448c2..1e59df52 100644
--- a/lang/de/templates/translation/_page.json
+++ b/lang/de/templates/translation/_page.json
@@ -1,8 +1,8 @@
{
"lang_adminInfo": "In diesem Abschnitt k\u00f6nnen Sie die JSON-Tags, die \u00fcbersetzten Texte durch die Website verwendet wird, enth\u00e4lt zu \u00e4ndern. Um dies zu tun, w\u00e4hlen Sie eine Vorlage aus, um ihre jeweiligen Tags \u00e4ndern. Alternativ klicken Sie auf den Link unten, um die Nachrichten der Website \u00e4ndern.",
+ "lang_editHardcoded": "Hardcoded-Texte bearbeiten",
"lang_editMessages": "Nachrichten bearbeiten",
- "lang_english": "Englisch",
- "lang_german": "Deutsch",
- "lang_langAdministration": "Sprache Verwaltung",
- "lang_portuguese": "Portuguiesisch"
+ "lang_editSettings": "Einstellungs-Texte bearbeiten",
+ "lang_editTemplates": "Template-Texte bearbeiten",
+ "lang_langAdministration": "Sprache Verwaltung"
} \ No newline at end of file
diff --git a/lang/de/templates/translation/template.json b/lang/de/templates/translation/edit.json
index 8f3dfb66..c2c6b755 100644
--- a/lang/de/templates/translation/template.json
+++ b/lang/de/templates/translation/edit.json
@@ -2,12 +2,9 @@
"lang_back": "Z\u00fcruck",
"lang_createTag": "TAG schafen",
"lang_deleteTAG": "L\u00f6schen",
- "lang_englishJSON": "Englisch JSON",
"lang_englishTAG": "Englisch TAG",
- "lang_germanJSON": "Deutsch JSON",
"lang_germanTAG": "Deutsch TAG",
"lang_newTAG": "Neue Tag",
- "lang_portugueseJSON": "Portugiesisch JSON",
"lang_portugueseTAG": "Portugiesisch TAG",
"lang_save": "Speichern",
"lang_templateAdminHelp": "",
diff --git a/lang/de/templates/translation/messages.json b/lang/de/templates/translation/messages.json
deleted file mode 100644
index 656c7e15..00000000
--- a/lang/de/templates/translation/messages.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "lang_back": "Z\u00fcruck",
- "lang_deleteTAG": "L\u00f6schen",
- "lang_englishJSON": "Englisch JSON",
- "lang_englishTAG": "Englisch TAG",
- "lang_germanJSON": "Deutsch JSON",
- "lang_germanTAG": "Deutsch TAG",
- "lang_messages": "Nachrichten",
- "lang_messagesHardcoded": "Hardcoded Nachrichten",
- "lang_newTAG": "Neuer Tag",
- "lang_newTag": "Neue Nachricht",
- "lang_portugueseJSON": "Portugiesisch JSON",
- "lang_portugueseTAG": "Portugiesisch TAG",
- "lang_save": "Speichern",
- "lang_templateHint": "Hinweis: Gelbe Linien zeigen eine \u00dcbersetzung fehlt und roten Linien zeigen ein Tag wird nicht von der Vorlage verwendet.",
- "lang_templateMessagesHelp": ""
-} \ No newline at end of file
diff --git a/lang/en/messages.json b/lang/en/messages.json
index a300cff7..3302545c 100644
--- a/lang/en/messages.json
+++ b/lang/en/messages.json
@@ -18,6 +18,7 @@
"invalid-action": "Invalid action: {{0}}",
"invalid-file": "The file {{0}} does not exist!",
"invalid-ip": "No interface is configured with the address {{0}}",
+ "invalid-path": "",
"invalid-template": "Selected template is not valid",
"loginfail": "Username or Password incorrect",
"missing-file": "There was no file selected!",
diff --git a/lang/en/name.txt b/lang/en/name.txt
new file mode 100644
index 00000000..3d38949d
--- /dev/null
+++ b/lang/en/name.txt
@@ -0,0 +1 @@
+English \ No newline at end of file
diff --git a/lang/en/templates/translation/_page.json b/lang/en/templates/translation/_page.json
index 1c84d34c..c9c6020d 100644
--- a/lang/en/templates/translation/_page.json
+++ b/lang/en/templates/translation/_page.json
@@ -1,8 +1,8 @@
{
"lang_adminInfo": "In this section you can change the JSON tags that contains the translated texts used by the site. To do this, select a template below to modify their respective tags. Alternatively, click the link below to change the messages of the site.",
+ "lang_editHardcoded": "Edit hardcoded strings",
"lang_editMessages": "Edit Messages",
- "lang_english": "English",
- "lang_german": "German",
- "lang_langAdministration": "Language Administration",
- "lang_portuguese": "Portuguese"
+ "lang_editSettings": "Edit configuration variables related strings",
+ "lang_editTemplates": "Edit template strings",
+ "lang_langAdministration": "Language Administration"
} \ No newline at end of file
diff --git a/lang/en/templates/translation/template.json b/lang/en/templates/translation/edit.json
index ad07a8b6..ff3f44ca 100644
--- a/lang/en/templates/translation/template.json
+++ b/lang/en/templates/translation/edit.json
@@ -2,12 +2,9 @@
"lang_back": "Back",
"lang_createTag": "Create TAG",
"lang_deleteTAG": "Delete",
- "lang_englishJSON": "English JSON",
"lang_englishTAG": "English TAG",
- "lang_germanJSON": "German JSON",
"lang_germanTAG": "German TAG",
"lang_newTAG": "New TAG",
- "lang_portugueseJSON": "German JSON",
"lang_portugueseTAG": "Portuguese TAG",
"lang_save": "Save",
"lang_templateAdminHelp": "",
diff --git a/lang/en/templates/translation/messages.json b/lang/en/templates/translation/messages.json
deleted file mode 100644
index 433e9cdf..00000000
--- a/lang/en/templates/translation/messages.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "lang_back": "Back",
- "lang_deleteTAG": "Delete",
- "lang_englishJSON": "English JSON",
- "lang_englishTAG": "English TAG",
- "lang_germanJSON": "German JSON",
- "lang_germanTAG": "German TAG",
- "lang_messages": "Messages",
- "lang_messagesHardcoded": "Hardcoded Messages",
- "lang_newTAG": "New TAG",
- "lang_newTag": "New Tag",
- "lang_portugueseJSON": "German JSON",
- "lang_portugueseTAG": "Portuguese TAG",
- "lang_save": "Save",
- "lang_templateHint": "Hint: Yellow lines indicate a translation is missing and red lines indicate a tag is not being used by the template.",
- "lang_templateMessagesHelp": ""
-} \ No newline at end of file
diff --git a/lang/pt/messages.json b/lang/pt/messages.json
index c11497b0..e02f9a1a 100644
--- a/lang/pt/messages.json
+++ b/lang/pt/messages.json
@@ -18,6 +18,7 @@
"invalid-action": "A\u00e7\u00e3o inv\u00e1lida: {{0}}",
"invalid-file": "O arquivo {{0}} n\u00e3o existe!",
"invalid-ip": "Nenhuma interface est\u00e1 configurada com o endere\u00e7o {{0}}",
+ "invalid-path": "",
"invalid-template": "Template selecionado n\u00e3o \u00e9 v\u00e1lido",
"loginfail": "Nome de usu\u00e1rio ou senha incorreta",
"missing-file": "N\u00e3o havia nenhum arquivo selecionado!",
diff --git a/lang/pt/name.txt b/lang/pt/name.txt
new file mode 100644
index 00000000..811b10b4
--- /dev/null
+++ b/lang/pt/name.txt
@@ -0,0 +1 @@
+Português \ No newline at end of file
diff --git a/lang/pt/templates/translation/_page.json b/lang/pt/templates/translation/_page.json
index af575a4d..68043805 100644
--- a/lang/pt/templates/translation/_page.json
+++ b/lang/pt/templates/translation/_page.json
@@ -1,8 +1,8 @@
{
"lang_adminInfo": "Nesta se\u00e7\u00e3o \u00e9 poss\u00edvel alterar as TAGs de JSON que cont\u00e9m os textos traduzidos utilizados no site. Para fazer isto, selecione um template abaixo para modificar suas respectivas TAGs. Alternativamente, clique no link abaixo para alterar as mensagens do site.",
+ "lang_editHardcoded": "",
"lang_editMessages": "Editar Mensagens",
- "lang_english": "Ingl\u00eas",
- "lang_german": "Alem\u00e3o",
- "lang_langAdministration": "Administra\u00e7\u00e3o da L\u00edngua",
- "lang_portuguese": "Portugu\u00eas"
+ "lang_editSettings": "",
+ "lang_editTemplates": "",
+ "lang_langAdministration": "Administra\u00e7\u00e3o da L\u00edngua"
} \ No newline at end of file
diff --git a/lang/pt/templates/translation/template.json b/lang/pt/templates/translation/edit.json
index 008da819..42eb5b28 100644
--- a/lang/pt/templates/translation/template.json
+++ b/lang/pt/templates/translation/edit.json
@@ -2,12 +2,9 @@
"lang_back": "Voltar",
"lang_createTag": "Criar TAG",
"lang_deleteTAG": "Excluir",
- "lang_englishJSON": "JSON Ingl\u00eas",
"lang_englishTAG": "TAG em Ingl\u00eas",
- "lang_germanJSON": "JSON Alem\u00e3o",
"lang_germanTAG": "TAG em Alem\u00e3o",
"lang_newTAG": "Nova TAG",
- "lang_portugueseJSON": "JSON Portugu\u00eas",
"lang_portugueseTAG": "TAG em Portugu\u00eas",
"lang_save": "Salvar",
"lang_templateAdminHelp": "",
diff --git a/lang/pt/templates/translation/messages.json b/lang/pt/templates/translation/messages.json
deleted file mode 100644
index cb5fc59b..00000000
--- a/lang/pt/templates/translation/messages.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "lang_back": "Voltar",
- "lang_deleteTAG": "Excluir",
- "lang_englishJSON": "JSON Ingl\u00eas",
- "lang_englishTAG": "Mensagem em Ingl\u00eas",
- "lang_germanJSON": "JSON Alem\u00e3o",
- "lang_germanTAG": "Mensagem em Alem\u00e3o",
- "lang_messages": "Mensagens",
- "lang_messagesHardcoded": "Mensagens Hardcoded",
- "lang_newTAG": "Nova TAG",
- "lang_newTag": "Nova Mensagem",
- "lang_portugueseJSON": "JSON Portugu\u00eas",
- "lang_portugueseTAG": "Mensagem em Portugu\u00eas",
- "lang_save": "Salvar",
- "lang_templateHint": "Dica: linhas amarelas indicam que uma tradu\u00e7\u00e3o est\u00e1 faltando e linhas vermelhas indicam que uma tag n\u00e3o \u00e9 utilizada pelo template.",
- "lang_templateMessagesHelp": "Aqui \u00e9 poss\u00edvel alterar as mensagens exibidas no site."
-} \ No newline at end of file