summaryrefslogtreecommitdiffstats
path: root/modules-available/baseconfig/hooks/translation.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-10 16:57:06 +0200
committerSimon Rettberg2016-05-10 16:57:06 +0200
commit2fa2bb665d8ca5e837147f85267f865f1b8b0503 (patch)
treeb2e49bb825e1cc421597a681351d04b97c91834c /modules-available/baseconfig/hooks/translation.inc.php
parentMessage string editing works now (diff)
downloadslx-admin-2fa2bb665d8ca5e837147f85267f865f1b8b0503.tar.gz
slx-admin-2fa2bb665d8ca5e837147f85267f865f1b8b0503.tar.xz
slx-admin-2fa2bb665d8ca5e837147f85267f865f1b8b0503.zip
Translating module strings and custom sections works
Diffstat (limited to 'modules-available/baseconfig/hooks/translation.inc.php')
-rw-r--r--modules-available/baseconfig/hooks/translation.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules-available/baseconfig/hooks/translation.inc.php b/modules-available/baseconfig/hooks/translation.inc.php
index 84a6d33a..4f2cd8f7 100644
--- a/modules-available/baseconfig/hooks/translation.inc.php
+++ b/modules-available/baseconfig/hooks/translation.inc.php
@@ -6,7 +6,7 @@ $HANDLER = array();
* List of valid subsections
*/
$HANDLER['subsections'] = array(
- 'categories', 'settings'
+ 'config-variable-categories', 'config-variables'
);
/*
@@ -17,11 +17,11 @@ $HANDLER['subsections'] = array(
/**
* Configuration categories
*/
-$HANDLER['grep']['categories'] = function($module) {
+$HANDLER['grep_config-variable-categories'] = function($module) {
$want = array();
$res = Database::simpleQuery("SELECT catid FROM cat_setting ORDER BY catid ASC");
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
- $want[] = 'cat_' . $row['catid'];
+ $want['cat_' . $row['catid']] = true;
}
return $want;
};
@@ -29,11 +29,11 @@ $HANDLER['grep']['categories'] = function($module) {
/**
* Configuration variables
*/
-$HANDLER['grep']['settings'] = function($module) {
+$HANDLER['grep_config-variables'] = function($module) {
$want = array();
$res = Database::simpleQuery("SELECT setting FROM setting ORDER BY setting ASC");
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
- $want[] = $row['setting'];
+ $want[$row['setting']] = true;
}
return $want;
};