From 7d00a996b4e7b08bf2a9e46f80ead97f698109be Mon Sep 17 00:00:00 2001
From: Sam Minnee Edit this image "._t('AssetTableField.EDITIMAGE', 'Edit this image')." "._t('SecurityAdmin.ADVANCEDONLY',"This section is for advanced users only.
See this page
for more information.")." Obrigado, recebemos a sua submissão." . addslashes($brokenPageList) . "
Their owners have been emailed and they will fix up those pages.";
+ */
+
+ $size = sizeof($ids);
+ if($size > 1)
+ $message = $size.' '._t('AssetAdmin.FOLDERSDELETED', 'folders deleted.');
+ else
+ $message = $size.' '._t('AssetAdmin.FOLDERDELETED', 'folder deleted.');
+
+ if(isset($brokenPageList))
+ $message .= ' '._t('AssetAdmin.NOWBROKEN', 'The following pages now have broken links:').''.addslashes($brokenPageList).'
'.
+ _t('AssetAdmin.NOWBROKEN2', 'Their owners have been emailed and they will fix up those pages.');
+
$script .= "statusMessage('$message');";
echo $script;
}
@@ -730,7 +742,7 @@ JS;
foreach($this->getUnusedThumbnailsArray() as $file) {
unlink("../assets/" . $file);
}
- echo "statusMessage('All unused thumbnails have been deleted','good')";
+ echo "statusMessage('"._t('AssetAdmin.THUMBSDELETED', 'All unused thumbnails have been deleted')."','good')";
}
/**
diff --git a/code/AssetTableField.php b/code/AssetTableField.php
index c497ce96..d20aec58 100755
--- a/code/AssetTableField.php
+++ b/code/AssetTableField.php
@@ -70,13 +70,13 @@ class AssetTableField extends ComplexTableField {
}
$urlLink = "{$results->Count()} {$name} found:
";
+ $ret .= "{$results->Count()} {$name} "._t('GenericDataAdmin.FOUND', 'found:')."
";
switch($this->stat('result_format')) {
case 'table':
@@ -250,9 +251,9 @@ abstract class GenericDataAdmin extends LeftAndMain {
$ret .= $this->getResultActionsForm($results);
} else {
if($this->hasMethod('isEmptySearch') && $this->isEmptySearch()) {
- $ret .="Please choose some search criteria and press 'Go'.
";
+ $ret .=''._t('GenericDataAdmin.CHOOSECRIT', 'Please choose some search criteria and press \'Go\'.').'
';
} else {
- $ret .="Sorry, no {$plural_name} found by this search.
";
+ $ret .=''.sprintf(_t('GenericDataAdmin.NORESULTS', 'Sorry, no %s found by this search.'), $plural_name).'
';
}
}
return $ret;
@@ -486,7 +487,7 @@ HTML;
}
}
$this->getActionUpdateJS($generic);
- FormResponse::status_message('Saved', 'good');
+ FormResponse::status_message(_t('GenericDataAdmin.SAVED', 'Saved'), 'good');
FormResponse::update_status($generic->Status);
if (method_exists($this, "saveAfterCall")) {
@@ -548,7 +549,7 @@ HTML;
// clear session data
Session::clear('currentPage');
- FormResponse::status_message('Successfully deleted', 'good');
+ FormResponse::status_message(_t('GenericDataAdmin.DELETEDSUCCESS', 'Successfully deleted'), 'good');
FormResponse::add("$('Form_EditForm').deleteEffect();");
return FormResponse::respond();
diff --git a/code/MemberList.php b/code/MemberList.php
index 5fbdb10f..3a18be9c 100755
--- a/code/MemberList.php
+++ b/code/MemberList.php
@@ -251,16 +251,16 @@ class MemberList extends FormField {
function OrderByField() {
$fields = new FieldGroup( new DropdownField('MemberListOrderByField','', array(
- 'FirstName' => 'FirstName',
- 'Surname' => 'Surname',
- 'Email' => 'Email'
+ 'FirstName' => _t('MemberList.FN', 'FirstName'),
+ 'Surname' => _t('MemberList.SN', 'Surname'),
+ 'Email' => _t('MemberList.EMAIL', 'Email')
)),
new DropdownField('MemberListOrderByOrder','',array(
- 'ASC' => 'Ascending',
- 'DESC' => 'Descending'
+ 'ASC' => _t('MemberList.ASC', 'Ascending'),
+ 'DESC' => _t('MemberList.DESC', 'Descending')
)));
- $field = new FieldGroup( new LabelField( 'Order by' ), $fields );
+ $field = new FieldGroup( new LabelField(_t('MemberList.ORDERBY', 'Order by')), $fields );
return $field->FieldHolder();
}
@@ -268,7 +268,7 @@ class MemberList extends FormField {
$groups = DataObject::get('Group');
- $groupArray = array( '' => 'Any group' );
+ $groupArray = array( '' => _t('MemberList.ANYGROUP', 'Any group'));
foreach( $groups as $group )
$groupArray[$group->ID] = $group->Title;
diff --git a/code/MemberTableField.php b/code/MemberTableField.php
index 102b3f61..c50e3b70 100755
--- a/code/MemberTableField.php
+++ b/code/MemberTableField.php
@@ -78,9 +78,9 @@ class MemberTableField extends ComplexTableField {
array_push( $this->permissions, $permission );
$fieldList = array(
- "FirstName" => "Firstname",
- "Surname" => "Surname",
- "Email" => "Email"
+ "FirstName" => _t('MemberTableField.FIRSTNAME', 'Firstname'),
+ "Surname" => _t('MemberTableField.SURNAME', 'Surname'),
+ "Email" => _t('MemberTableField.EMAIL', 'Email')
);
$csvFieldList = $fieldList;
@@ -163,35 +163,35 @@ class MemberTableField extends ComplexTableField {
function SearchForm() {
$searchFields = new FieldGroup(
- new TextField('MemberSearch', 'Search'),
+ new TextField('MemberSearch', _t('MemberTableField.SEARCH', 'Search')),
new HiddenField("ctf[ID]",'',$this->group->ID),
new HiddenField('MemberFieldName','',$this->name),
new HiddenField('MemberDontShowPassword','',$this->hidePassword)
);
$orderByFields = new FieldGroup(
- new LabelField('Order by'),
+ new LabelField(_t('MemberTableField.ORDERBY', 'Order by')),
new FieldSet(
new DropdownField('MemberOrderByField','', array(
- 'FirstName' => 'FirstName',
- 'Surname' => 'Surname',
- 'Email' => 'Email'
+ 'FirstName' => _t('MemberTableField.FIRSTNAME', 'FirstName'),
+ 'Surname' => _t('MemberTableField.SURNAME', 'Surname'),
+ 'Email' => _t('MemberTableField', 'Email')
)),
new DropdownField('MemberOrderByOrder','',array(
- 'ASC' => 'Ascending',
- 'DESC' => 'Descending'
+ 'ASC' => _t('MemberTableField.ASC', 'Ascending'),
+ 'DESC' => _t('MemberTableField.DESC', 'Descending')
))
)
);
$groups = DataObject::get('Group');
- $groupArray = array('' => 'Any group');
+ $groupArray = array('' => _t('MemberTableField.ANYGROUP', 'Any group'));
foreach( $groups as $group ) {
$groupArray[$group->ID] = $group->Title;
}
- $groupFields = new DropdownField('MemberGroup','Filter by group',$groupArray );
+ $groupFields = new DropdownField('MemberGroup', _t('MemberTableField.FILTERBYGROUP', 'Filter by group'),$groupArray );
- $actionFields = new LiteralField('MemberFilterButton','');
+ $actionFields = new LiteralField('MemberFilterButton','');
$fieldContainer = new FieldGroup(
$searchFields,
@@ -212,7 +212,7 @@ class MemberTableField extends ComplexTableField {
unset($data['ID']);
if(!is_numeric($data['ctf']['ID'])) {
- FormResponse::status_messsage('Adding failed', 'bad');
+ FormResponse::status_messsage(_t('MemberTableField.ADDINGFIELD', 'Adding failed'), 'bad');
}
$className = $this->stat('data_class');
diff --git a/code/Newsletter/BatchProcess.php b/code/Newsletter/BatchProcess.php
index 2914fcf3..e360c0e7 100755
--- a/code/Newsletter/BatchProcess.php
+++ b/code/Newsletter/BatchProcess.php
@@ -88,13 +88,13 @@ class BatchProcess_Controller extends Controller {
$processID = $this->urlParams['ID'];
if( !$processID ) {
- return "ERROR: Could not continue process";
+ return _t('BatchProcess_Controller.ERROR', 'ERROR: Could not continue process');
}
$process = unserialize(Session::get('BatchProcesses.' . ($this->urlParams['ID'] - 1)));
if( !$process ) {
- return "ERROR:Could not continue process";
+ return _t('BatchProcess_Controller.ERROR', 'ERROR:Could not continue process');
}
if( $this->urlParams['Batch'] )
diff --git a/code/Newsletter/Newsletter.php b/code/Newsletter/Newsletter.php
index 9f517302..79fa6d54 100755
--- a/code/Newsletter/Newsletter.php
+++ b/code/Newsletter/Newsletter.php
@@ -24,18 +24,18 @@ class Newsletter extends DataObject {
$sent_status_report = $this->renderWith("Newsletter_SentStatusReport");
$ret = new FieldSet(
new TabSet("Root",
- $mailTab = new Tab("Newsletter",
- new TextField("Subject", "Subject", $this->Subject),
- new HtmlEditorField("Content", "Content")
+ $mailTab = new Tab(_t('Newsletter.NEWSLETTER', 'Newsletter'),
+ new TextField("Subject", _t('Newsletter.SUBJECT', 'Subject'), $this->Subject),
+ new HtmlEditorField("Content", _t('Newsletter.CONTENT', 'Content'))
),
- $sentToTab = new Tab("Sent Status Report",
+ $sentToTab = new Tab(_t('Newsletter.SENTREPORT', 'Sent Status Report'),
new LiteralField("Sent Status Report", $sent_status_report)
)
)
);
if( $this->Status != 'Draft' ) {
- $mailTab->push( new ReadonlyField("SendDate", "Sent at", $this->SendDate) );
+ $mailTab->push( new ReadonlyField("SendDate", _t('Newsletter.SENTAT', 'Sent at'), $this->SendDate) );
}
diff --git a/code/Newsletter/NewsletterType.php b/code/Newsletter/NewsletterType.php
index 11918a18..03120d84 100755
--- a/code/Newsletter/NewsletterType.php
+++ b/code/Newsletter/NewsletterType.php
@@ -54,7 +54,7 @@ class NewsletterType extends DataObject {
if($this->ID){
$group = $this->Group();
if($group->Title != "$this->Title"){
- $group->Title = "Mailing List: " . $this->Title;
+ $group->Title = _t('NewsletterType.MAILINGLIST', 'Mailing List:').' '. $this->Title;
// Otherwise the code would have mailing list in it too :-(
$group->Code = SiteTree::generateURLSegment($this->Title);
$group->write();
@@ -73,20 +73,20 @@ class NewsletterType extends DataObject {
}
$fields = new FieldSet(
- new TextField("Title", "Newsletter Type"),
- new TextField("FromEmail", "Send newsletters from"),
+ new TextField("Title", _t('NewsletterType.NEWSLETTERTYPE', 'Newsletter Type')),
+ new TextField("FromEmail", _t('NewsletterType.SENDFROM', 'Send newsletters from')),
new TabSet("Root",
- new Tab("Drafts",
- $draftList = new NewsletterList("Draft", $this, "Draft")
+ new Tab(_t('NewsletterType.DRAFTS', 'Drafts'),
+ $draftList = new NewsletterList("Draft", $this, _t('NewsletterType.DRAFT', 'Draft'))
),
- new TabSet("Sent",
- new Tab("Sent",
- $sendList = new NewsletterList("Send", $this, "Send")
+ new TabSet('Sent',
+ new Tab(_t('NewsletterType.SENT', 'Sent'),
+ $sendList = new NewsletterList("Send", $this, _t('NewsletterType.SEND', 'Send'))
),
- new Tab("Unsubscribed",
+ new Tab(_t('NewsletterType.UNSUBSCRIBED', 'Unsubscribed'),
$unsubscribedList = new UnsubscribedList("Unsubscribed", $this)
),
- new Tab("Bounced",
+ new Tab(_t('NewsletterType.BOUNCED', 'Bounced'),
$bouncedList = new BouncedList("Bounced", $this )
)
)
@@ -96,15 +96,15 @@ class NewsletterType extends DataObject {
if($this->GroupID) {
$fields->addFieldToTab('Root',
new TabSet("Recipients",
- new Tab( "Recipients",
+ new Tab( _t('NewsletterType.RECIPIENTS', 'Recipients'),
$recipients = new MemberTableField(
$this,
"Recipients",
$group
)
),
- new Tab( "Import",
- $importField = new RecipientImportField("ImportFile","Import from file", $group )
+ new Tab( _t('NewsletterType.IMPORT', 'Import'),
+ $importField = new RecipientImportField("ImportFile", _t('NewsletterType.IMPORTFROM', 'Import from file'), $group )
)
)
);
@@ -115,7 +115,7 @@ class NewsletterType extends DataObject {
}
$fields->addFieldToTab('Root',
- new Tab("Template",
+ new Tab(_t('NewsletterType.TEMPLATE', 'Template'),
$templates = new TemplateList("Template","Template", $this->Template, NewsletterAdmin::template_path())
)
);
diff --git a/code/Newsletter/TemplateList.php b/code/Newsletter/TemplateList.php
index b180bd07..c5c598d5 100755
--- a/code/Newsletter/TemplateList.php
+++ b/code/Newsletter/TemplateList.php
@@ -20,7 +20,7 @@ class TemplateList extends DropdownField {
}
private function getTemplates() {
- $templates = array( "" => "None" );
+ $templates = array( "" => _t('TemplateList.NONE', 'None') );
$absPath = Director::baseFolder();
if( $absPath{strlen($absPath)-1} != "/" )
diff --git a/code/Newsletter/Unsubscribe.php b/code/Newsletter/Unsubscribe.php
index ceb6f3e1..6dc542f0 100755
--- a/code/Newsletter/Unsubscribe.php
+++ b/code/Newsletter/Unsubscribe.php
@@ -45,7 +45,7 @@ class Unsubscribe_Controller extends Page_Controller {
}
if($this->urlParams['Email'] == "done")
- $listForm->sessionMessage("Thank you. You have been removed from the selected groups", "good");
+ $listForm->sessionMessage(_t('Unsubscribe.SUCCESS', 'Thank you. You have been removed from the selected groups'), "good");
return $this->customise( array( 'Content' => $listForm->forTemplate() ) )->renderWith('Page');
}
@@ -101,7 +101,7 @@ class Unsubscribe_Controller extends Page_Controller {
$url = "unsubscribe/done/".$member->Email."/".$nlTypeTitles;
Director::redirect($url);
} else {
- $form->addErrorMessage('MailingLists', 'You need to select at least one mailing list to unsubscribe from.', 'bad');
+ $form->addErrorMessage('MailingLists', _t('Unsubscribe.NOMLSELECTED', 'You need to select at least one mailing list to unsubscribe from.'), 'bad');
Director::redirectBack();
}
}
@@ -135,15 +135,15 @@ class Unsubscribe_MailingListForm extends Form {
$lists = $this->getMailingLists( $member );
if( $lists ) {
- $fields->push( new LabelField( 'You are subscribed to the following lists:' ) );
+ $fields->push( new LabelField( _t('Unsubcribe.SUBSCRIBEDTO', 'You are subscribed to the following lists:')) );
foreach( $lists as $list ) {
$fields->push( new CheckboxField( "MailingLists[{$list->ID}]", $list->Title ) );
}
- $actions->push( new FormAction('unsubscribe', 'Unsubscribe' ) );
+ $actions->push( new FormAction('unsubscribe', _t('Unsubscribe.UNSUBSCRIBE', 'Unsubscribe') ) );
} else {
- $fields->push( new LabelField( "I'm sorry, but $email doesn't appear to be in any of our mailing lists." ) );
+ $fields->push( new LabelField(sprintf(_t('Unsubscribe.NOTSUBSCRIBED', 'I\'m sorry, but %s doesn\'t appear to be in any of our mailing lists.'), $email) ) );
}
parent::__construct( $controller, $name, $fields, $actions );
@@ -170,11 +170,11 @@ class Unsubscribe_EmailAddressForm extends Form {
function __construct( $controller, $name ) {
$fields = new FieldSet(
- new EmailField( 'Email', 'Email address' )
+ new EmailField( 'Email', _t('Unsubscribe.EMAILADDR', 'Email address') )
);
$actions = new FieldSet(
- new FormAction( 'showlists', 'Show lists' )
+ new FormAction( 'showlists', _t('Unsubscribe.SHOWLISTS', 'Show lists') )
);
parent::__construct( $controller, $name, $fields, $actions );
@@ -199,7 +199,7 @@ class Unsubscribe_Successful extends Form {
}
function setSuccessfulMessage($email, $newsletterTypes) {
Requirements::themedCSS("form");
- $this->setMessage("Thank you. $email will no longer receive the $newsletterTypes.", "good");
+ $this->setMessage(sprintf(_t('Unsubscribe.REMOVESUCCESS', 'Thank you. %s will no longer receive the %s.'), $email, $newsletterTypes), "good");
}
}
diff --git a/code/NewsletterAdmin.php b/code/NewsletterAdmin.php
index 7b225b92..9a5ddd50 100755
--- a/code/NewsletterAdmin.php
+++ b/code/NewsletterAdmin.php
@@ -236,10 +236,10 @@ class NewsletterAdmin extends LeftAndMain {
if(isset($mailType)&&$mailType) {
$fields = new FieldSet(
new TabSet("Root",
- new Tab("Newsletter Settings",
+ new Tab(_t('NewsletterAdmin.NLSETTINGS', 'Newsletter Settings'),
new TextField("Title", _t('NewsletterAdmin.NEWSLTYPE','Newsletter Type')),
new TextField("FromEmail", _t('NewsletterAdmin.FROMEM','From email address')),
- $templates = new TemplateList("Template","Template", $mailType->Template, self::template_path())
+ $templates = new TemplateList("Template", _t('NewsletterAdmin.TEMPLATE', 'Template'), $mailType->Template, self::template_path())
)
)
);
@@ -250,7 +250,7 @@ class NewsletterAdmin extends LeftAndMain {
$fields->push( new HiddenField( "executeForm", "", "TypeEditForm" ) );
$idField->setValue($id);
- $actions = new FieldSet(new FormAction('save','Save'));
+ $actions = new FieldSet(new FormAction('save', _t('NewsletterAdmin.SAVE', 'Save')));
$form = new Form($this, "EditForm", $fields, $actions);
$form->loadDataFrom(array(
@@ -284,20 +284,20 @@ class NewsletterAdmin extends LeftAndMain {
if(isset($mailType) && is_object($mailType)) {
$fields = new FieldSet(
new TabSet("Root",
- new Tab( "Recipients",
+ new Tab(_t('NewsletterAdmin.RECIPIENTS', 'Recipients'),
$recipients = new MemberTableField(
$this,
"Recipients",
$group
)
),
- new Tab( "Import",
- $importField = new RecipientImportField("ImportFile","Import from file", $group )
+ new Tab(_t('NewsletterAdmin.IMPORT', 'Import'),
+ $importField = new RecipientImportField("ImportFile",_t('NewsletterAdmin.IMPORTFROM', 'Import from file'), $group )
),
- new Tab("Unsubscribers",
+ new Tab(_t('NewsletterAdmin.UNSUBSCRIBERS', 'Unsubscribers'),
$unsubscribedList = new UnsubscribedList("Unsubscribed", $mailType)
),
- new Tab("Bounced", $bouncedList = new BouncedList("Bounced", $mailType )
+ new Tab(_t('NewsletterAdmin.BOUNCED','Bounced'), $bouncedList = new BouncedList("Bounced", $mailType )
)
)
);
@@ -350,7 +350,7 @@ class NewsletterAdmin extends LeftAndMain {
} else {
user_error("NewsletterAdmin::removebouncedmember: Bad parameters: Group=$groupID, Member=".$bounceObject->MemberID, E_USER_ERROR);
}
- FormResponse::status_message($memberObject->Email.' was removed from the mailing list', 'good');
+ FormResponse::status_message($memberObject->Email.' '._t('NewsletterAdmin.REMOVEDSUCCESS', 'was removed from the mailing list'), 'good');
FormResponse::add("$('Form_EditForm').getPageFromServer($('Form_EditForm_ID').value, 'recipients');");
return FormResponse::respond();
}
@@ -429,7 +429,7 @@ class NewsletterAdmin extends LeftAndMain {
$id = isset($_REQUEST['ID']) ? $_REQUEST['ID'] : $_REQUEST['NewsletterID'];
if( !$id ) {
- FormResponse::status_message('No newsletter specified','bad');
+ FormResponse::status_message(_t('NewsletterAdmin.NONLSPECIFIED', 'No newsletter specified'),'bad');
return FormResponse::respond();
}
@@ -552,11 +552,11 @@ class NewsletterAdmin extends LeftAndMain {
// If the email is currently not blocked, block it
if (FALSE == $memberObject->BlacklistedEmail) {
$memberObject->setBlacklistedEmail(TRUE);
- FormResponse::status_message($memberObject->Email.' was added to blacklist', 'good');
+ FormResponse::status_message($memberObject->Email.' '._t('NewsletterAdmin.ADDEDTOBL', 'was added to blacklist'), 'good');
} else {
// Unblock the email
$memberObject->setBlacklistedEmail(FALSE);
- FormResponse::status_message($memberObject->Email.' was removed from blacklist', 'good');
+ FormResponse::status_message($memberObject->Email.' '._t('NewsletterAdmin.REMOVEDFROMBL','was removed from blacklist'), 'good');
}
return FormResponse::respond();
}
diff --git a/code/PageTypes/UserDefinedForm.php b/code/PageTypes/UserDefinedForm.php
index d7f16bb4..7c81a897 100755
--- a/code/PageTypes/UserDefinedForm.php
+++ b/code/PageTypes/UserDefinedForm.php
@@ -43,9 +43,9 @@ class UserDefinedForm extends Page {
function getCMSFields($cms) {
$fields = parent::getCMSFields($cms);
- $fields->addFieldToTab("Root.Form", new FieldEditor("Fields", "Fields", "", $this ));
- $fields->addFieldToTab("Root.Submissions", new SubmittedFormReportField( "Reports", "Received Submissions", "", $this ) );
- $fields->addFieldToTab("Root.Content.On complete", new HtmlEditorField( "OnCompleteMessage", "Show on completion",3,"",$this->OnCompleteMessage, $this ) );
+ $fields->addFieldToTab("Root."._t('UserDefinedForm.FORM', 'Form'), new FieldEditor("Fields", 'Fields', "", $this ));
+ $fields->addFieldToTab("Root."._t('UserDefinedForm.SUBMISSIONS','Submissions'), new SubmittedFormReportField( "Reports", _t('UserDefinedForm.RECEIVED', 'Received Submissions'), "", $this ) );
+ $fields->addFieldToTab("Root.Content."._t('UserDefinedForm.ONCOMPLETE','On complete'), new HtmlEditorField( "OnCompleteMessage", _t('UserDefinedForm.ONCOMPLETELABEL', 'Show on completion'),3,"",_t('UserDefinedForm.ONCOMPLETEMESSAGE', $this->OnCompleteMessage), $this ) );
return $fields;
}
@@ -61,7 +61,7 @@ class UserDefinedForm extends Page {
// Build actions
$actions = new FieldSet(
- new FormAction( "filter", "Submit" )
+ new FormAction( "filter", _t('UserDefinedForm.SUBMIT', 'Submit') )
);
// set the name of the form
@@ -116,12 +116,12 @@ class UserDefinedForm extends Page {
$submittedValues = DataObject::get( 'SubmittedFormField', implode( ' AND ', $filterClause ), "", "INNER JOIN `SubmittedForm` ON `SubmittedFormField`.`ParentID`=`SubmittedForm`.`ID`" );
if( !$submittedValues || $submittedValues->Count() == 0 )
- return "No matching results found";
+ return _t('UserDefinedForm.NORESULTS', 'No matching results found');
$submissions = $submittedValues->groupWithParents( 'ParentID', 'SubmittedForm' );
if( !$submissions || $submissions->Count() == 0 )
- return "No matching results found";
+ return _t('UserDefinedForm.NORESULTS', 'No matching results found');
return $submissions->customise(
array( 'Submissions' => $submissions )
@@ -141,7 +141,7 @@ class UserDefinedForm extends Page {
}
public function customFormActions( $isReadonly = false ) {
- return new FieldSet( new TextField( "SubmitButtonText", "Text on submit button:", $this->SubmitButtonText ) );
+ return new FieldSet( new TextField( "SubmitButtonText", _t('UserDefinedForm.TEXTONSUBMIT', 'Text on submit button:'), $this->SubmitButtonText ) );
}
/**
@@ -325,10 +325,11 @@ class UserDefinedForm_SubmittedFormEmail extends Email_Template {
protected $ss_template = "SubmittedFormEmail";
protected $from = '$Sender.Email';
protected $to = '$Recipient.Email';
- protected $subject = "Submission of form";
+ protected $subject = 'Submission of form';
protected $data;
function __construct($values) {
+ $this->subject = _t('UserDefinedForm_SubmittedFormEmail.EMAILSUBJECT', 'Submission of form');
parent::__construct();
$this->data = $values;
diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php
index 19ced52e..87d02c7e 100644
--- a/code/SecurityAdmin.php
+++ b/code/SecurityAdmin.php
@@ -44,8 +44,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
if($record) {
$fields = new FieldSet(
new TabSet("Root",
- new Tab("Members",
- new TextField("Title", "Group name"),
+ new Tab(_t('SecurityAdmin.MEMBERS', 'Members'),
+ new TextField("Title", _t('SecurityAdmin.GROUPNAME', 'Group name')),
$memberList = new MemberTableField(
$this,
"Members",
@@ -53,7 +53,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
)
),
- new Tab("Permissions",
+ new Tab(_t('SecurityAdmin.PERMISSIONS', 'Permissions'),
new LiteralField("", "Select a report type from the left for a detailed look at site statistics
\n\n" .
+ "._t('StatisticsAdmin.WELCOME','Select a report type from the left for a detailed look at site statistics')."
\n\n" .
$this->RecentViews() .
"\n\n No images found in ". $folder->Title. "
";
+ $result = ' '._t('ThumbnailStripField.NOIMAGESFOUND', 'No images found in').' '. $folder->Title. '
';
}
return $result;
diff --git a/lang/pt_PT.php b/lang/pt_PT.php
index 43814206..b7457f0d 100644
--- a/lang/pt_PT.php
+++ b/lang/pt_PT.php
@@ -349,4 +349,251 @@ $lang['pt_PT']['ViewArchivedEmail.ss']['CANACCESS'] = 'Pode aceder ao site arqui
$lang['pt_PT']['ViewArchivedEmail.ss']['HAVEASKED'] = 'Pediu para ver o conteúdo do seu site em';
$lang['pt_PT']['WaitingOn.ss']['ATO'] = 'atribuído a';
+// --- New New New
+
+$lang['pt_PT']['Page']['SINGULARNAME'] = 'Página';
+$lang['pt_PT']['Page']['PLURALNAME'] = 'Páginas';
+$lang['pt_PT']['ErrorPage']['SINGULARNAME'] = 'Página de Erro';
+$lang['pt_PT']['ErrorPage']['PLURALNAME'] = 'Páginas de Erro';
+$lang['pt_PT']['UserDefinedForm']['SINGULARNAME'] = 'Formulário Definido pelo Utilizador';
+$lang['pt_PT']['UserDefinedForm']['PLURALNAME'] = 'Formulários Definidos pelo Utilizador';
+$lang['pt_PT']['RedirectorPage']['SINGULARNAME'] = 'Página de Redireccionamento';
+$lang['pt_PT']['RedirectorPage']['PLURALNAME'] = 'Páginas de Redireccionamento';
+$lang['pt_PT']['VirtualPage']['SINGULARNAME'] = 'Página Virtual';
+$lang['pt_PT']['VirtualPage']['PLURALNAME'] = 'Páginas Virtuais';
+$lang['pt_PT']['SubscribeForm']['SINGULARNAME'] = 'Página de Subscrição';
+$lang['pt_PT']['SubscribeForm']['PLURALNAME'] = 'Páginas de Subscrição';
+
+// ThumbnailStripField.php
+$lang['pt_PT']['ThumbnailStripField']['NOIMAGESFOUND'] = 'Nenhuma imagem encontrada em';
+
+// StatisticsAdmin.php
+$lang['pt_PT']['StatisticsAdmin']['WELCOME'] = 'Seleccione um tipo de relatório na esquerda para ver as estatísticas do site mais detalhadamente';
+
+// SecurityAdmin.php
+$lang['pt_PT']['SecurityAdmin']['MEMBERS'] = 'Membros';
+$lang['pt_PT']['SecurityAdmin']['GROUPNAME'] = 'Nome do Grupo';
+$lang['pt_PT']['SecurityAdmin']['PERMISSIONS'] = 'Permissões';
+$lang['pt_PT']['SecurityAdmin']['CODE'] = 'Código';
+$lang['pt_PT']['SecurityAdmin']['OPTIONALID'] = 'ID Opcional';
+$lang['pt_PT']['SecurityAdmin']['EDITPERMISSIONS'] = 'Editar permissões em cada grupo';
+
+// NewsletterAdmin.php
+$lang['pt_PT']['NewsletterAdmin']['NLSETTINGS'] = 'Definições da Newsletter';
+$lang['pt_PT']['NewsletterAdmin']['TEMPLATE'] = 'Modelo';
+$lang['pt_PT']['NewsletterAdmin']['SAVE'] = 'Gravar';
+$lang['pt_PT']['NewsletterAdmin']['RECIPIENTS'] = 'Recipientes';
+$lang['pt_PT']['NewsletterAdmin']['IMPORT'] = 'Importar';
+$lang['pt_PT']['NewsletterAdmin']['UNSUBSCRIBERS'] = 'Subscrições Removidas';
+$lang['pt_PT']['NewsletterAdmin']['BOUNCED'] = 'Devolvidos';
+$lang['pt_PT']['NewsletterAdmin']['REMOVEDSUCCESS'] = 'foi removido da lista de email';
+$lang['pt_PT']['NewsletterAdmin']['NONLSPECIFIED'] = 'Nenhuma lista de email especificada';
+$lang['pt_PT']['NewsletterAdmin']['ADDEDTOBL'] = 'foi adicionado á lista negra';
+$lang['pt_PT']['NewsletterAdmin']['REMOVEDFROMBL'] = 'foi removido da lista negra';
+$lang['pt_PT']['NewsletterAdmin']['IMPORTFROM'] = 'Importar do ficheiro';
+
+// MemberTableField.php
+$lang['pt_PT']['MemberTableField']['FIRSTNAME'] = 'Primeiro Nome';
+$lang['pt_PT']['MemberTableField']['SURNAME'] = 'Último Nome';
+$lang['pt_PT']['MemberTableField']['EMAIL'] = 'Email';
+$lang['pt_PT']['MemberTableField']['SEARCH'] = 'Pesquisa';
+$lang['pt_PT']['MemberTableField']['ORDERBY'] = 'Ordenar por';
+$lang['pt_PT']['MemberTableField']['ASC'] = 'Ascendente';
+$lang['pt_PT']['MemberTableField']['DESC'] = 'Descendente';
+$lang['pt_PT']['MemberTableField']['ANYGROUP'] = 'Qualquer Grupo';
+$lang['pt_PT']['MemberTableField']['FILTERBYGROUP'] = 'Filtrar por Grupo';
+$lang['pt_PT']['MemberTableField']['FILTER'] = 'Filtrar';
+$lang['pt_PT']['MemberTableField']['ADDINGFIELD'] = 'A adicionar campo';
+
+// MemberTableField.php
+$lang['pt_PT']['MemberList']['ASC'] = 'Ascendente';
+$lang['pt_PT']['MemberList']['DESC'] = 'Descendente';
+$lang['pt_PT']['MemberList']['ORDERBY'] = 'Ordenar por';
+$lang['pt_PT']['MemberList']['ANYGROUP'] = 'Qualquer Grupo';
+
+// ImageEditor.php
+$lang['pt_PT']['ImageEditor']['ERROR'] = 'Erro:';
+
+// GenericDataAdmin.php
+$lang['pt_PT']['GenericDataAdmin']['EXPORTCSV'] = 'Exportar em CSV';
+$lang['pt_PT']['GenericDataAdmin']['CREATE'] = 'Criar';
+$lang['pt_PT']['GenericDataAdmin']['GO'] = 'Ir';
+$lang['pt_PT']['GenericDataAdmin']['SAVE'] = 'Gravar';
+$lang['pt_PT']['GenericDataAdmin']['DELETE'] = 'Apagar';
+$lang['pt_PT']['GenericDataAdmin']['FOUND'] = 'encontrados:';
+$lang['pt_PT']['GenericDataAdmin']['CHOOSECRIT'] = 'Por favor escolha um critério para a pesquisa e clique em \'Ir\'.';
+$lang['pt_PT']['GenericDataAdmin']['CHOOSECRIT'] = 'Nenhuma ocorrência de %s encontrada.';
+$lang['pt_PT']['GenericDataAdmin']['SAVED'] = 'Gravado';
+$lang['pt_PT']['GenericDataAdmin']['DELETEDSUCCESS'] = 'Apagado com sucesso';
+
+// GenericDataAdmin.php
+$lang['pt_PT']['CommentAdmin']['NAME'] = 'Nome';
+$lang['pt_PT']['CommentAdmin']['COMMENT'] = 'Comentário';
+$lang['pt_PT']['CommentAdmin']['COMMENTS'] = 'Comentários';
+$lang['pt_PT']['CommentAdmin']['DELETED'] = '% comentário(s) apagado(s).';
+$lang['pt_PT']['CommentAdmin']['MARKEDSPAM'] = '% comentário(s) marcados como spam.';
+$lang['pt_PT']['CommentAdmin']['MARKEDNOTSPAM'] = '% comentário(s) marcados como não sendo spam.';
+$lang['pt_PT']['CommentAdmin']['APPROVED'] = '% comentário(s) aprovado(s).';
+
+// CMSMain.php
+$lang['pt_PT']['CMSMain']['REMOVED'] = '\'%s\' Removido%s do site publicado';
+$lang['pt_PT']['CMSMain']['DESCREMOVED'] = 'e %s descendentes';
+$lang['pt_PT']['CMSMain']['REPORT'] = 'Relatório';
+$lang['pt_PT']['CMSMain']['ACCESS'] = 'Acesso a %s no CMS';
+
+// AssetTableField.php
+$lang['pt_PT']['AssetTableField']['URL'] = 'URL';
+$lang['pt_PT']['AssetTableField']['MAIN'] = 'Principal';
+$lang['pt_PT']['AssetTableField']['IMAGE'] = 'Imagem';
+$lang['pt_PT']['AssetTableField']['EDITIMAGE'] = 'Editar esta Imagem';
+$lang['pt_PT']['AssetTableField']['GALLERYOPTIONS'] = 'Opções da Galeria';
+$lang['pt_PT']['AssetTableField']['CAPTION'] = 'Texto Alternativo';
+$lang['pt_PT']['AssetTableField']['POPUPWIDTH'] = 'Largura da Janela Popup';
+$lang['pt_PT']['AssetTableField']['POPUPHEIGHT'] = 'Altura da Janela Popup';
+$lang['pt_PT']['AssetTableField']['SWFFILEOPTIONS'] = 'Opções de Ficheiro Flash';
+$lang['pt_PT']['AssetTableField']['ISFLASH'] = 'É um documento Flash';
+$lang['pt_PT']['AssetTableField']['DIMLIMIT'] = 'Limitar as dimensões na Janela de Popup';
+
+// AssetAdmin.php
+$lang['pt_PT']['AssetAdmin']['NOTEMP'] = 'Não existe uma pasta temporária para envio de ficheiros. Por favor adicione um valor em upload_tmp_dir no php.ini.';
+$lang['pt_PT']['AssetAdmin']['URL'] = 'URL';
+$lang['pt_PT']['AssetAdmin']['NOWBROKEN'] = ' As seguintes páginas contêm agora links quebrados:';
+$lang['pt_PT']['AssetAdmin']['NOWBROKEN2'] = 'Os respectivos proprietários receberam um email e brevemente as páginas serão corrigidas.';
+$lang['pt_PT']['AssetAdmin']['FOLDERSDELETED'] = 'pastas apagadas.';
+$lang['pt_PT']['AssetAdmin']['FOLDERDELETED'] = 'pasta apagada.';
+$lang['pt_PT']['AssetAdmin']['THUMBSDELETED'] = 'Todas as miniaturas não usadas foram apagadas.';
+
+// UserDefinedForm.php
+$lang['pt_PT']['UserDefinedForm']['ONCOMPLETE'] = 'Ao Submeter';
+$lang['pt_PT']['UserDefinedForm']['ONCOMPLETEMESSAGE'] = '
Instructions:
+<% _t('INSTRUCTIONS', 'Instructions:') %>
Blacklisted | +<% _t('BLACKLISTED', 'Blacklisted') %> | <% _t('UNAME','User name') %> | <% _t('EMADD','Email address') %> | -Reason: | -Date | +<% _t('RESON', 'Reason:') %> | +<% _t('DATE', 'Date') %> |
---|