Commit 7403afca authored by changi67's avatar changi67

Translate the string and not the variable

parent ce84af40
......@@ -81,7 +81,7 @@ if (is_array($_REQUEST['parentId'])) {
$father = $p_info['parentId'];
$smarty->assign_by_ref('p_info', $p_info);
$canView = $perms->view_category;
$smarty->assign('headtitle', tra($p_info['name']));
$smarty->assign('headtitle', tra($p_info['name'])); //TODO Why translate ?
} else {
$path = tra('TOP');
$father = 0;
......@@ -188,17 +188,17 @@ function add_watch_icons($descendants, $usercatwatches, $requestid, $categid, $d
$watch_this = 'n';
$eyes = $eyesgroup = '';
if ($categid == 0) {
$tip_rem_desc = 'Stop watching all categories';
$tip_add_desc = 'Watch all categories';
$tip_group = 'Group watches for all categories';
$tip_rem_desc = tra('Stop watching all categories');
$tip_add_desc = tra('Watch all categories');
$tip_group = tra('Group watches for all categories');
} else {
$tip_rem_desc = 'Stop watching this category and its descendants';
$tip_add_desc = 'Watch this category and its descendants';
$tip_group = 'Group watches for this category';
$tip_rem_desc = tra('Stop watching this category and its descendants');
$tip_add_desc = tra('Watch this category and its descendants');
$tip_group = tra('Group watches for this category');
}
$eye_rem_desc = '&nbsp;&nbsp;<a href="tiki-browse_categories.php?parentId=' . $requestid . '&amp;watch_event=category_changed&amp;watch_object=' . $categid . '&amp;deep=' . $deep . '&amp;watch_action=remove_desc" class="catname"><img src="pics/icons/no_eye_arrow_down.png" alt="' . tra($tip_rem_desc) . '" style="margin-right:2px" width="14" height="14" title="' . tra($tip_rem_desc) . '" class="catname" /></a>';
$eye_rem_desc = '&nbsp;&nbsp;<a href="tiki-browse_categories.php?parentId=' . $requestid . '&amp;watch_event=category_changed&amp;watch_object=' . $categid . '&amp;deep=' . $deep . '&amp;watch_action=remove_desc" class="catname"><img src="pics/icons/no_eye_arrow_down.png" alt="' . $tip_rem_desc . '" style="margin-right:2px" width="14" height="14" title="' . $tip_rem_desc . '" class="catname" /></a>';
$eye_rem = '<a href="tiki-browse_categories.php?parentId=' . $requestid . '&amp;watch_event=category_changed&amp;watch_object=' . $categid . '&amp;deep=' . $deep . '&amp;watch_action=remove" class="catname"><img src="pics/icons/no_eye.png" alt="'.tra("Stop watching this category").'" width="14" style="margin-right:3px" height="14" title="'.tra("Stop watching this category").'" class="catname" /></a>';
$eye_add_desc = '&nbsp;&nbsp;<a href="tiki-browse_categories.php?parentId=' . $requestid . '&amp;watch_event=category_changed&amp;watch_object=' . $categid . '&amp;deep=' . $deep . '&amp;watch_action=add_desc" class="catname"><img src="pics/icons/eye_arrow_down.png" alt="' . tra($tip_add_desc) . '" style="margin-right:2px" width="14" height="14" title="' . tra($tip_add_desc) . '" class="catname" /></a>';
$eye_add_desc = '&nbsp;&nbsp;<a href="tiki-browse_categories.php?parentId=' . $requestid . '&amp;watch_event=category_changed&amp;watch_object=' . $categid . '&amp;deep=' . $deep . '&amp;watch_action=add_desc" class="catname"><img src="pics/icons/eye_arrow_down.png" alt="' . $tip_add_desc . '" style="margin-right:2px" width="14" height="14" title="' . $tip_add_desc . '" class="catname" /></a>';
$eye_add = '<a href="tiki-browse_categories.php?parentId=' . $requestid . '&amp;watch_event=category_changed&amp;watch_object=' . $categid . '&amp;deep=' . $deep . '&amp;watch_action=add" class="icon"><img src="pics/icons/eye.png" alt="'.tra("Watch this category").'" width="14" style="margin-right:3px;margin-bottom:0.052cm" height="14" title="'.tra("Watch this category").'" class="catname" /></a>';
foreach ($descendants as $descendant) {
if ($nodesc > 1) {
......@@ -245,8 +245,8 @@ function add_watch_icons($descendants, $usercatwatches, $requestid, $categid, $d
}
$eyesgroup = '&nbsp;<a href="tiki-object_watches.php?objectId=' . $categid . '&amp;watch_event=category_changed&amp;objectType=Category&amp;objectName='
. urlencode($objName) . '&amp;objectHref=tiki-browse_categories.php?parentId=' . $categid . '&amp;deep=' . $deep . '" >
<img src="pics/icons/eye_group.png" alt="' . tra($tip_group) . '" width="14" style="margin-bottom:2px" height="14"
title="' . tra($tip_group) . '" class="catname" /></a>';
<img src="pics/icons/eye_group.png" alt="' . $tip_group . '" width="14" style="margin-bottom:2px" height="14"
title="' . $tip_group . '" class="catname" /></a>';
}
return $eyes . $eyesgroup;
}
......@@ -9,6 +9,7 @@ require_once ('tiki-setup.php');
include_once ('lib/pear/XML/Server.php');
include_once ('lib/structures/structlib.php');
// get_strings tra("Send Pages");
$access->check_feature('feature_comm');
$access->check_permission_either( array('tiki_p_send_pages', 'tiki_p_send_articles') );
......@@ -132,8 +133,8 @@ if (isset($_REQUEST['send'])) {
);
$result = $client->send($searchMsg);
if (!$result) {
$errorMsg = 'Cannot login to server maybe the server is down';
$msg.= tra($errorMsg);
$errorMsg = tra('Cannot login to server maybe the server is down');
$msg.= $errorMsg;
} else {
if (!$result->faultCode()) {
$msg.= tra('Page') . ': ' . $spage['pageName'] . ' ' . tra('successfully sent') . '<br />';
......@@ -162,8 +163,8 @@ if (isset($_REQUEST['send'])) {
);
$result = $client->send($searchMsg);
if (!$result) {
$errorMsg = 'Cannot login to server maybe the server is down';
$msg.= tra($errorMsg);
$errorMsg = tra('Cannot login to server maybe the server is down');
$msg.= $errorMsg;
} else {
if (!$result->faultCode()) {
$msg.= tra('Page') . ': ' . $page . ' ' . tra('successfully sent') . '<br />';
......@@ -207,8 +208,8 @@ if (isset($_REQUEST['send'])) {
);
$result = $client->send($searchMsg);
if (!$result) {
$errorMsg = 'Cannot login to server maybe the server is down';
$msg.= tra($errorMsg);
$errorMsg = tra('Cannot login to server maybe the server is down');
$msg.= $errorMsg;
} else {
if (!$result->faultCode()) {
$msg.= tra('Article:') . ' ' . $page_info['title'] . ' ' . tra('successfully sent') . '<br />';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment