Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Translate "Root Group"
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 20, 2015
1 parent 96148ae commit 29fd983
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 5 deletions.
20 changes: 15 additions & 5 deletions core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php
Expand Up @@ -459,6 +459,11 @@ public function switchAction($action, $httpVars, $fileVars)
case "ls":

$rootNodes = $this->getMainTree();
$rootAttributes = array();
if(isSet($rootNodes["__metadata__"])){
$rootAttributes = $rootNodes["__metadata__"];
unset($rootNodes["__metadata__"]);
}
$parentName = "";
$dir = trim(AJXP_Utils::decodeSecureMagic((isset($httpVars["dir"])?$httpVars["dir"]:"")), " /");
if ($dir != "") {
Expand Down Expand Up @@ -512,13 +517,16 @@ public function switchAction($action, $httpVars, $fileVars)
} else {
$parentName = "/";
$nodes = $rootNodes;
if($currentUserIsGroupAdmin){
$rootAttributes["group_admin"] = "1";
}
}
if (isSet($httpVars["file"])) {
$parentName = $httpVars["dir"]."/";
$nodes = array(basename($httpVars["file"]) => array("LABEL" => basename($httpVars["file"])));
}
if (isSet($nodes)) {
AJXP_XMLWriter::header();
AJXP_XMLWriter::header("tree", $rootAttributes);
if(!isSet($httpVars["file"])) AJXP_XMLWriter::sendFilesListComponentConfig('<columns switchDisplayMode="detail"><column messageId="ajxp_conf.1" attributeName="ajxp_label" sortType="String"/><column messageId="ajxp_conf.102" attributeName="description" sortType="String"/></columns>');
foreach ($nodes as $key => $data) {
$this->renderNode($parentName.$key, $data, $mess);
Expand Down Expand Up @@ -594,7 +602,7 @@ public function switchAction($action, $httpVars, $fileVars)
$filteredGroupPath = AuthService::filterBaseGroup($groupPath);
if($filteredGroupPath == "/"){
$roleId = "AJXP_GRP_/";
$groupLabel = "Root Group";
$groupLabel = $mess["ajxp_conf.151"];
$roleGroup = true;
}else{
$groups = AuthService::listChildrenGroups(AJXP_Utils::forwardSlashDirname($groupPath));
Expand Down Expand Up @@ -783,7 +791,7 @@ public function switchAction($action, $httpVars, $fileVars)
}
$groupLabel = $groups[$key];
}else{
$groupLabel = "Root Group";
$groupLabel = $mess["ajxp_conf.151"];
}
$roleGroup = true;
}
Expand Down Expand Up @@ -2287,7 +2295,8 @@ public function listUsers($root, $child, $hashValue = null, $returnNodes = false
"ajxp_mime" => "group",
"object_id" => "/"
);
$xml = AJXP_XMLWriter::renderNode($nodeKey, "Root Group", true, $meta, true, false);
$mess = ConfService::getMessages();
$xml = AJXP_XMLWriter::renderNode($nodeKey, $mess["ajxp_conf.151"], true, $meta, true, false);
if(!$returnNodes) print($xml);
else $allNodes[$nodeKey] = $xml;
}
Expand Down Expand Up @@ -2399,7 +2408,8 @@ public function listRoles($root, $child, $hashValue = null, $returnNodes = false
if(!$this->listSpecialRoles && !$this->getName() == "ajxp_admin"){
$rootGroupRole = AuthService::getRole("AJXP_GRP_/", true);
if($rootGroupRole->getLabel() == "AJXP_GRP_/"){
$rootGroupRole->setLabel("Root Group");
$mess = ConfService::getMessages();
$rootGroupRole->setLabel($mess["ajxp_conf.151"]);
AuthService::updateRole($rootGroupRole);
}
array_unshift($roles, $rootGroupRole);
Expand Down
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/de.php
Expand Up @@ -173,4 +173,6 @@
"148" => "Hook-Definition",
"149" => "Liste aller Hooks mit Informationen, wo und von welchen Erweiterungen diese aufgerufen werden.",
"150" => "Eine Arbeitsumgebung auswählen",
"151" => "Root Group",
"152" => "Root Group Role",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/en.php
Expand Up @@ -172,4 +172,6 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/es.php
Expand Up @@ -172,4 +172,6 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/fi.php
Expand Up @@ -175,5 +175,7 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
/* END SENTENCE */
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/fr.php
Expand Up @@ -172,4 +172,6 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Groupe Racine",
"152" => "Role du groupe racine",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/hu.php
Expand Up @@ -174,5 +174,7 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
/* END SENTENCE */
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/it.php
Expand Up @@ -172,4 +172,6 @@
"148" => "Definizione Trigger",
"149" => "Lista di tutti i trigger innescati nell'applicazione, la loro documentazione, dove sono innescati e quale plugin è in loro ascolto.",
"150" => "Seleziona un repository",
"151" => "Root Group",
"152" => "Root Group Role",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/nl.php
Expand Up @@ -172,5 +172,7 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
);

2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/pt.php
Expand Up @@ -172,4 +172,6 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/ru.php
Expand Up @@ -172,4 +172,6 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
);
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_conf/i18n/si.php
Expand Up @@ -173,4 +173,6 @@
"148" => "Hooks Definitions",
"149" => "List all hooks triggered in the application, their documentation, where there are triggered and which plugin listen to them.",
"150" => "Select a repository",
"151" => "Root Group",
"152" => "Root Group Role",
);

0 comments on commit 29fd983

Please sign in to comment.