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'] = '';
+ $item['ACTION_CREATE'] = '';
- $item['ACTION_RENAME'] = '';
- $item['ACTION_MOVE_UP'] = (count($result) >= 1) ? '' : '';
- $item['ACTION_MOVE_DOWN'] = (count($result) >= 1) ? '' : '';
+ $item['ACTION_RENAME'] = '';
+ $item['ACTION_MOVE_UP'] = (count($result) >= 1) ? '' : '';
+ $item['ACTION_MOVE_DOWN'] = (count($result) >= 1) ? '' : '';
$item['ACTION_MOVE_DOWN'] = '';
if ($item_tmp['online'] == 1) { // set offline
- $item['ACTION_ONOFFLINE'] = '';
+ $item['ACTION_ONOFFLINE'] = '';
} else {
- $item['ACTION_ONOFFLINE'] = '';
+ $item['ACTION_ONOFFLINE'] = '';
}
if ($item_tmp['children']) {
- $item['ACTION_DELETE'] = '';
+ $item['ACTION_DELETE'] = '';
} else {
- $item['ACTION_DELETE'] = '
' . str_replace("'", "\'", $item_tmp['name']) . '","deleteCategory(' . $item_tmp['idpica_alloc'] . ')");">';
+ $item['ACTION_DELETE'] = '
' . str_replace("'", "\'", $item_tmp['name']) . '","deleteCategory(' . $item_tmp['idpica_alloc'] . ')");">';
}
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 = '