bfojcapell: strings replaced by calls in the Site Content area. The regenerated master string table and a spanish translation are also added. Always, if you get any kind of blank string, just regenerate en_US.php by visiting /i18n/text_collector

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41919 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 20:21:13 +00:00
parent fadc266058
commit be4ed16a0c
8 changed files with 469 additions and 110 deletions

View File

@ -234,11 +234,11 @@ JS;
if($instance->stat('need_permission') && !$this->can( singleton($class)->stat('need_permission') ) ) continue;
$addAction = $instance->uninherited('add_action', true);
if(!$addAction) $addAction = "a $class";
if(!$addAction) $addAction = "$class";
$result->push(new ArrayData(array(
"ClassName" => $class,
"AddAction" => "Create $addAction",
"AddAction" => _t('CMSMain.CREATE','Create a ',PR_MEDIUM,'"Create a " message, followed by an action (e.g. "contact form")') .$addAction,
)));
}
return $result;
@ -276,7 +276,7 @@ JS;
$record = $this->getRecord($id);
if($record) {
if($record->DeletedFromStage) $record->Status = "Removed from the draft site";
if($record->DeletedFromStage) $record->Status = _t('CMSMain.REMOVEDFD',"Removed from the draft site");
$fields = $record->getCMSFields($this);
$fields->push($idField = new HiddenField("ID"));
@ -305,8 +305,8 @@ JS;
if($record->DeletedFromStage) {
if($record->can('CMSEdit')) {
$actions->push(new FormAction('revert','Restore'));
$actions->push(new FormAction('deletefromlive','Delete from the published site'));
$actions->push(new FormAction('revert',_t('CMSMain.RESTORE','Restore')));
$actions->push(new FormAction('deletefromlive',_t('CMSMain.DELETEFP','Delete from the published site')));
}
} else {
if($record->hasMethod('getCMSActions')) {
@ -315,7 +315,7 @@ JS;
}
if($record->canEdit()) {
$actions->push(new FormAction('save','Save'));
$actions->push(new FormAction('save',_t('CMSMain.SAVE','Save')));
}
}
}
@ -329,7 +329,7 @@ JS;
return $form;
} else if($id) {
return new Form($this, "EditForm", new FieldSet(
new LabelField("This page doesn't exist")), new FieldSet());
new LabelField(_t('CMSMain.PAGENOTEXISTS',"This page doesn't exist"))), new FieldSet());
}
}
@ -372,7 +372,7 @@ JS;
$id = $id . $suffix;
}
$newItem->Title = "New $className";
$newItem->Title = _t('CMSMain.NEW',"New ",PR_MEDIUM,'"New " followed by a className').$className;
$newItem->URLSegment = "new-" . strtolower($className);
$newItem->ClassName = $className;
$newItem->ParentID = $parentID;
@ -460,7 +460,7 @@ JS;
$title = Convert::raw2js($obj->Title);
FormResponse::get_page($id);
FormResponse::add("$('sitetree').setNodeTitle($id, '$title');");
FormResponse::status_message("Restored '$title' successfully",'good');
FormResponse::status_message(sprintf(_t('CMSMain.RESTORED',"Restored '%s' successfully",PR_MEDIUM,'Param %s is a title'),$title),'good');
return FormResponse::respond();
}
@ -510,7 +510,8 @@ JS;
$page->Status = $_REQUEST['Status'];
$page->writeWithoutVersion();
FormResponse::status_message("Sent to $recipient->FirstName $recipient->Surname for approval.","good");
FormResponse::status_message(sprintf(_t('CMSMain.SENTTO',"Sent to %s %s for approval.",PR_LOW,"First param is first name, and second is surname"),
$recipient->FirstName, $recipient->Surname), "good");
return FormResponse::respond();
}
@ -570,11 +571,11 @@ HTML;
if($tasks) {
$data = new ArrayData(array(
"Tasks" => $tasks,
"Message" => "You have work to do on these <b>" . $tasks->Count() . "</b> pages.",
"Message" => sprintf(_t('CMSMain.WORKTODO',"You have work to do on these <b>%d</b> pages."),$tasks->Count()),
));
} else {
$data = new ArrayData(array(
"Message" => "You have nothing assigned to you.",
"Message" => _t('CMSMain.NOTHINGASSIGNED',"You have nothing assigned to you."),
));
}
return $data->renderWith("TaskList");
@ -585,11 +586,11 @@ HTML;
if($tasks) {
$data = new ArrayData(array(
"Tasks" => $tasks,
"Message" => "You are waiting on other people to work on these <b>" . $tasks->Count() . "</b> pages.",
"Message" => sprintf(_t('CMSMain.WAITINGON',"You are waiting on other people to work on these <b>%d</b> pages."),$tasks->Count()),
));
} else {
$data = new ArrayData(array(
"Message" => "You aren't waiting on anybody.",
"Message" => _t('CMSMain.NOWAITINGON','You aren\'t waiting on anybody.'),
));
}
return $data->renderWith("WaitingOn");
@ -611,7 +612,7 @@ HTML;
function ReportSelector() {
$reports = ClassInfo::subclassesFor("SideReport");
$options[""] = "(Choose a report)";
$options[""] = _t('CMSMain.CHOOSEREPORT',"(Choose a report)");
foreach($reports as $report) {
if($report != 'SideReport') $options[$report] = singleton($report)->title();
}
@ -637,7 +638,7 @@ HTML;
'Versions' => $versions,
);
} else {
return "Can't find page #$pageID";
return sprintf(_t('CMSMain.VERSIONSNOPAGE',"Can't find page #%d",PR_LOW),$pageID);
}
}
@ -647,10 +648,10 @@ HTML;
function rollback() {
if($_REQUEST['Version']) {
$record = $this->performRollback($_REQUEST['ID'], $_REQUEST['Version']);
echo "Rolled back to version #$_REQUEST[Version]. New version number is #$record->Version";
echo sprintf(_t('CMSMain.ROLLEDBACKVERSION',"Rolled back to version #%d. New version number is #%d"),$_REQUEST[Version],$record->Version);
} else {
$record = $this->performRollback($_REQUEST['ID'], "Live");
echo "Rolled back to published version. New version number is #$record->Version";
echo sprintf(_t('CMSMain.ROLLEDBACKPUB',"Rolled back to published version. New version number is #%d"),$record->Version);
}
}
@ -664,8 +665,7 @@ HTML;
$page = DataObject::get_by_id("SiteTree", $SQL_id);
$page->Status = "Unpublished";
$page->write();
return $this->tellBrowserAboutPublicationChange($page, "Removed '$page->Title' from the published site");
Sitemap::Ping();
return $this->tellBrowserAboutPublicationChange($page, sprintf(_t('CMSMain.REMOVEDPAGE',"Removed '%s' from the published site"),$page->Title));
@ -717,12 +717,13 @@ HTML;
$fields->push(new HiddenField("ID"));
$fields->push(new HiddenField("Version"));
$fields->insertBefore(new HeaderField("You are viewing version #$version, created " . $record->obj('LastEdited')->Ago()), "Root");
$fields->insertBefore(new HeaderField(sprintf(_t('CMSMain.VIEWING',"You are viewing version #%d, created %s"),
$version, $record->obj('LastEdited')->Ago())), "Root");
$actions = new FieldSet(
new FormAction("email", "Email"),
new FormAction("print", "Print"),
new FormAction("rollback", "Roll back to this version")
new FormAction("email", _t('CMSMain.EMAIL',"Email")),
new FormAction("print", _t('CMSMain.PRINT',"Print")),
new FormAction("rollback", _t('CMSMain.ROLLBACK',"Roll back to this version"))
);
// encode the message to appear in the body of the email
@ -773,7 +774,7 @@ HTML;
$fields = $record->getCMSFields($this);
$fields->push(new HiddenField("ID"));
$fields->push(new HiddenField("Version"));
$fields->insertBefore(new HeaderField("You are comparing versions #$fromVersion and #$toVersion"), "Root");
$fields->insertBefore(new HeaderField(sprintf(_t('CMSMain.COMPARINGV',"You are comparing versions #%d and #%d"),$fromVersion,$toVersion)), "Root");
$actions = new FieldSet();
@ -834,8 +835,8 @@ HTML;
Requirements::javascript('jsparty/prototype_improvements.js');
Requirements::javascript('cms/javascript/dialog.js');
$message = "Do you really want to copy the published content to the stage site?";
$buttons = "<button name=\"OK\">OK</button><button name=\"Cancel\">Cancel</button>";
$message = _t('CMSMain.COPYPUBTOSTAGE',"Do you really want to copy the published content to the stage site?");
$buttons = "<button name=\"OK\">" . _t('CMSMain.OK','OK') ."</button><button name=\"Cancel\">" . _t('CMSMain.CANCEL',"Cancel") . "</button>";
return $this->customise( array(
'Message' => $message,
@ -928,10 +929,10 @@ HTML;
}
}
$s = sizeof($ids) > 1 ? "s" : "";
$message = sizeof($ids) . " page$s deleted.";
if (sizeof($ids) > 1) $message = sprintf(_t('CMSMain.PAGEDEL', "%d page deleted "), sizeof($ids));
else $message = sprintf(_t('CMSMain.PAGESDEL', "%d pages deleted "), sizeof($ids));
if(isset($brokenPageList) && $brokenPageList != '') {
$message .= " The following pages now have broken links:<ul>" . addslashes($brokenPageList) . "</ul>Their owners have been emailed and they will fix up those pages.";
$message .= _t('CMSMain.NOWBROKEN'," The following pages now have broken links:")."<ul>" . addslashes($brokenPageList) . "</ul>" . _t('CMSMain.NOWBROKEN2',"Their owners have been emailed and they will fix up those pages.");
}
FormResponse::status_message($message);
@ -984,7 +985,7 @@ HTML;
// "Page to copy" => new TreeDropdownField("DuplicateSection", "", "SiteTree"),
),
new FieldSet(
new FormAction("addpage", "Go")
new FormAction("addpage", _t('CMSMain.GO',"Go"))
));
}
@ -1009,13 +1010,13 @@ HTML;
echo "<li>" . $page->Breadcrumbs(null, true) . "</li>";
$count++;
} else {
echo "<li style=\"color: #777\">" . $page->Breadcrumbs(null, true) . " - no content</li>";
echo "<li style=\"color: #777\">" . $page->Breadcrumbs(null, true) . " - " . _t('CMSMain.NOCONTENT',"no content") . "</li>";
}
}
}
echo "<p>Total pages: $count</p>";
echo '<p>' . _t('CMSMain.TOTALPAGES',"Total pages: ") . "$count</p>";
}
function publishall() {
@ -1033,18 +1034,17 @@ HTML;
echo "<li>$count";
}
echo "Done: Published $count pages";
echo sprintf(_t('CMSMain.PUBPAGES',"Done: Published %d pages"), $count);
} else {
echo <<<HTML
<h1>"Publish All" functionality</h1>
<p>Pressing this button will do the equivalent of going to every page and pressing "publish". It's
echo '<h1>' . _t('CMSMain.PUBALLFUN','"Publish All" functionality') . '</h1>
<p>' . _t('CMSMain.PUBALLFUN2', 'Pressing this button will do the equivalent of going to every page and pressing "publish". It\'s
intended to be used after there have been massive edits of the content, such as when the site was
first built.</p>
first built.') . '</p>
<form method="post" action="publishall">
<input type="submit" name="confirm" value="Please publish every page in the site, copying content stage to live" />
</form>
HTML;
<input type="submit" name="confirm" value="'
. _t('CMSMain.PUBALLCONFIRM',"Please publish every page in the site, copying content stage to live",PR_LOW,'Confirmation button') .'" />
</form>';
}
}
@ -1059,7 +1059,7 @@ HTML;
$restoredPage->writeWithoutVersion();
Debug::show($restoredPage);
} else {
echo "visit restorepage/(ID)";
echo _t('CMSMain.VISITRESTORE',"visit restorepage/(ID)",PR_LOW,'restorepage/(ID) should not be translated (is an URL)');
}
}

