1
0
Fork 0
Dieser Commit ist enthalten in:
o.pinke 2021-05-06 13:32:45 +02:00
Ursprung cec92525c5
Commit 2475baa7e9
10 geänderte Dateien mit 26 neuen und 25 gelöschten Zeilen

Datei anzeigen

@ -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');

Datei anzeigen

@ -58,7 +58,7 @@ function pica_RenderArticleAction ($idcat, $idart, $idartlang, $actionkey)
if ($actionkey == "con_contentallocation")
{
return '<a title="'.i18n("Content Allocation", "content_allocation").'" alt="'. i18n("Content Allocation", "content_allocation").'" href="'.$sess->url('main.php?area=con_contentallocation&action=con_edit&idart='.$idart.'&idartlang='.$idartlang.'&idcat='.$idcat.'&frame=4').'"><img src="plugins/content_allocation/images/call_contentallocation.gif"></a>';
return '<a title="'.i18n("Content Allocation", "cl-content-allocation").'" alt="'. i18n("Content Allocation", "cl-content-allocation").'" href="'.$sess->url('main.php?area=con_contentallocation&action=con_edit&idart='.$idart.'&idartlang='.$idartlang.'&idcat='.$idcat.'&frame=4').'"><img src="plugins/content_allocation/images/call_contentallocation.gif"></a>';
} else {
return "";

Datei anzeigen

@ -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);

Datei anzeigen

@ -67,7 +67,7 @@ $oTree = new pApiContentAllocationTreeView('f7771624-4874-4745-8b7e-21a49a71a447
// store item
if ($_POST['step'] == 'store') {
$pNotify = '<div style="width:410px;margin-bottom:20px;">';
$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 .= '</div>';
$oTree->storeItem($aPostTreeItem);
@ -75,7 +75,7 @@ if ($_POST['step'] == 'store') {
// rename item
if ($_POST['step'] == 'storeRename') {
$pNotify = '<div style="width:410px;margin-bottom:20px;">';
$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 .= '</div>';
$oTree->storeItem($aPostTreeItem);
@ -87,7 +87,7 @@ if ($_GET['step'] == 'moveup') {
if ($_GET['step'] == 'deleteItem') { // delete item
$pNotify = '<div style="width:410px;margin-bottom:20px;">';
$sMessage = i18n("Category successfully deleted!", "content_allocation");
$sMessage = i18n("Category successfully deleted!", "cl-content-allocation");
$notification->displayNotification("info", $sMessage);
$pNotify .= '</div>';
$oTree->deleteItem($_GET['idpica_alloc']);
@ -116,7 +116,7 @@ if ($_GET['step'] == 'createRoot') { // create new root item
<input type="hidden" name="area" value="' . $area . '" />
<input type="hidden" name="step" value="store" />
<input type="hidden" name="treeItemPost[parentid]" value="root" />
<tr><td colspan="2" class="text_medium">' . i18n("Create new tree", "content_allocation") . '</td></tr>
<tr><td colspan="2" class="text_medium">' . i18n("Create new tree", "cl-content-allocation") . '</td></tr>
<tr>
<td class="text_medium"><input id="itemname" class="text_medium" type="text" name="treeItemPost[name]" value=""></td>
<td>&nbsp;<a href="main.php?action=' . $action . '&frame=' . $frame . '&area=' . $area . '&contenido=' . $sess->id . '"><img src="images/but_cancel.gif" border="0" /></a>
@ -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 = '<a href="main.php?action=' . $action . '&step=createRoot&frame=' . $frame . '&area=' . $area . '&contenido=' . $sess->id . '"><img src="images/folder_new.gif" border="0" style="vertical-align: middle; margin-right: 5px;">' . i18n("Create new tree", "content_allocation") . '</a><div style="height:10px"></div>';
$newTree = '<a href="main.php?action=' . $action . '&step=createRoot&frame=' . $frame . '&area=' . $area . '&contenido=' . $sess->id . '"><img src="images/folder_new.gif" border="0" style="vertical-align: middle; margin-right: 5px;">' . i18n("Create new tree", "cl-content-allocation") . '</a><div style="height:10px"></div>';
}
$result = $oTree->renderTree(true);