summaryrefslogtreecommitdiffstats
path: root/modules-available/main
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-10 19:17:28 +0200
committerSimon Rettberg2016-05-10 19:17:28 +0200
commita79bbfa1a23838b91e9a08f7014c2c7304976714 (patch)
treefafb56190707d10b01cb282bc14b99156e100dcb /modules-available/main
parentTranslating module strings and custom sections works (diff)
downloadslx-admin-a79bbfa1a23838b91e9a08f7014c2c7304976714.tar.gz
slx-admin-a79bbfa1a23838b91e9a08f7014c2c7304976714.tar.xz
slx-admin-a79bbfa1a23838b91e9a08f7014c2c7304976714.zip
Migrated messages to modules
Diffstat (limited to 'modules-available/main')
-rw-r--r--modules-available/main/hooks/translation.inc.php15
-rw-r--r--modules-available/main/lang/de/global-tags.json4
-rw-r--r--modules-available/main/lang/de/messages.json12
-rw-r--r--modules-available/main/lang/en/global-tags.json4
-rw-r--r--modules-available/main/lang/en/messages.json12
-rw-r--r--modules-available/main/lang/pt/messages.json12
6 files changed, 58 insertions, 1 deletions
diff --git a/modules-available/main/hooks/translation.inc.php b/modules-available/main/hooks/translation.inc.php
index 8c0e4b51..c831cbfd 100644
--- a/modules-available/main/hooks/translation.inc.php
+++ b/modules-available/main/hooks/translation.inc.php
@@ -6,7 +6,7 @@ $HANDLER = array();
* List of valid subsections
*/
$HANDLER['subsections'] = array(
- 'categories'
+ 'categories', 'global-tags'
);
/*
@@ -28,3 +28,16 @@ $HANDLER['grep_categories'] = function($module) {
}
return $want;
};
+
+/**
+ * Global tags.
+ * This just returns the union of global tags of all languages, as there is no
+ * way to define a definite set of required global tags.
+ */
+$HANDLER['grep_global-tags'] = function($module) {
+ $want = array();
+ foreach (Dictionary::getLanguages() as $lang) {
+ $want += Dictionary::getArray($module->getIdentifier(), 'global-tags', $lang);
+ }
+ return $want;
+};
diff --git a/modules-available/main/lang/de/global-tags.json b/modules-available/main/lang/de/global-tags.json
new file mode 100644
index 00000000..c36347fe
--- /dev/null
+++ b/modules-available/main/lang/de/global-tags.json
@@ -0,0 +1,4 @@
+{
+ "lang_today": "Heute",
+ "lang_yesterday": "Gestern"
+} \ No newline at end of file
diff --git a/modules-available/main/lang/de/messages.json b/modules-available/main/lang/de/messages.json
new file mode 100644
index 00000000..ec645d05
--- /dev/null
+++ b/modules-available/main/lang/de/messages.json
@@ -0,0 +1,12 @@
+{
+ "no-permission": "Keine ausreichenden Rechte, um auf diese Seite zuzugreifen",
+ "error-write": "Fehler beim Schreiben von {{0}}",
+ "empty-field": "Ein Feld wurde nicht ausgef\u00fcllt",
+ "value-invalid": "Der Wert {{1}} ist ung\u00fcltig f\u00fcr die Option {{0}} und wurde ignoriert",
+ "error-read": "Fehler beim Lesen von {{0}}",
+ "taskmanager-error": "Verbindung zum Taskmanager fehlgeschlagen",
+ "task-error": "Ausf\u00fchrung fehlgeschlagen: {{0}}",
+ "taskmanager-format": "Taskmanager hat ung\u00fcltige Daten zur\u00fcckgeliefert",
+ "token": "Ung\u00fcltiges Token. CSRF Angriff?",
+ "debug-mode": "Der Debug-Modus ist aktiv!"
+} \ No newline at end of file
diff --git a/modules-available/main/lang/en/global-tags.json b/modules-available/main/lang/en/global-tags.json
new file mode 100644
index 00000000..f5fbed61
--- /dev/null
+++ b/modules-available/main/lang/en/global-tags.json
@@ -0,0 +1,4 @@
+{
+ "lang_today": "Today",
+ "lang_yesterday": "Yesterday"
+} \ No newline at end of file
diff --git a/modules-available/main/lang/en/messages.json b/modules-available/main/lang/en/messages.json
new file mode 100644
index 00000000..f3e97b77
--- /dev/null
+++ b/modules-available/main/lang/en/messages.json
@@ -0,0 +1,12 @@
+{
+ "no-permission": "No sufficient privileges to access this page",
+ "error-write": "Failed to write {{0}}",
+ "empty-field": "A field was not filled",
+ "value-invalid": "The value {{1}} is invalid for option {{0}} and has been ignored",
+ "error-read": "Error reading {{0}}",
+ "taskmanager-error": "Failed to connect to the Task Manager",
+ "task-error": "Execution failed: {{0}}",
+ "taskmanager-format": "Task Manager has returned invalid data",
+ "token": "Invalid token. CSRF attack?",
+ "debug-mode": "The debug mode is active!"
+} \ No newline at end of file
diff --git a/modules-available/main/lang/pt/messages.json b/modules-available/main/lang/pt/messages.json
new file mode 100644
index 00000000..c716bcfd
--- /dev/null
+++ b/modules-available/main/lang/pt/messages.json
@@ -0,0 +1,12 @@
+{
+ "no-permission": "N\u00e3o h\u00e1 privil\u00e9gios suficientes para acessar essa p\u00e1gina",
+ "error-write": "Erro ao escrever {{0}}",
+ "empty-field": "Um campo n\u00e3o foi preenchido",
+ "value-invalid": "O valor {{1}} \u00e9 inv\u00e1lido para op\u00e7\u00e3o {{0}} e foi ignorado",
+ "error-read": "Erro ao ler {{0}}",
+ "taskmanager-error": "Falha ao conectar-se ao Gerenciador de Tarefas",
+ "task-error": "Falha na execu\u00e7\u00e3o: {{0}}",
+ "taskmanager-format": "Gerenciador de Tarefas retornou dados inv\u00e1lidos",
+ "token": "Token inv\u00e1lido. Ataque CSRF?",
+ "debug-mode": "O modo de depura\u00e7\u00e3o est\u00e1 ativo!"
+} \ No newline at end of file