summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraul2014-07-14 15:57:21 +0200
committerraul2014-07-14 15:57:21 +0200
commita0d6b81c1c8009493c6b20ab1f7e04a048ab1097 (patch)
treee1f318b4f3cdc7ba5d81a25e80f41853ffbf1114
parentXMerge branch 'i18n' of gitlab.c3sl.ufpr.br:cdn/slx-admin into i18n (diff)
downloadslx-admin-a0d6b81c1c8009493c6b20ab1f7e04a048ab1097.tar.gz
slx-admin-a0d6b81c1c8009493c6b20ab1f7e04a048ab1097.tar.xz
slx-admin-a0d6b81c1c8009493c6b20ab1f7e04a048ab1097.zip
[i18n] Updated the translations
-rw-r--r--lang/de/messages-hardcoded.json10
-rw-r--r--lang/de/messages.json2
-rw-r--r--lang/de/sysconfig/_page.json (renamed from lang/de/page-sysconfig-main.json)0
-rw-r--r--lang/de/sysconfig/branding-check.json5
-rw-r--r--lang/de/sysconfig/branding-start.json7
-rw-r--r--lang/en/messages-hardcoded.json10
-rw-r--r--lang/en/messages.json2
-rw-r--r--lang/en/page-minilinux.json2
-rw-r--r--lang/en/sysconfig/_page.json (renamed from lang/en/page-sysconfig-main.json)0
-rw-r--r--lang/en/sysconfig/branding-check.json5
-rw-r--r--lang/en/sysconfig/branding-start.json7
-rw-r--r--lang/pt/messages-hardcoded.json10
-rw-r--r--lang/pt/messages.json2
-rw-r--r--lang/pt/page-minilinux.json2
-rw-r--r--lang/pt/sysconfig/_page.json (renamed from lang/pt/page-sysconfig-main.json)0
-rw-r--r--lang/pt/sysconfig/branding-check.json5
-rw-r--r--lang/pt/sysconfig/branding-start.json7
-rw-r--r--lang/pt/sysconfig/cfg-start.json2
-rw-r--r--modules/adduser.inc.php2
-rw-r--r--modules/serversetup.inc.php2
-rw-r--r--modules/session.inc.php2
-rw-r--r--modules/sysconfig.inc.php4
-rw-r--r--modules/sysconfig/addmodule_branding.inc.php7
-rw-r--r--templates/sysconfig/branding-check.html10
-rw-r--r--templates/sysconfig/branding-start.html12
25 files changed, 85 insertions, 32 deletions
diff --git a/lang/de/messages-hardcoded.json b/lang/de/messages-hardcoded.json
index 0de5003d..cecb66ca 100644
--- a/lang/de/messages-hardcoded.json
+++ b/lang/de/messages-hardcoded.json
@@ -9,5 +9,13 @@
"lang_addCustomModuleInfo":"Mit einem Erweiterten Modul ist es möglich, beliebige Dateien zum Grundsystem hinzuzufügen Nutzen Sie dieses Modul, um z.B. spezielle Konfigurationsdateien auf den Client PCs zu verwenden, die sich nicht mit einem der anderen Wizards erstellen lässt. Das Hinzufügen eines Erweiterten Moduls erfordert in der Regel zumindest grundlegende Systemkenntnisse im Linuxbereich.",
"lang_addCustomModule":"Eigenes Modul hinzufügen",
"lang_days":"Tag(e)",
- "lang_hours":"Stunde(n)"
+ "lang_hours":"Stunde(n)",
+ "lang_specificLogo":"Einrichtungsspezifisches Logo",
+ "lang_institutionLogo":"Logo der Einrichtung",
+ "lang_infoLogo":"Dieses Modul dient dem Hinzufügen eines Logos der Hochschule/Universität, welches dann z.B. auf dem Anmeldebildschirm angezeigt wird.",
+ "lang_location":"Lokalisierung",
+ "lang_contentOf":"Inhalt von \"",
+ "lang_serverConfiguration":"Serverseitige Konfiguration",
+ "lang_login":"Anmelden",
+ "lang_createUser":"Benutzer anlegen"
}
diff --git a/lang/de/messages.json b/lang/de/messages.json
index 21c5316f..2947db55 100644
--- a/lang/de/messages.json
+++ b/lang/de/messages.json
@@ -32,7 +32,7 @@
"taskmanager-format": "Taskmanager hat ungültige Daten zurückgeliefert",
"task-error": "Ausführung fehlgeschlagen: {{0}}",
"invalid-ip": "Kein Interface ist auf die Adresse {{0}} konfiguriert",
- "news-set-success": "News erfolgreich aktualisiert",
+ "news-save-success": "News erfolgreich aktualisiert",
"news-empty": "Es wurde keine News in der Datenbank gefunden",
"news-del-success": "News gelöscht",
"reboot-unconfirmed": "Sicherheitsabfrage zum Reboot nicht bestätigt"
diff --git a/lang/de/page-sysconfig-main.json b/lang/de/sysconfig/_page.json
index 8405a5d0..8405a5d0 100644
--- a/lang/de/page-sysconfig-main.json
+++ b/lang/de/sysconfig/_page.json
diff --git a/lang/de/sysconfig/branding-check.json b/lang/de/sysconfig/branding-check.json
new file mode 100644
index 00000000..68fdb9d4
--- /dev/null
+++ b/lang/de/sysconfig/branding-check.json
@@ -0,0 +1,5 @@
+{
+ "lang_brandingInfo":"Unten sehen Sie zur Kontrolle noch einmal das ausgewählte Logo. Sollten Sie das Logo nicht sehen können, prüfen Sie bitte, ob Sie ein valides SVG-Bild verwendet haben. Alternativ ist es möglich, dass beim Verarbeiten des Bildes ein Fehler auftrat. Sie können daher das Modul trotzdem speichern und testen, ob das Logo im bwLehrpool-System angezeigt wird.",
+ "lang_title":"Titel",
+ "lang_save":"Speichern"
+}
diff --git a/lang/de/sysconfig/branding-start.json b/lang/de/sysconfig/branding-start.json
new file mode 100644
index 00000000..c32a137b
--- /dev/null
+++ b/lang/de/sysconfig/branding-start.json
@@ -0,0 +1,7 @@
+{
+ "lang_branding":"Für beste Ergebnisse sollten Sie ihr Einrichtungslogo im SVG Format hochladen. das SVG-Format ist ein Vektorgrafikformat, was zum Skalieren vorteilhaft ist. Eine Gute Quelle für SVG-Logos von Unis und Hochschulen ist ihr jeweiliger Wikipedia-Artikel.",
+ "lang_or":"oder",
+ "lang_upload":"Hochladen",
+ "lang_urlLoad":"Bild von URL laden",
+ "lang_computerLoad":"Bild von lokalem Rechner hochladen"
+}
diff --git a/lang/en/messages-hardcoded.json b/lang/en/messages-hardcoded.json
index 6f1e6b5b..4b7ba4fa 100644
--- a/lang/en/messages-hardcoded.json
+++ b/lang/en/messages-hardcoded.json
@@ -9,5 +9,13 @@
"lang_addCustomModuleInfo":"With an extended module it is possible to add any files to the basic system that uses this module, for example to use specific configuration files, which can not be created with one of the other Wizards. Adding an Extended module usually requires at least basic knowledge of the Linux system.",
"lang_addCustomModule":"Add Custom Module",
"lang_days":"Day(s)",
- "lang_hours":"Hour(s)"
+ "lang_hours":"Hour(s)",
+ "lang_specificLogo":"Institution Specific Logo",
+ "lang_institutionLogo":"Institution Logo",
+ "lang_infoLogo":"This module is used to add the logo of a College / University, which then, for example, is displayed on the login screen.",
+ "lang_location":"Location",
+ "lang_contentOf":"Content of \"",
+ "lang_serverConfiguration":"Server-side Configuration",
+ "lang_login":"Login",
+ "lang_createUser":"Create User"
}
diff --git a/lang/en/messages.json b/lang/en/messages.json
index 0aecff38..4e70c3a2 100644
--- a/lang/en/messages.json
+++ b/lang/en/messages.json
@@ -32,7 +32,7 @@
"taskmanager-format": "Task Manager has returned invalid data",
"task-error": "Execution failed: {{0}}",
"invalid-ip": "No interface is configured with the address {{0}}",
- "news-set-success": "News updated successfully",
+ "news-save-success": "News updated successfully",
"news-empty": "There was no news found in the database",
"news-del-success": "News deleted",
"reboot-unconfirmed": "Confirmation prompt to reboot not confirmed"
diff --git a/lang/en/page-minilinux.json b/lang/en/page-minilinux.json
index 885a4d5c..2841f528 100644
--- a/lang/en/page-minilinux.json
+++ b/lang/en/page-minilinux.json
@@ -1,3 +1,3 @@
{
- "lang_listObtained":"List is obtained..."
+ "lang_listObtained":"List is being obtained..."
}
diff --git a/lang/en/page-sysconfig-main.json b/lang/en/sysconfig/_page.json
index 1d33c98d..1d33c98d 100644
--- a/lang/en/page-sysconfig-main.json
+++ b/lang/en/sysconfig/_page.json
diff --git a/lang/en/sysconfig/branding-check.json b/lang/en/sysconfig/branding-check.json
new file mode 100644
index 00000000..8b64e362
--- /dev/null
+++ b/lang/en/sysconfig/branding-check.json
@@ -0,0 +1,5 @@
+{
+ "lang_brandingInfo":"Below you can check the selected logo. If you can not see the logo, please check whether you have used a valid SVG image. Alternatively, it is possible that during processing of the image, an error occurred. Therefore, you can save the module anyway and test whether the logo is displayed in the bwLehrpool system.",
+ "lang_title":"Title",
+ "lang_save":"Save"
+}
diff --git a/lang/en/sysconfig/branding-start.json b/lang/en/sysconfig/branding-start.json
new file mode 100644
index 00000000..4e62d4e4
--- /dev/null
+++ b/lang/en/sysconfig/branding-start.json
@@ -0,0 +1,7 @@
+{
+ "lang_branding":"For best results, you should upload the logo in SVG format. SVG is a vector graphics format, which is advantageous for scaling. A good source for SVG logos of universities and colleges is their respective Wikipedia article.",
+ "lang_or":"or",
+ "lang_upload":"Upload",
+ "lang_urlLoad":"Load image from URL",
+ "lang_computerLoad":"Load image from local computer"
+}
diff --git a/lang/pt/messages-hardcoded.json b/lang/pt/messages-hardcoded.json
index 36cae997..3e20e813 100644
--- a/lang/pt/messages-hardcoded.json
+++ b/lang/pt/messages-hardcoded.json
@@ -8,5 +8,13 @@
"lang_generic":"Genérico",
"lang_addCustomModuleInfo":"Com um módulo estendido, é possível adicionar os arquivos para o sistema básico que usa este módulo, por exemplo, para usar arquivos de configuração específicas, que não podem ser criados com um dos outros assistentes. Adicionar um módulo estendido normalmente exige pelo menos um conhecimento básico do sistema Linux.",
"lang_days":"Dia(s)",
- "lang_hours":"Hora(s)"
+ "lang_hours":"Hora(s)",
+ "lang_specificLogo":"Logotipo Específico da Instituição",
+ "lang_institutionLogo":"Logotipo da Instituição",
+ "lang_infoLogo":"Este módulo é usado para adicionar o logotipo de uma faculdade / universidade, que então, por exemplo, é exibido na tela de login.",
+ "lang_location":"Localização",
+ "lang_contentOf":"Conteúdo de \"",
+ "lang_serverConfiguration":"Configuração do servidor",
+ "lang_login":"Entrar",
+ "lang_createUser":"Criar Usuário"
}
diff --git a/lang/pt/messages.json b/lang/pt/messages.json
index 8ce40161..345a5398 100644
--- a/lang/pt/messages.json
+++ b/lang/pt/messages.json
@@ -32,7 +32,7 @@
"taskmanager-format": "Gerenciador de Tarefas retornou dados inválidos",
"task-error": "Falha na execução: {{0}}",
"invalid-ip": "Nenhuma interface está configurada com o endereço {{0}}",
- "news-set-success": "Notícia atualizada com sucesso",
+ "news-save-success": "Notícia atualizada com sucesso",
"news-empty": "Não havia notícias no banco de dados",
"news-del-success": "Notícia excluída",
"reboot-unconfirmed": "Confirmação para reinicializar não foi confirmada"
diff --git a/lang/pt/page-minilinux.json b/lang/pt/page-minilinux.json
index 3d986230..0f5aa3d1 100644
--- a/lang/pt/page-minilinux.json
+++ b/lang/pt/page-minilinux.json
@@ -1,3 +1,3 @@
{
- "lang_listObtained":"A lista é obtida..."
+ "lang_listObtained":"A lista está sendo obtida..."
}
diff --git a/lang/pt/page-sysconfig-main.json b/lang/pt/sysconfig/_page.json
index e40a277d..e40a277d 100644
--- a/lang/pt/page-sysconfig-main.json
+++ b/lang/pt/sysconfig/_page.json
diff --git a/lang/pt/sysconfig/branding-check.json b/lang/pt/sysconfig/branding-check.json
new file mode 100644
index 00000000..756a042b
--- /dev/null
+++ b/lang/pt/sysconfig/branding-check.json
@@ -0,0 +1,5 @@
+{
+ "lang_brandingInfo":"Abaixo você pode conferir o logotipo selecionado. Se você não pode ver o logotipo, por favor, verifique se você usou uma imagem SVG válido. Alternativamente, é possível que durante o processamento da imagem, ocorreu um erro. Portanto, você pode salvar o módulo de qualquer maneira e testar se o logotipo é exibido no sistema bwLehrpool.",
+ "lang_title":"Título",
+ "lang_save":"Salvar"
+}
diff --git a/lang/pt/sysconfig/branding-start.json b/lang/pt/sysconfig/branding-start.json
new file mode 100644
index 00000000..1ad35759
--- /dev/null
+++ b/lang/pt/sysconfig/branding-start.json
@@ -0,0 +1,7 @@
+{
+ "lang_branding":"Para melhores resultados, você deve fazer o upload do logotipo em formato SVG. SVG é um formato de gráficos vetoriais, o que é vantajoso para a ampliação. Uma boa fonte para logotipos SVG das universidades e faculdades é o seu respectivo artigo da Wikipedia.",
+ "lang_or":"ou",
+ "lang_upload":"Enviar",
+ "lang_urlLoad":"Carregar imagem a partir de uma URL",
+ "lang_computerLoad":"Carregar imagem do computador local "
+}
diff --git a/lang/pt/sysconfig/cfg-start.json b/lang/pt/sysconfig/cfg-start.json
index 6ced354f..f838700d 100644
--- a/lang/pt/sysconfig/cfg-start.json
+++ b/lang/pt/sysconfig/cfg-start.json
@@ -3,5 +3,5 @@
"lang_configuration":"Configuração",
"lang_configurationChoose":"Por favor, selecione qual os módulos serão usados ​​para esta configuração.",
"lang_new":"Nova",
- "lang_next":"Próxiimo"
+ "lang_next":"Próximo"
}
diff --git a/modules/adduser.inc.php b/modules/adduser.inc.php
index cf224531..db1b6f27 100644
--- a/modules/adduser.inc.php
+++ b/modules/adduser.inc.php
@@ -48,7 +48,7 @@ class Page_AddUser extends Page
Message::addError('adduser-disabled');
} else {
- Render::setTitle('Benutzer anlegen');
+ Render::setTitle(Dictionary::translate('lang_createUser'));
Render::addTemplate('page-adduser', $_POST);
}
diff --git a/modules/serversetup.inc.php b/modules/serversetup.inc.php
index 527c0940..b13fc90d 100644
--- a/modules/serversetup.inc.php
+++ b/modules/serversetup.inc.php
@@ -39,7 +39,7 @@ class Page_ServerSetup extends Page
protected function doRender()
{
- Render::setTitle('Serverseitige Konfiguration');
+ Render::setTitle(Dictionary::translate('lang_serverConfiguration'));
Render::addTemplate('serversetup/ipaddress', array(
'ips' => $this->taskStatus['data']['addresses']
diff --git a/modules/session.inc.php b/modules/session.inc.php
index aa7719ab..97cd51d9 100644
--- a/modules/session.inc.php
+++ b/modules/session.inc.php
@@ -34,7 +34,7 @@ class Page_Session extends Page
protected function doRender()
{
if ($_REQUEST['action'] === 'login') {
- Render::setTitle('Anmelden');
+ Render::setTitle(Dictionary::translate('lang_login'));
Render::addTemplate('page-login');
return;
}
diff --git a/modules/sysconfig.inc.php b/modules/sysconfig.inc.php
index 8be001e6..f873fe9e 100644
--- a/modules/sysconfig.inc.php
+++ b/modules/sysconfig.inc.php
@@ -96,7 +96,7 @@ class Page_SysConfig extends Page
*/
protected function doRender()
{
- Render::setTitle('Lokalisierung');
+ Render::setTitle(Dictionary::translate('lang_location'));
$action = Request::any('action', 'list');
switch ($action) {
@@ -199,7 +199,7 @@ class Page_SysConfig extends Page
// render the template
- Render::addDialog('Inhalt von "' . $row['title'] . '"', false, 'sysconfig/custom-filelist', array(
+ Render::addDialog(Dictionary::translate('lang_contentOf') . $row['title'] . '"', false, 'sysconfig/custom-filelist', array(
'files' => $list,
));
}
diff --git a/modules/sysconfig/addmodule_branding.inc.php b/modules/sysconfig/addmodule_branding.inc.php
index 6515a850..de176230 100644
--- a/modules/sysconfig/addmodule_branding.inc.php
+++ b/modules/sysconfig/addmodule_branding.inc.php
@@ -4,8 +4,7 @@
* Wizard for including a branding logo.
*/
-Page_SysConfig::addModule('BRANDING', 'Branding_Start', 'Logo der Einrichtung', 'Dieses Modul dient dem Hinzufügen eines Logos der Hochschule/Universität, welches'
- . ' dann z.B. auf dem Anmeldebildschirm angezeigt wird.', 'Branding', false
+Page_SysConfig::addModule('BRANDING', 'Branding_Start', Dictionary::translate('lang_institutionLogo'), Dictionary::translate('lang_institutionLogo'), 'Branding', false
);
class Branding_Start extends AddModule_Base
@@ -13,7 +12,7 @@ class Branding_Start extends AddModule_Base
protected function renderInternal()
{
- Render::addDialog('Einrichtungsspezifisches Logo', false, 'sysconfig/branding-start', array(
+ Render::addDialog(Dictionary::translate('lang_specificLogo'), false, 'sysconfig/branding-start', array(
'step' => 'Branding_ProcessFile',
));
}
@@ -76,7 +75,7 @@ class Branding_ProcessFile extends AddModule_Base
$png = base64_encode(file_get_contents($this->task['data']['pngFile']));
if (filesize($this->svgFile) < 1000000)
$svg = base64_encode(file_get_contents($this->svgFile));
- Render::addDialog('Einrichtungsspezifisches Logo', false, 'sysconfig/branding-check', array(
+ Render::addDialog(Dictionary::translate('lang_specificLogo'), false, 'sysconfig/branding-check', array(
'png' => $png,
'svg' => $svg,
'error' => $this->task['data']['error'],
diff --git a/templates/sysconfig/branding-check.html b/templates/sysconfig/branding-check.html
index 93be4f2d..52c70cd0 100644
--- a/templates/sysconfig/branding-check.html
+++ b/templates/sysconfig/branding-check.html
@@ -1,9 +1,5 @@
<p>
- Unten sehen Sie zur Kontrolle noch einmal das ausgewählte Logo. Sollten Sie das Logo
- nicht sehen können, prüfen Sie bitte, ob Sie ein valides SVG-Bild verwendet haben.
- Alternativ ist es möglich, dass beim Verarbeiten des Bildes ein Fehler auftrat. Sie
- können daher das Modul trotzdem speichern und testen, ob das Logo im bwLehrpool-System
- angezeigt wird.
+ {{lang_brandingInfo}}
</p>
<div class="pull-left">
{{#svg}}
@@ -21,9 +17,9 @@
<form role="form" enctype="multipart/form-data" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
<input type="hidden" name="token" value="{{token}}">
<div class="form-group">
- <label for="title-id">Titel</label>
+ <label for="title-id">{{lang_title}}</label>
<input type="text" name="title" id ="title-id" class="form-control" placeholder="Name des Moduls">
</div>
- <button type="submit" class="btn btn-primary">Speichern</button>
+ <button type="submit" class="btn btn-primary">{{lang_save}}</button>
</form>
</div>
diff --git a/templates/sysconfig/branding-start.html b/templates/sysconfig/branding-start.html
index d26a5dee..7b22a3fd 100644
--- a/templates/sysconfig/branding-start.html
+++ b/templates/sysconfig/branding-start.html
@@ -1,19 +1,17 @@
<p>
- Für beste Ergebnisse sollten Sie ihr Einrichtungslogo im SVG Format hochladen.
- das SVG-Format ist ein Vektorgrafikformat, was zum Skalieren vorteilhaft ist.
- Eine Gute Quelle für SVG-Logos von Unis und Hochschulen ist ihr jeweiliger Wikipedia-Artikel.
+ {{lang_branding}}
</p>
<form role="form" enctype="multipart/form-data" method="post" action="?do=SysConfig&amp;action=addmodule&amp;step={{step}}">
<input type="hidden" name="token" value="{{token}}">
<div class="form-group">
- <label for="input-url">Bild von URL laden</label>
+ <label for="input-url">{{lang_urlLoad}}</label>
<input class="form-control" type="text" name="url" id="input-url">
</div>
- oder
+ {{lang_or}}
<div class="form-group">
- <label for="input-file">Bild von lokalem Rechner hochladen</label>
+ <label for="input-file">{{lang_computerLoad}}</label>
<input class="form-control" type="file" name="file" id="input-file">
</div>
- <button type="submit" class="btn btn-primary">Hochladen</button>
+ <button type="submit" class="btn btn-primary">{{lang_upload}}</button>
</form>