View File

@ -36,9 +36,9 @@ abstract class LeftAndMain extends Controller {
// Access failure!
if(!$isAllowed) {
$messageSet = array(
'default' => "Please choose an authentication method and enter your credentials to access the CMS.",
'alreadyLoggedIn' => "I'm sorry, but you can't access that part of the CMS. If you want to log in as someone else, do so below",
'logInAgain' => "You have been logged out of the CMS. If you would like to log in again, enter a username and password below.",
'default' => _t('LeftAndMain.PERMDEFAULT',"Please choose an authentication method and enter your credentials to access the CMS."),
'alreadyLoggedIn' => _t('LeftAndMain.PERMALREADY',"I'm sorry, but you can't access that part of the CMS. If you want to log in as someone else, do so below"),
'logInAgain' => _t('LeftAndMain.PERMAGAIN',"You have been logged out of the CMS. If you would like to log in again, enter a username and password below."),
);
Security::permissionFailure($this, $messageSet);
@ -161,17 +161,17 @@ abstract class LeftAndMain extends Controller {
// array[2]: The controller class for this menu, used to check permisssions. If blank, it's assumed that this is public, and always shown to
// users who have the rights to access some other part of the admin area.
$menuSrc = array(
_t ( 'LeftAndMain.HELLO', "Site content",100,"Menu title") => array("content", "admin/", "CMSMain"),
_t('LeftAndMain.HELLO', "Site content",100,"Menu title") => array("content", "admin/", "CMSMain"),
_t('LeftAndMain.FILESIMAGES',"Files & Images",100) => array("files", "admin/assets/", "AssetAdmin"),
_t('LeftAndMain.NEWSLETTERS',"Newsletters") => array("newsletter", "admin/newsletter/", "NewsletterAdmin"),
"Reports" => array("report", "admin/reports/", "ReportAdmin"),
"Security" => array("security", "admin/security/", "SecurityAdmin"),
"Comments" => array("comments", "admin/comments/", "CommentAdmin"),
"Statistics" => array("statistics", "admin/statistics/", "StatisticsAdmin"),
"Help" => array("help", "http://userhelp.silverstripe.com"),
_t('LeftAndMain.REPORTS',"Reports",PR_HIGH,'Menu title') => array("report", "admin/reports/", "ReportAdmin"),
_t('LeftAndMain.SECURITY',"Security",PR_HIGH,'Menu title') => array("security", "admin/security/", "SecurityAdmin"),
_t('LeftAndMain.COMMENTS',"Comments",PR_HIGH,'Menu title') => array("comments", "admin/comments/", "CommentAdmin"),
_t('LeftAndMain.STATISTICS',"Statistics",PR_HIGH,'Menu title') => array("statistics", "admin/statistics/", "StatisticsAdmin"),
_t('LeftAndMain.HELP',"Help",PR_HIGH,'Menu title') => array("help", "http://userhelp.silverstripe.com"),
);
if(!$this->hasReports()) unset($menuSrc['Reports']);
if(!$this->hasReports()) unset($menuSrc[_t('LeftAndMain.REPORTS')]);
// Extra modules
if($removed = $this->stat('removed_menu_items')) {
@ -297,7 +297,7 @@ abstract class LeftAndMain extends Controller {
// getChildrenAsUL is a flexible and complex way of traversing the tree
$siteTree = $obj->getChildrenAsUL("", '
"<li id=\"record-$child->ID\" class=\"" . $child->CMSTreeClasses($extraArg) . "\">" .
"<a href=\"" . Director::link(substr($extraArg->Link(),0,-1), "show", $child->ID) . "\" " . (($child->canEdit() || $child->canAddChildren()) ? "" : "class=\"disabled\"") . " title=\"Page type: ".$child->class."\" >" .
"<a href=\"" . Director::link(substr($extraArg->Link(),0,-1), "show", $child->ID) . "\" " . (($child->canEdit() || $child->canAddChildren()) ? "" : "class=\"disabled\"") . " title=\"' . _t('LeftAndMain.PAGETYPE','Page type: ') . '".$child->class."\" >" .
($child->TreeTitle()) .
"</a>"
'
@ -310,7 +310,7 @@ abstract class LeftAndMain extends Controller {
// This lets us override the tree title with an extension
if($this->hasMethod('getCMSTreeTitle')) $treeTitle = $this->getCMSTreeTitle();
else $treeTitle = "Site Content";
else $treeTitle = _t('LeftAndMain.SITECONTENT',"Site Content",PR_HIGH,'Root node on left');
$siteTree = "<ul id=\"sitetree\" class=\"tree unformatted\"><li id=\"record-0\" class=\"Root nodelete\"><a href=\"$rootLink\">$treeTitle</a>"
. $siteTree . "</li></ul>";
@ -388,7 +388,7 @@ JS;
if(is_a($record, "Page")) {
$record->Status = "Saved (update)";
}
FormResponse::status_message("Saved", "good");
FormResponse::status_message(_t('LeftAndMain.SAVEDUP',"Saved"), "good");
FormResponse::update_status($record->Status);
return FormResponse::respond();
}
@ -449,7 +449,7 @@ JS;
}
FormResponse::add("$('sitetree').setNodeTitle(\"$record->ID\", \"$title\");");
$message = "Saved.";
$message = _t('LeftAndMain.SAVEDUP');
// Update the icon if the class has changed
@ -468,14 +468,14 @@ JS;
}
if( ($record->class != 'VirtualPage') && $originalURLSegment != $record->URLSegment) {
$message .= " Changed URL to '$record->URLSegment'";
$message .= sprintf(_t('LeftAndMain.CHANGEDURL'," Changed URL to '%s'"),$record->URLSegment);
FormResponse::add("\$('Form_EditForm').elements.URLSegment.value = \"$record->URLSegment\";");
FormResponse::add("\$('Form_EditForm_StageURLSegment').value = \"{$record->URLSegment}\";");
}
// After reloading action
if($originalStatus != $record->Status) {
$message .= " Status changed to '$record->Status'";
$message .= sprintf(_t('LeftAndMain.STATUSTO'," Status changed to '%s'"),$record->Status);
}
$record->write();
@ -573,11 +573,11 @@ JS;
}
}
FormResponse::status_message('saved', 'good');
FormResponse::status_message(_t('LeftAndMain.SAVED','saved'), 'good');
FormResponse::add($cleanupJS);
}else{
FormResponse::status_message("Please Save Page: This page could not be upated because it hasn't been saved yet.","good");
FormResponse::status_message(_t('LeftAndMain.PLEASESAVE',"Please Save Page: This page could not be upated because it hasn't been saved yet."),"good");
}
@ -625,9 +625,9 @@ JS;
}
}\n" . $js
);
FormResponse::status_message('saved', 'good');
FormResponse::status_message(_t('LeftAndMain.SAVED'), 'good');
} else {
FormResponse::error("Error in request");
FormResponse::error(_t('LeftAndMain.REQUESTERROR',"Error in request"));
}
return FormResponse::respond();

