diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8fe4fa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.project diff --git a/classes/class.content_allocation_article.php b/classes/class.content_allocation_article.php index c7e571c..a027f8f 100644 --- a/classes/class.content_allocation_article.php +++ b/classes/class.content_allocation_article.php @@ -103,7 +103,7 @@ class pApiContentAllocationArticle extends pApiTree { $this->tpl->next(); } - $this->tpl->set('s', "CATEGORY", i18n("Category", "content_allocation")); + $this->tpl->set('s', "CATEGORY", i18n("Category", "cl-content-allocation")); if ($return === true) { return $this->tpl->generate($this->template, true); diff --git a/classes/class.content_allocation_treeview.php b/classes/class.content_allocation_treeview.php index 517a54f..9962a06 100644 --- a/classes/class.content_allocation_treeview.php +++ b/classes/class.content_allocation_treeview.php @@ -96,7 +96,7 @@ class pApiContentAllocationTreeView extends pApiTree { controller.focus(); function fieldCheck() { if (controller.value == "") { - alert("' . i18n("Please enter a category name", "content_allocation") . '"); + alert("' . i18n("Please enter a category name", "cl-content-allocation") . '"); controller.focus(); return false; } @@ -120,23 +120,23 @@ class pApiContentAllocationTreeView extends pApiTree { } $item['ITEMINDENT'] = $item_tmp['level'] * 15 + 3; - $item['ACTION_CREATE'] = '' . i18n('; + $item['ACTION_CREATE'] = '' . i18n('; - $item['ACTION_RENAME'] = '' . i18n('; - $item['ACTION_MOVE_UP'] = (count($result) >= 1) ? '' . i18n(' : ''; - $item['ACTION_MOVE_DOWN'] = (count($result) >= 1) ? '' . i18n(' : ''; + $item['ACTION_RENAME'] = '' . i18n('; + $item['ACTION_MOVE_UP'] = (count($result) >= 1) ? '' . i18n(' : ''; + $item['ACTION_MOVE_DOWN'] = (count($result) >= 1) ? '' . i18n(' : ''; $item['ACTION_MOVE_DOWN'] = ''; if ($item_tmp['online'] == 1) { // set offline - $item['ACTION_ONOFFLINE'] = '' . i18n('; + $item['ACTION_ONOFFLINE'] = '' . i18n('; } else { - $item['ACTION_ONOFFLINE'] = '' . i18n('; + $item['ACTION_ONOFFLINE'] = '' . i18n('; } if ($item_tmp['children']) { - $item['ACTION_DELETE'] = '' . i18n('; + $item['ACTION_DELETE'] = '' . i18n('; } else { - $item['ACTION_DELETE'] = '
' . str_replace("'", "\'", $item_tmp['name']) . '","deleteCategory(' . $item_tmp['idpica_alloc'] . ')");">' . i18n(
'; + $item['ACTION_DELETE'] = '
' . str_replace("'", "\'", $item_tmp['name']) . '","deleteCategory(' . $item_tmp['idpica_alloc'] . ')");">' . i18n(
'; } array_push($result, $item); @@ -172,7 +172,7 @@ class pApiContentAllocationTreeView extends pApiTree { controller.focus(); function fieldCheck() { if (controller.value == "") { - alert("' . i18n("Please enter a category name", "content_allocation") . '"); + alert("' . i18n("Please enter a category name", "cl-content-allocation") . '"); controller.focus(); return false; } @@ -219,8 +219,8 @@ class pApiContentAllocationTreeView extends pApiTree { $this->tpl->next(); } - $this->tpl->set('s', 'CATEGORY', i18n("Category", "content_allocation")); - $this->tpl->set('s', 'ACTIONS', i18n("Actions", "content_allocation")); + $this->tpl->set('s', 'CATEGORY', i18n("Category", "cl-content-allocation")); + $this->tpl->set('s', 'ACTIONS', i18n("Actions", "cl-content-allocation")); if ($return === true) { return $this->tpl->generate($this->template, true); diff --git a/includes/config.plugin.php b/includes/config.plugin.php index 40ec70b..f82b315 100644 --- a/includes/config.plugin.php +++ b/includes/config.plugin.php @@ -56,7 +56,7 @@ $cfg['pica']['script_complexlist'] = $cfg['path']['contenido_fullhtml'] . $cfg[' // administration > users > area translations global $lngAct, $_cecRegistry; -$lngAct['con_contentallocation']['storeallocation'] = i18n("Store content allocations", "content_allocation"); +$lngAct['con_contentallocation']['storeallocation'] = i18n("Store content allocations", "cl-content-allocation"); plugin_include('content_allocation', 'includes/functions.chains.php'); diff --git a/includes/functions.chains.php b/includes/functions.chains.php index 12c1486..33bbfcc 100644 --- a/includes/functions.chains.php +++ b/includes/functions.chains.php @@ -58,7 +58,7 @@ function pica_RenderArticleAction ($idcat, $idart, $idartlang, $actionkey) if ($actionkey == "con_contentallocation") { - return ''; + return ''; } else { return ""; diff --git a/includes/include.contentallocation_article.php b/includes/include.contentallocation_article.php index 4fbda48..4b478b5 100644 --- a/includes/include.contentallocation_article.php +++ b/includes/include.contentallocation_article.php @@ -36,7 +36,7 @@ if (!defined('CON_FRAMEWORK')) { Contenido_Security::checkRequests(); if (!($perm->have_perm_area_action($area, "storeallocation") || $perm->have_perm_area_action_item($area, "storeallocation", $idcat))) { - $notification->displayNotification("error", i18n("Permission denied", "content_allocation")); + $notification->displayNotification("error", i18n("Permission denied", "cl-content-allocation")); return; } @@ -89,7 +89,7 @@ $oTree->setChecked($loadedAllocations); $result = $oTree->renderTree(true); if ($result == false) { - $result = $notification->returnNotification("warning", i18n('There is no Content Allocation tree.', "content_allocation")); + $result = $notification->returnNotification("warning", i18n('There is no Content Allocation tree.', "cl-content-allocation")); } else { if (!is_object($tpl)) { $tpl = new Template; @@ -116,8 +116,8 @@ if ($result == false) { $tpl->set('s', 'TREE', $result); - $tpl->set('s', 'REMOVE_ALL', i18n("Remove all", "content_allocation")); - $tpl->set('s', 'REMOVE', i18n("Remove", "content_allocation")); + $tpl->set('s', 'REMOVE_ALL', i18n("Remove all", "cl-content-allocation")); + $tpl->set('s', 'REMOVE', i18n("Remove", "cl-content-allocation")); $result = $tpl->generate($cfg['pica']['treetemplate_complexlist'], true); diff --git a/includes/include.right_bottom.php b/includes/include.right_bottom.php index 06a5c35..78fe39c 100644 --- a/includes/include.right_bottom.php +++ b/includes/include.right_bottom.php @@ -67,7 +67,7 @@ $oTree = new pApiContentAllocationTreeView('f7771624-4874-4745-8b7e-21a49a71a447 // store item if ($_POST['step'] == 'store') { $pNotify = '
'; - $sMessage = sprintf(i18n("New Category %s successfully stored!", "content_allocation"), $treeItem['name']); + $sMessage = sprintf(i18n("New Category %s successfully stored!", "cl-content-allocation"), $treeItem['name']); $notification->displayNotification("info", $sMessage); $pNotify .= '
'; $oTree->storeItem($aPostTreeItem); @@ -75,7 +75,7 @@ if ($_POST['step'] == 'store') { // rename item if ($_POST['step'] == 'storeRename') { $pNotify = '
'; - $sMessage = sprintf(i18n("Category %s successfully renamed!", "content_allocation"), $treeItem['name']); + $sMessage = sprintf(i18n("Category %s successfully renamed!", "cl-content-allocation"), $treeItem['name']); $notification->displayNotification("info", $sMessage); $pNotify .= '
'; $oTree->storeItem($aPostTreeItem); @@ -87,7 +87,7 @@ if ($_GET['step'] == 'moveup') { if ($_GET['step'] == 'deleteItem') { // delete item $pNotify = '
'; - $sMessage = i18n("Category successfully deleted!", "content_allocation"); + $sMessage = i18n("Category successfully deleted!", "cl-content-allocation"); $notification->displayNotification("info", $sMessage); $pNotify .= '
'; $oTree->deleteItem($_GET['idpica_alloc']); @@ -116,7 +116,7 @@ if ($_GET['step'] == 'createRoot') { // create new root item - ' . i18n("Create new tree", "content_allocation") . ' + ' . i18n("Create new tree", "cl-content-allocation") . '   @@ -129,7 +129,7 @@ if ($_GET['step'] == 'createRoot') { // create new root item controller.focus(); function fieldCheck() { if (controller.value == "") { - alert("' . i18n("Please enter a category name.", "content_allocation") . '"); + alert("' . i18n("Please enter a category name.", "cl-content-allocation") . '"); controller.focus(); return false; } @@ -139,7 +139,7 @@ if ($_GET['step'] == 'createRoot') { // create new root item $oDiv->setContent($form); $sTemp = $oDiv->render(); } else { - $newTree = '' . i18n("Create new tree", "content_allocation") . '
'; + $newTree = '' . i18n("Create new tree", "cl-content-allocation") . '
'; } $result = $oTree->renderTree(true); diff --git a/locale/content_allocation.pot b/locale/cl-content-allocation.pot similarity index 100% rename from locale/content_allocation.pot rename to locale/cl-content-allocation.pot diff --git a/locale/de_DE/LC_MESSAGES/content_allocation.mo b/locale/de_DE/LC_MESSAGES/cl-content-allocation.mo similarity index 100% rename from locale/de_DE/LC_MESSAGES/content_allocation.mo rename to locale/de_DE/LC_MESSAGES/cl-content-allocation.mo diff --git a/locale/de_DE/LC_MESSAGES/content_allocation.po b/locale/de_DE/LC_MESSAGES/cl-content-allocation.po similarity index 100% rename from locale/de_DE/LC_MESSAGES/content_allocation.po rename to locale/de_DE/LC_MESSAGES/cl-content-allocation.po