View File

@ -2,15 +2,184 @@
global $lang;
$lang['en_US']['CMSMain']['CREATE'] = array(
'Create a ',
PR_MEDIUM,
'"Create a " message, followed by an action (e.g. "contact form")'
);
$lang['en_US']['CMSMain']['REMOVEDFD'] = 'Removed from the draft site';
$lang['en_US']['CMSMain']['RESTORE'] = 'Restore';
$lang['en_US']['CMSMain']['DELETEFP'] = 'Delete from the published site';
$lang['en_US']['CMSMain']['SAVE'] = 'Save';
$lang['en_US']['CMSMain']['PAGENOTEXISTS'] = 'This page doesn\'t exist';
$lang['en_US']['CMSMain']['NEW'] = array(
'New ',
PR_MEDIUM,
'"New " followed by a className'
);
$lang['en_US']['CMSMain']['RESTORED'] = array(
'Restored \'%s\' successfully',
PR_MEDIUM,
'Param %s is a title'
);
$lang['en_US']['CMSMain']['SENTTO'] = array(
'Sent to %s %s for approval.',
PR_LOW,
'First param is first name, and second is surname'
);
$lang['en_US']['CMSMain']['WORKTODO'] = 'You have work to do on these <b>%d</b> pages.';
$lang['en_US']['CMSMain']['NOTHINGASSIGNED'] = 'You have nothing assigned to you.';
$lang['en_US']['CMSMain']['WAITINGON'] = 'You are waiting on other people to work on these <b>%d</b> pages.';
$lang['en_US']['CMSMain']['NOWAITINGON'] = 'You aren\'t waiting on anybody.';
$lang['en_US']['CMSMain']['CHOOSEREPORT'] = '(Choose a report)';
$lang['en_US']['CMSMain']['VERSIONSNOPAGE'] = array(
'Can\'t find page #%d',
PR_LOW
);
$lang['en_US']['CMSMain']['ROLLEDBACKVERSION'] = 'Rolled back to version #%d. New version number is #%d';
$lang['en_US']['CMSMain']['ROLLEDBACKPUB'] = 'Rolled back to published version. New version number is #%d';
$lang['en_US']['CMSMain']['REMOVEDPAGE'] = 'Removed \'%s\' from the published site';
$lang['en_US']['CMSMain']['VIEWING'] = 'You are viewing version #%d, created %s';
$lang['en_US']['CMSMain']['EMAIL'] = 'Email';
$lang['en_US']['CMSMain']['PRINT'] = 'Print';
$lang['en_US']['CMSMain']['ROLLBACK'] = 'Roll back to this version';
$lang['en_US']['CMSMain']['COMPARINGV'] = 'You are comparing versions #%d and #%d';
$lang['en_US']['CMSMain']['COPYPUBTOSTAGE'] = 'Do you really want to copy the published content to the stage site?';
$lang['en_US']['CMSMain']['OK'] = 'OK';
$lang['en_US']['CMSMain']['CANCEL'] = 'Cancel';
$lang['en_US']['CMSMain']['PAGEDEL'] = '%d page deleted ';
$lang['en_US']['CMSMain']['PAGESDEL'] = '%d pages deleted ';
$lang['en_US']['CMSMain']['NOWBROKEN'] = ' The following pages now have broken links:';
$lang['en_US']['CMSMain']['NOWBROKEN2'] = 'Their owners have been emailed and they will fix up those pages.';
$lang['en_US']['CMSMain']['GO'] = 'Go';
$lang['en_US']['CMSMain']['NOCONTENT'] = 'no content';
$lang['en_US']['CMSMain']['TOTALPAGES'] = 'Total pages: ';
$lang['en_US']['CMSMain']['PUBPAGES'] = 'Done: Published %d pages';
$lang['en_US']['CMSMain']['PUBALLFUN'] = '"Publish All" functionality';
$lang['en_US']['CMSMain']['PUBALLFUN2'] = 'Pressing this button will do the equivalent of going to every page and pressing "publish". It\'s
intended to be used after there have been massive edits of the content, such as when the site was
first built.';
$lang['en_US']['CMSMain']['PUBALLCONFIRM'] = array(
'Please publish every page in the site, copying content stage to live',
PR_LOW,
'Confirmation button'
);
$lang['en_US']['CMSMain']['VISITRESTORE'] = array(
'visit restorepage/(ID)',
PR_LOW,
'restorepage/(ID) should not be translated (is an URL)'
);
$lang['en_US']['LeftAndMain']['PERMDEFAULT'] = 'Please choose an authentication method and enter your credentials to access the CMS.';
$lang['en_US']['LeftAndMain']['PERMALREADY'] = 'I\'m sorry, but you can\'t access that part of the CMS. If you want to log in as someone else, do so below';
$lang['en_US']['LeftAndMain']['PERMAGAIN'] = 'You have been logged out of the CMS. If you would like to log in again, enter a username and password below.';
$lang['en_US']['LeftAndMain']['HELLO'] = array(
'Site content',
100,
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['FILESIMAGES'] = array(
'Files & Images',
100
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['NEWSLETTERS'] = 'Newsletters';
$lang['en_US']['LeftAndMain']['NEWSLETTERS'] = array(
'Newsletters',
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['REPORTS'] = array(
'Reports',
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['SECURITY'] = array(
'Security',
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['STATISTICS'] = array(
'Statistics',
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['HELP'] = array(
'Help',
PR_HIGH,
'Menu title'
);
$lang['en_US']['LeftAndMain']['PAGETYPE'] = 'Page type: ';
$lang['en_US']['LeftAndMain']['SITECONTENT'] = array(
'Site Content',
PR_HIGH,
'Root node on left'
);
$lang['en_US']['LeftAndMain']['SAVEDUP'] = 'Saved';
$lang['en_US']['LeftAndMain']['CHANGEDURL'] = ' Changed URL to \'%s\'';
$lang['en_US']['LeftAndMain']['STATUSTO'] = ' Status changed to \'%s\'';
$lang['en_US']['LeftAndMain']['SAVED'] = 'saved';
$lang['en_US']['LeftAndMain']['PLEASESAVE'] = 'Please Save Page: This page could not be upated because it hasn\'t been saved yet.';
$lang['en_US']['LeftAndMain']['REQUESTERROR'] = 'Error in request';
$lang['en_US']['CMSMain_left.ss']['OPENBOX'] = 'click to open this box';
$lang['en_US']['CMSMain_left.ss']['CLOSEBOX'] = 'click to close box';
$lang['en_US']['CMSMain_left.ss']['SITECONTENT TITLE'] = array(
'Site Content and Structure',
PR_HIGH
);
$lang['en_US']['CMSMain_left.ss']['CREATE'] = array(
'Create...',
PR_HIGH
);
$lang['en_US']['CMSMain_left.ss']['DELETE'] = array(
'Delete...',
PR_HIGH
);
$lang['en_US']['CMSMain_left.ss']['REORDER'] = array(
'Reorder...',
PR_HIGH
);
$lang['en_US']['CMSMain_left.ss']['SELECTPAGESDEL'] = 'Select the pages that you want to delete and then click the button below';
$lang['en_US']['CMSMain_left.ss']['DELETECONFIRM'] = 'Delete the selected pages';
$lang['en_US']['CMSMain_left.ss']['DRAGPAGES'] = 'To reorganise your site, drag the pages around as desired.';
$lang['en_US']['CMSMain_left.ss']['SELECTPAGESDUP'] = 'Select the pages that you want to duplicate, whether it\'s children should be included, and where you want the duplicates placed';
$lang['en_US']['CMSMain_left.ss']['KEY'] = 'Key:';
$lang['en_US']['CMSMain_left.ss']['ADDEDNOTPUB'] = 'Added to the draft site and not published yet';
$lang['en_US']['CMSMain_left.ss']['NEW'] = 'new';
$lang['en_US']['CMSMain_left.ss']['DELETEDSTILLLIVE'] = 'Deleted from the draft site but still on the live site';
$lang['en_US']['CMSMain_left.ss']['DEL'] = 'deleted';
$lang['en_US']['CMSMain_left.ss']['EDITEDNOTPUB'] = 'Edited on the draft site and not published yet';
$lang['en_US']['CMSMain_left.ss']['CHANGED'] = 'changed';
$lang['en_US']['CMSMain_left.ss']['TASKLIST'] = 'Tasklist';
$lang['en_US']['CMSMain_left.ss']['WAITINGON'] = 'Waiting on';
$lang['en_US']['CMSMain_left.ss']['PAGEVERSIONH'] = 'Page Version History';
$lang['en_US']['CMSMain_left.ss']['COMPAREMODE'] = 'Compare mode (click 2 below)';
$lang['en_US']['CMSMain_left.ss']['SHOWUNPUB'] = 'Show unpublished versions';
$lang['en_US']['CMSMain_left.ss']['COMMENTS'] = 'Comments';
$lang['en_US']['CMSMain_left.ss']['SITEREPORTS'] = 'Site Reports';
$lang['en_US']['CMSMain_left.ss']['GO'] = 'Go';
$lang['en_US']['CMSMain_right.ss']['SENDTO'] = 'Send to';
$lang['en_US']['CMSMain_right.ss']['LOADING'] = 'loading...';
$lang['en_US']['CMSMain_right.ss']['STATUS'] = 'Status';
$lang['en_US']['CMSMain_right.ss']['ANYMESSAGE'] = 'Do you have any message for your editor?';
$lang['en_US']['CMSMain_right.ss']['MESSAGE'] = 'Message';
$lang['en_US']['CMSMain_right.ss']['SUBMIT'] = 'Submit for approval';
$lang['en_US']['CMSMain_right.ss']['WELCOMETO'] = 'Welcome to';
$lang['en_US']['CMSMain_right.ss']['CHOOSEPAGE'] = 'Please choose a page from the left.';
$lang['en_US']['CMSRight.ss']['WELCOMETO'] = 'Welcome to';
$lang['en_US']['CMSRight.ss']['CHOOSEPAGE'] = 'Please choose a page from the left.';
$lang['en_US']['LeftAndMain.ss']['LOADING'] = array(
'Loading...',
PR_HIGH
);
$lang['en_US']['LeftAndMain.ss']['SSWEB'] = 'Silverstripe Website';
$lang['en_US']['LeftAndMain.ss']['APPVERSIONTEXT1'] = 'This is the';
$lang['en_US']['LeftAndMain.ss']['APPVERSIONTEXT2'] = 'version that you are currently running, technically it\'s the CVS branch';
$lang['en_US']['LeftAndMain.ss']['LOGGEDINAS'] = 'Logged in as';
$lang['en_US']['LeftAndMain.ss']['LOGOUT'] = 'log out';
$lang['en_US']['LeftAndMain.ss']['VIEWPAGEIN'] = 'Page view:';
$lang['en_US']['LeftAndMain.ss']['SWITCHTO'] = 'Switch to:';
$lang['en_US']['LeftAndMain.ss']['EDIT'] = 'Edit';
$lang['en_US']['LeftAndMain.ss']['DRAFTS'] = 'Draft Site';
$lang['en_US']['LeftAndMain.ss']['PUBLIS'] = 'Published Site';
$lang['en_US']['LeftAndMain.ss']['ARCHS'] = 'Archived Site';
?>

189
lang/es_ES.php Executable file
View File

@ -0,0 +1,189 @@
<?php
i18n::include_by_locale('es_ES');
global $lang;
$lang['es_ES'] = $lang['en_US'];
$lang['es_ES']['CMSMain']['CREATE'] = array(
'Crear un ',
PR_MEDIUM,
'"Create a " message, followed by an action (e.g. "contact form")'
);
$lang['es_ES']['CMSMain']['REMOVEDFD'] = 'Eliminado del sitio de prueba';
$lang['es_ES']['CMSMain']['RESTORE'] = 'Restaurar';
$lang['es_ES']['CMSMain']['DELETEFP'] = 'Eliminar del sitio publicado';
$lang['es_ES']['CMSMain']['SAVE'] = 'Guardar';
$lang['es_ES']['CMSMain']['PAGENOTEXISTS'] = utf8_encode('Esta página no existe');
$lang['es_ES']['CMSMain']['NEW'] = array(
'Nuevo ',
PR_MEDIUM,
'"New " followed by a className'
);
$lang['es_ES']['CMSMain']['RESTORED'] = array(
utf8_encode('\'%s\' restaurado con éxito'),
PR_MEDIUM,
'Param %s is a title'
);
$lang['es_ES']['CMSMain']['SENTTO'] = array(
'Enviado a %s %s para aprobación.',
PR_LOW,
'First param is first name, and second is surname'
);
$lang['es_ES']['CMSMain']['WORKTODO'] = utf8_encode('Tienes trabajo que hacer en estas <b>%d</b> páginas.');
$lang['es_ES']['CMSMain']['NOTHINGASSIGNED'] = 'No tienes nada asignado.';
$lang['es_ES']['CMSMain']['WAITINGON'] = utf8_encode('Estás esperando que otra gente trabaje en estas <b>%d</b> páginas.');
$lang['es_ES']['CMSMain']['NOWAITINGON'] = utf8_encode('No estás esperando de nadie.');
$lang['es_ES']['CMSMain']['CHOOSEREPORT'] = '(Escoge un informe)';
$lang['es_ES']['CMSMain']['VERSIONSNOPAGE'] = array(
utf8_encode('No se puede encontrar la página #%d'),
PR_LOW
);
$lang['es_ES']['CMSMain']['ROLLEDBACKVERSION'] = utf8_encode('Se ha vuelto a la versión #%d. El nuevo número de versión es el #%d');
$lang['es_ES']['CMSMain']['ROLLEDBACKPUB'] = utf8_encode('Se a vuelto a la versión publicada. El nuevo número de versión es el #%d');
$lang['es_ES']['CMSMain']['REMOVEDPAGE'] = utf8_encode('Se ha borrado \'%s\' del sitio publicado');
$lang['es_ES']['CMSMain']['VIEWING'] = utf8_encode('Estás viendo la versión #%d, creada %s');
$lang['es_ES']['CMSMain']['EMAIL'] = 'Correo';
$lang['es_ES']['CMSMain']['PRINT'] = 'Imprimir';
$lang['es_ES']['CMSMain']['ROLLBACK'] = utf8_encode('Volver a esta versión');
$lang['es_ES']['CMSMain']['COMPARINGV'] = utf8_encode('Estás comparando las versiones #%d y #%d');
$lang['es_ES']['CMSMain']['COPYPUBTOSTAGE'] = utf8_encode('Quieres realmente copiar el contenido publicado al sitio temporal?');
$lang['es_ES']['CMSMain']['OK'] = 'Aceptar';
$lang['es_ES']['CMSMain']['CANCEL'] = 'Cancelar';
$lang['es_ES']['CMSMain']['PAGEDEL'] = utf8_encode('%d página eliminada ');
$lang['es_ES']['CMSMain']['PAGESDEL'] = utf8_encode('%d páginas eliminadas ');
$lang['es_ES']['CMSMain']['NOWBROKEN'] = utf8_encode(' Las siguientes páginas tienen ahora enlaces rotos:');
$lang['es_ES']['CMSMain']['NOWBROKEN2'] = utf8_encode('Se ha enviado un correo a sus propietarios y ellos arreglarán estas páginas.');
$lang['es_ES']['CMSMain']['GO'] = 'Ir';
$lang['es_ES']['CMSMain']['NOCONTENT'] = 'sin contenido';
$lang['es_ES']['CMSMain']['TOTALPAGES'] = utf8_encode('Páginas totales: ');
$lang['es_ES']['CMSMain']['PUBPAGES'] = utf8_encode('Hecho: %d páginas publicadas');
$lang['es_ES']['CMSMain']['PUBALLFUN'] = utf8_encode('Funcionalidad de "Publicar todo"');
$lang['es_ES']['CMSMain']['PUBALLFUN2'] = utf8_encode('Apretar este botón hará el equivalente a ir a cada página y apretar "publicar". Está para cuando hay ediciones masivas del contenido, como cuando el sitio se construye por primera vez.');
$lang['es_ES']['CMSMain']['PUBALLCONFIRM'] = array(
utf8_encode('Por favor publica todas las páginas del sitio, copiando el contenido de prueba a la página en directo'),
PR_LOW,
'Confirmation button'
);
$lang['es_ES']['CMSMain']['VISITRESTORE'] = array(
'visita restorepage/(ID)',
PR_LOW,
'restorepage/(ID) should not be translated (is an URL)'
);
$lang['es_ES']['LeftAndMain']['PERMDEFAULT'] = utf8_encode('Por favor, elige un método de autentificación i introduce tus credenciales para acceder al CMS.');
$lang['es_ES']['LeftAndMain']['PERMALREADY'] = utf8_encode('Lamentablemente no puedes acceder a ésta parte del CMS. Si quieres entrar como alguien distinto, puedes hacerlo debajo.');
$lang['es_ES']['LeftAndMain']['PERMAGAIN'] = utf8_encode('Has salido del CMS. Si quieres volver a entrar de nuevo, introduce usuario y contraseña debajo.');
$lang['es_ES']['LeftAndMain']['HELLO'] = array(
'Contenido del web',
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['FILESIMAGES'] = array(
utf8_encode('Archivos e imágenes'),
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['NEWSLETTERS'] = array(
'Boletines de noticias',
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['REPORTS'] = array(
'Informes',
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['SECURITY'] = array(
'Seguridad',
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['STATISTICS'] = array(
utf8_encode('Estadísticas'),
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['HELP'] = array(
'Ayuda',
PR_HIGH,
'Menu title'
);
$lang['es_ES']['LeftAndMain']['PAGETYPE'] = utf8_encode('Tipo de página: ');
$lang['es_ES']['LeftAndMain']['SITECONTENT'] = array(
'Contenido',
PR_HIGH,
'Root node on left'
);
$lang['es_ES']['LeftAndMain']['SAVEDUP'] = 'Guardado';
$lang['es_ES']['LeftAndMain']['CHANGEDURL'] = ' URL cambiada a \'%s\'';
$lang['es_ES']['LeftAndMain']['STATUSTO'] = ' Estado cambiado a \'%s\'';
$lang['es_ES']['LeftAndMain']['SAVED'] = 'guardado';
$lang['es_ES']['LeftAndMain']['PLEASESAVE'] = utf8_encode('Por favor, guarde la página: esta página no puede actualizarse porque aún no ha sido guardada.');
$lang['es_ES']['LeftAndMain']['REQUESTERROR'] = utf8_encode('Error en la petición');
$lang['es_ES']['CMSMain_left.ss']['OPENBOX'] = 'haga clic para abrir la caja';
$lang['es_ES']['CMSMain_left.ss']['CLOSEBOX'] = 'haga clic para cerrar la caja';
$lang['es_ES']['CMSMain_left.ss']['SITECONTENT TITLE'] = array(
'Contenido del web y estructura',
PR_HIGH
);
$lang['es_ES']['CMSMain_left.ss']['CREATE'] = array(
'Crear...',
PR_HIGH
);
$lang['es_ES']['CMSMain_left.ss']['DELETE'] = array(
'Eliminar...',
PR_HIGH
);
$lang['es_ES']['CMSMain_left.ss']['REORDER'] = array(
'Reordenar...',
PR_HIGH
);
$lang['es_ES']['CMSMain_left.ss']['SELECTPAGESDEL'] = utf8_encode('Seleccione las páginas que quiere eliminar y luego pulse el botón de debajo');
$lang['es_ES']['CMSMain_left.ss']['KEY'] = 'Leyenda:';
$lang['es_ES']['CMSMain_left.ss']['DELETECONFIRM'] = utf8_encode('Eliminar las páginas seleccionadas');
$lang['es_ES']['CMSMain_left.ss']['DRAGPAGES'] = utf8_encode('Para reorganizar el sitio, arrastre las páginas como desee.');
$lang['es_ES']['CMSMain_left.ss']['SELECTPAGESDUP'] = utf8_encode('Seleccione las páginas que quiera duplicar, si sus hijos se deberían incluir, y dónde quiere poner los duplicados');
$lang['es_ES']['CMSMain_left.ss']['ADDEDNOTPUB'] = utf8_encode('Añadido al sitio de prueba y no publicado aún');
$lang['es_ES']['CMSMain_left.ss']['NEW'] = 'nuevo';
$lang['es_ES']['CMSMain_left.ss']['DELETEDSTILLLIVE'] = utf8_encode('Eliminado del sitio de prueba pero aún en el sitio en directo');
$lang['es_ES']['CMSMain_left.ss']['DEL'] = 'eliminado';
$lang['es_ES']['CMSMain_left.ss']['EDITEDNOTPUB'] = utf8_encode('Editado en el sitio de prueba y no publicado aún');
$lang['es_ES']['CMSMain_left.ss']['CHANGED'] = 'cambiado';
$lang['es_ES']['CMSMain_left.ss']['CLICKOPEN'] = 'haga clic para abrir la caja';
$lang['es_ES']['CMSMain_left.ss']['CLICKCLOSE'] = 'haga clic para cerrar la caja';
$lang['es_ES']['CMSMain_left.ss']['TASKLIST'] = 'Lista de tareas';
$lang['es_ES']['CMSMain_left.ss']['WAITINGON'] = 'Esperando';
$lang['es_ES']['CMSMain_left.ss']['PAGEVERSIONH'] = utf8_encode('Historial de versiones de páginas');
$lang['es_ES']['CMSMain_left.ss']['COMPAREMODE'] = utf8_encode('Modo de comparación (seleccione dos debajo)');
$lang['es_ES']['CMSMain_left.ss']['SHOWUNPUB'] = 'Mostrar versiones no publicadas';
$lang['es_ES']['CMSMain_left.ss']['COMMENTS'] = 'Comentarios';
$lang['es_ES']['CMSMain_left.ss']['SITEREPORTS'] = 'Informes del sitio';
$lang['es_ES']['CMSMain_left.ss']['GO'] = 'Ir';
$lang['es_ES']['CMSMain_right.ss']['SENDTO'] = 'Enviar a';
$lang['es_ES']['CMSMain_right.ss']['LOADING'] = 'cargando...';
$lang['es_ES']['CMSMain_right.ss']['STATUS'] = 'Estado';
$lang['es_ES']['CMSMain_right.ss']['ANYMESSAGE'] = 'Tiene algun mensaje para su editor?';
$lang['es_ES']['CMSMain_right.ss']['MESSAGE'] = 'Mensaje';
$lang['es_ES']['CMSMain_right.ss']['SUBMIT'] = utf8_encode('Enviar para aprobación');
$lang['es_ES']['CMSMain_right.ss']['WELCOMETO'] = 'Bienvenido a';
$lang['es_ES']['CMSMain_right.ss']['CHOOSEPAGE'] = utf8_encode('Por favor, escoja una página de la izquierda.');
$lang['es_ES']['CMSRight.ss']['WELCOMETO'] = 'Bienvenido a';
$lang['es_ES']['CMSRight.ss']['CHOOSEPAGE'] = utf8_encode('Por favor, escoja una página de la izquierda.');
$lang['es_ES']['LeftAndMain.ss']['LOADING'] = array(
'Cargando...',
PR_HIGH
);
$lang['es_ES']['LeftAndMain.ss']['SSWEB'] = 'Sitio web de Silverstripe';
$lang['es_ES']['LeftAndMain.ss']['APPVERSIONTEXT1'] = utf8_encode('Ésta es la versión de');
$lang['es_ES']['LeftAndMain.ss']['APPVERSIONTEXT2'] = utf8_encode('que está actualmente corriendo, técnicamente es la branca CVS');
$lang['es_ES']['LeftAndMain.ss']['LOGGEDINAS'] = 'Conectado como';
$lang['es_ES']['LeftAndMain.ss']['LOGOUT'] = 'salir';
$lang['es_ES']['LeftAndMain.ss']['VIEWPAGEIN'] = utf8_encode('Vista de página:');
$lang['es_ES']['LeftAndMain.ss']['SWITCHTO'] = 'Cambiar a:';
$lang['es_ES']['LeftAndMain.ss']['EDIT'] = 'Editar';
$lang['es_ES']['LeftAndMain.ss']['DRAFTS'] = 'Sitio de prueba';
$lang['es_ES']['LeftAndMain.ss']['PUBLIS'] = 'Sitio publicado';
$lang['es_ES']['LeftAndMain.ss']['ARCHS'] = 'Sitio archivado';
?>

View File

@ -2,16 +2,16 @@
<div id="treepanes">
<h2 id="heading_sitetree" class="selected">
<img id="sitetree_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" style="display:none;" title="click to open this box" />
<img id="sitetree_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" title="click to close box" />
Site Content and Structure
<img id="sitetree_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" style="display:none;" title="<% _t('OPENBOX','click to open this box'); %>" />
<img id="sitetree_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" title="<% _t('CLOSEBOX','click to close box'); %>" />
<% _t('SITECONTENT TITLE','Site Content and Structure',PR_HIGH); %>
</h2>
<div id="sitetree_holder">
<ul id="TreeActions">
<li class="action" id="addpage"><button>Create...</button></li>
<li class="action" id="deletepage"><button>Delete...</button></li>
<li class="action" id="sortitems"><button>Reorder...</button></li>
<li class="action" id="addpage"><button><% _t('CREATE','Create...',PR_HIGH); %></button></li>
<li class="action" id="deletepage"><button><% _t('DELETE','Delete...',PR_HIGH); %></button></li>
<li class="action" id="sortitems"><button><% _t('REORDER','Reorder...',PR_HIGH); %></button></li>
<!-- <li class="action" id="duplicate"><a href="#">Duplicate</a></li>
Sam: this should be put into the Create area, I think, so we don't stuff up the layout -->
</ul>
@ -39,20 +39,20 @@
<% end_control %>
<form class="actionparams" id="deletepage_options" style="display: none" action="admin/deleteitems">
<p>Select the pages that you want to delete and then click the button below</p>
<p><% _t('SELECTPAGESDEL','Select the pages that you want to delete and then click the button below'); %></p>
<div>
<input type="hidden" name="csvIDs" />
<input type="submit" value="Delete the selected pages" />
<input type="submit" value="<% _t('DELETECONFIRM','Delete the selected pages'); %>" />
</div>
</form>
<form class="actionparams" id="sortitems_options" style="display: none">
<p id="sortitems_message" style="margin: 0">To reorganise your site, drag the pages around as desired.</p>
<p id="sortitems_message" style="margin: 0"><% _t('DRAGPAGES','To reorganise your site, drag the pages around as desired.'); %></p>
</form>
<% control DuplicatePagesOptionsForm %>
<form class="actionparams" id="duplicate_options" style="display: none" action="admin/duplicateSiteTree">
<p>Select the pages that you want to duplicate, whether it's children should be included, and where you want the duplicates placed</p>
<p><% _t('SELECTPAGESDUP','Select the pages that you want to duplicate, whether it\'s children should be included, and where you want the duplicates placed'); %></p>
<div>
<input type="hidden" name="csvIDs" />
<input type="submit" value="Duplicate" />
@ -61,10 +61,10 @@
<% end_control %>
<div id="publication_key" style="border-bottom: 1px #CCC solid; background-color: #EEE; padding: 3px;">
Key:
<ins style="cursor: help" title="Added to the stage site and not published yet">new</ins>
<del style="cursor: help" title="Deleted from the stage site but still on the live site">deleted</del>
<span style="cursor: help" title="Edited on the stage site and not published yet" class="modified">changed</span>
<% _t('KEY','Key:'); %>
<ins style="cursor: help" title="<% _t('ADDEDNOTPUB','Added to the draft site and not published yet'); %>"><% _t('NEW','new'); %></ins>
<del style="cursor: help" title="<% _t('DELETEDSTILLLIVE','Deleted from the draft site but still on the live site'); %>"><% _t('DEL','deleted'); %></del>
<span style="cursor: help" title="<% _t('EDITEDNOTPUB','Edited on the draft site and not published yet'); %>" class="modified"><% _t('CHANGED','changed'); %></span>
</div>
@ -78,18 +78,18 @@
<% if EnterpriseCMS %>
<h2 id="heading_tasklist">
<img id="tasklist_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="click to open box" />
<img id="tasklist_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="click to close box" />
Tasklist
<img id="tasklist_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="<% _t('OPENBOX'); %>" />
<img id="tasklist_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="<% _t('CLOSEBOX'); %>" />
<% _t('TASKLIST','Tasklist'); %>
</h2>
<div class="listpane" id="tasklist_holder" style="display:none">
<div class="unitBody">
</div>
</div>
<h2 id="heading_waitingon">
<img id="waitingon_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="click to open box" />
<img id="waitingon_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="click to close box" />
Waiting on
<img id="waitingon_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="<% _t('OPENBOX'); %>" />
<img id="waitingon_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="<% _t('CLOSEBOX'); %>" />
<% _t('WAITINGON','Waiting on'); %>
</h2>
<div class="listpane" id="waitingon_holder" style="display:none">
<div class="unitBody">
@ -97,16 +97,16 @@
</div>
<% end_if %>
<h2 id="heading_versions">
<img id="versions_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="click to open box" />
<img id="versions_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="click to close box" />
Page Version History
<img id="versions_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="<% _t('OPENBOX'); %>" />
<img id="versions_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="<% _t('CLOSEBOX'); %>" />
<% _t('PAGEVERSIONH','Page Version History'); %>
</h2>
<div class="listpane" id="versions_holder" style="display:none">
<p class="pane_actions" id="versions_actions">
<input type="checkbox" id="versions_comparemode" /> <label for="versions_comparemode">Compare mode (click 2 below)</label>
<input type="checkbox" id="versions_comparemode" /> <label for="versions_comparemode"><% _t('COMPAREMODE','Compare mode (click 2 below)'); %></label>
<br />
<input type="checkbox" id="versions_showall" /> <label for="versions_showall">Show unpublished versions</label>
<input type="checkbox" id="versions_showall" /> <label for="versions_showall"><% _t('SHOWUNPUB','Show unpublished versions'); %></label>
</p>
<div class="unitBody">
@ -114,9 +114,9 @@
</div>
<% if EnterpriseCMS %>
<h2 id="heading_comments">
<img id="comments_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="click to open box" />
<img id="comments_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="click to close box" />
Comments
<img id="comments_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="<% _t('OPENBOX'); %>" />
<img id="comments_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="<% _t('CLOSEBOX'); %>" />
<% _t('COMMENTS','Comments'); %>
</h2>
<div class="listpane" id="comments_holder" style="display:none">
<div class="unitBody">
@ -124,12 +124,12 @@
</div>
<% end_if %>
<h2 id="heading_reports">
<img id="reports_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="click to open box" />
<img id="reports_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="click to close box" />
Site Reports
<img id="reports_toggle_closed" src="cms/images/panels/toggle-closed.gif" alt="+" title="<% _t('OPENBOX'); %>" />
<img id="reports_toggle_open" src="cms/images/panels/toggle-open.gif" alt="-" style="display:none;" title="<% _t('CLOSEBOX'); %>" />
<% _t('SITEREPORTS','Site Reports'); %>
</h2>
<div class="listpane" id="reports_holder" style="display:none">
<p id="ReportSelector_holder">$ReportSelector <input class="action" type="submit" id="report_select_go" value="Go" /></p>
<p id="ReportSelector_holder">$ReportSelector <input class="action" type="submit" id="report_select_go" value="<% _t('GO','Go'); %>" /></p>
<div class="unitBody">
</div>
</div>

View File

@ -8,20 +8,20 @@
<fieldset>
<input type="hidden" name="ID" />
<div class="field" id="action_submit_options_recipient">
<label class="left">Send to</label>
<span>loading...</span>
<label class="left"><% _t('SENDTO','Send to'); %></label>
<span><% _t('LOADING','loading...'); %></span>
</div>
<div class="field" id="action_submit_options_status">
<label class="left">Status</label>
<label class="left"><% _t('STATUS','Status'); %></label>
<input type="hidden" name="Status" />
<span></span>
</div>
<p class="label">Do you have any message for your editor?</p>
<textarea name="Message" rows="4" cols="20"></textarea>
<p class="label"><% _t('ANYMESSAGE','Do you have any message for your editor?'); %></p>
<textarea name="<% _t('MESSAGE','Message'); %>" rows="4" cols="20"></textarea>
</fieldset>
<p class="actions">
<input type="submit" value="Submit for approval" />
<input type="submit" value="<% _t('SUBMIT','Submit for approval'); %>" />
</p>
</form>
@ -31,7 +31,7 @@
<form id="Form_EditForm" action="admin?executeForm=EditForm" method="post" enctype="multipart/form-data">
<h1>$ApplicationName</h1>
<p>Welcome to $ApplicationName! Please choose a page from the left.</p>
<p><% _t('WELCOMETO','Welcome to'); %> $ApplicationName! <% _t('CHOOSEPAGE','Please choose a page from the left.'); %></p>
</form>
<% end_if %>

View File

@ -15,7 +15,7 @@
<p id="statusMessage" style="display:none"></p>
<form id="Form_EditForm" action="admin?executeForm=EditForm" method="post" enctype="multipart/form-data">
<p>Welcome to $ApplicationName! Please choose a page from the left.</p>
<p><% _t('WELCOMETO','Welcome to'); %> $ApplicationName! <% _t('CHOOSEPAGE','Please choose a page from the left.'); %></p>
</form>
<% end_if %>
</body>

View File

@ -45,14 +45,15 @@
<div id="switchView" class="bottomTabs">
<% if class = CMSMain %>
<div class="blank"> View page in: </div>
<div class="blank"> <% _t('VIEWPAGEIN','Page view:'); %> </div>
<% else %>
<div class="blank"> Switch to: </div>
<% end_if %>
<a class="current">CMS</a>
<a id="viewStageSite" href="home/?stage=Stage" style="left : -1px;">Draft Site</a>
<a id="viewLiveSite" href="home/?stage=Live" style="left : -3px;">Published Site</a>
<a style="display: none;left : -5px;" id="viewArchivedSite" href="home/">Archived Site</a>
<a class="current"><% _t('EDIT','Edit'); %></a>
<a id="viewStageSite" href="home/?stage=Stage" style="left : -1px;"><% _t('DRAFTS','Draft Site'); %></a>
<div class="blank" style="width:1em;"> </div>
<a id="viewLiveSite" href="home/?stage=Live" style="left : -3px;"><% _t('PUBLIS','Published Site'); %></a>
<a style="display: none;left : -5px;" id="viewArchivedSite" href="home/"><% _t('ARCHS','Archived Site'); %></a>
</div>
</div>