diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index ffc8619d..8fdfbc2c 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -162,7 +162,7 @@ HTML; foreach($processedFiles as $file) { if($file['error'] == UPLOAD_ERR_NO_TMP_DIR) { $status = 'bad'; - $statusMessage = 'There is no temporary folder for uploads. Please set upload_tmp_dir in php.ini.'; + $statusMessage = _t('AssetAdmin.NOTEMP', 'There is no temporary folder for uploads. Please set upload_tmp_dir in php.ini.'); break; } @@ -283,7 +283,7 @@ HTML; new HiddenField("DestFolderID") ), new Tab(_t('AssetAdmin.DETAILSTAB', "Details"), - new ReadonlyField("URL"), + new ReadonlyField("URL", _t('AssetAdmin.URL', 'URL')), new ReadonlyField("ClassName", _t('AssetAdmin.TYPE','Type')), new ReadonlyField("Created", _t('AssetAdmin.CREATED','First Uploaded')), new ReadonlyField("LastEdited", _t('AssetAdmin.LASTEDITED','Last Updated')) @@ -542,7 +542,7 @@ JS; $p->ParentID = $parent; $p->Title = _t('AssetAdmin.NEWFOLDER',"NewFolder"); - $p->Name = "NewFolder"; + $p->Name = _t('AssetAdmin.NEWFOLDER', 'NewFolder'); // Get the folder to be created if(isset($parentObj->ID)) $filename = $parentObj->FullPath . $p->Name; @@ -668,12 +668,24 @@ if(!$record) }*/ - + /* $s = (sizeof($ids) > 1) ? "s" :""; $message = sizeof($ids) . " folder$s deleted."; // if(isset($brokenPageList)) $message .= " The following pages now have broken links: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:').''. + _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 = "
"; - $urlLink .= ""; + $urlLink .= ""; $urlLink .= "{$childData->RelativeLink()}"; $urlLink .= "
"; $detailFormFields = new FieldSet( new TabSet("BottomRoot", - new Tab("Main", + new Tab(_t('AssetTableField.MAIN', 'Main'), new TextField("Title", _t('AssetTableField.TITLE','Title')), new TextField("Name", _t('AssetTableField.FILENAME','Filename')), new LiteralField("AbsoluteURL", $urlLink), @@ -93,15 +93,16 @@ class AssetTableField extends ComplexTableField { $big = $childData->URL; $thumbnail = $childData->getFormattedImage('AssetLibraryPreview')->URL; - $detailFormFields->addFieldToTab("BottomRoot.Main", + // Hmm this required the translated string to be appended to BottomRoot to add this to the Main tab + $detailFormFields->addFieldToTab("BottomRoot."._t('AssetTableField.MAIN','Main'), new ReadonlyField("Dimensions", _t('AssetTableField.DIM','Dimensions')), "Created" ); $detailFormFields->addFieldToTab("BottomRoot", - new Tab("Image", + new Tab(_t('AssetTableField.IMAGE', 'Image'), new LiteralField("ImageFull", - '' . "{$childData->Name}

Edit this image

" . '
' . + '' . "{$childData->Name}

"._t('AssetTableField.EDITIMAGE', 'Edit this image')."

" . '
' . '' ) ), @@ -110,8 +111,8 @@ class AssetTableField extends ComplexTableField { if(class_exists('GalleryFile')) { $detailFormFields->addFieldToTab("BottomRoot", - new Tab("Gallery Options", - new TextField( "Content", "Caption" ) + new Tab(_t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'), + new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ) ) ); } @@ -119,22 +120,22 @@ class AssetTableField extends ComplexTableField { else if (class_exists('GalleryFile')) { if( $childData->Extension == 'swf' ) { $detailFormFields->addFieldToTab("BottomRoot", - new Tab("Gallery Options", - new TextField( "Content", "Caption" ), - new TextField( 'PopupWidth', 'Popup Width' ), - new TextField( 'PopupHeight', 'Popup Height' ), - new HeaderField( 'SWF File Options' ), - new CheckboxField( 'Embed', 'Is A Flash Document' ), - new CheckboxField( 'LimitDimensions', 'Limit The Dimensions In The Popup Window' ) + new Tab(_t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'), + new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ), + new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ), + new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') ), + new HeaderField( _t('AssetTableField.SWFFILEOPTIONS', 'SWF File Options') ), + new CheckboxField( 'Embed', _t('AssetTableField.ISFLASH', 'Is A Flash Document') ), + new CheckboxField( 'LimitDimensions', _t('AssetTableField.DIMLIMT', 'Limit The Dimensions In The Popup Window') ) ) ); } else { $detailFormFields->addFieldToTab("BottomRoot", - new Tab("Gallery Options", - new TextField( "Content", "Caption" ), - new TextField( 'PopupWidth', 'Popup Width' ), - new TextField( 'PopupHeight', 'Popup Height' ) + new Tab(_t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'), + new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ), + new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ), + new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') ) ) ); } diff --git a/code/CMSMain.php b/code/CMSMain.php index 56abbbc9..f4a16035 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -271,14 +271,18 @@ JS; // skip this type if it is restricted if($instance->stat('need_permission') && !$this->can( singleton($class)->stat('need_permission') ) ) continue; + /* + * Since i18n_singular_name() this is not necessary $addAction = $instance->uninherited('add_action', true); if($addAction) { // backwards compatibility for actions like "a page" (instead of "page") $addAction = preg_replace('/^a /','',$addAction); $addAction = ucfirst($addAction); } else { - $addAction = $instance->singular_name(); + $addAction = $instance->i18n_singular_name(); } + */ + $addAction = $instance->i18n_singular_name(); $result->push(new ArrayData(array( "ClassName" => $class, @@ -478,12 +482,13 @@ JS; if(isset($descendantsRemoved)) { $descRemoved = " and $descendantsRemoved descendants"; + $descRemoved = sprintf(' '._t('CMSMain.DESCREMOVED', 'and %s descendants'), $descendantsRemoved); } else { $descRemoved = ''; } FormResponse::add($this->deleteTreeNodeJS($record)); - FormResponse::status_message("Deleted '$record->Title'$descRemoved from live site", 'good'); + FormResponse::status_message(sprintf(_t('CMSMain.REMOVED', 'Deleted \'%s\'%s from live site'), $record->Title, $descRemoved), 'good'); return FormResponse::respond(); } @@ -675,7 +680,7 @@ HTML; foreach($reports as $report) { if($report != 'SideReport') $options[$report] = singleton($report)->title(); } - return new DropdownField("ReportSelector","Report",$options); + return new DropdownField("ReportSelector", _t('CMSMain.REPORT', 'Report'),$options); } /** * Get the content for a side report @@ -1322,7 +1327,7 @@ JS $classes = ClassInfo::subclassesFor('LeftAndMain'); foreach($classes as $class) { - $perms["CMS_ACCESS_" . $class] = "Access to $class in CMS"; + $perms["CMS_ACCESS_" . $class] = sprintf(_t('CMSMain.ACCESS', "Access to %s in CMS"), $class); } return $perms; } diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 7bc5957d..cabf6c8e 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -65,8 +65,8 @@ class CommentAdmin extends LeftAndMain { ); $popupFields = new FieldSet( - new TextField("Name"), - new TextareaField("Comment", "Comment") + new TextField('Name', _t('CommentAdmin.NAME', 'Name')), + new TextareaField('Comment', _t('CommentAdmin.COMMENT', 'Comment')) ); $idField = new HiddenField('ID', '', $section); @@ -75,7 +75,7 @@ class CommentAdmin extends LeftAndMain { $fields = new FieldSet( new TabSet( 'Root', - new Tab('Comments', + new Tab(_t('CommentAdmin.COMMENTS', 'Comments'), new LiteralField("Title", $title), $idField, $table @@ -143,10 +143,11 @@ JS; $comment->delete(); } } - + + $msg = sprintf(_t('CommentAdmin.DELETED', 'Deleted %s comments.'), $numComments); echo <<result_actions = new FieldSet( - new FormAction("export","Export as CSV") + new FormAction('export', _t('GenericDataAdmin.EXPORTCSV', 'Export as CSV')) ); parent::__construct(); @@ -120,9 +120,10 @@ abstract class GenericDataAdmin extends LeftAndMain { * @return Form */ function CreationForm() { - $plural_name = singleton($this->stat('data_type'))->plural_name(); - $singular_name = singleton($this->stat('data_type'))->singular_name(); - return new Form($this, 'CreationForm', new FieldSet(), new FieldSet(new FormAction("createRecord", "Create {$singular_name}"))); + // is this plural name used ?? + $plural_name = singleton($this->stat('data_type'))->i18n_plural_name(); + $singular_name = singleton($this->stat('data_type'))->i18_nsingular_name(); + return new Form($this, 'CreationForm', new FieldSet(), new FieldSet(new FormAction("createRecord", _t('GenericDataAdmin.CREATE', 'Create').' '.$singular_name))); } /** @@ -146,7 +147,7 @@ abstract class GenericDataAdmin extends LeftAndMain { function SearchForm() { $fields = $this->getSearchFields(); - $actions = new FieldSet($action = new FormAction("getResults", "Go")); + $actions = new FieldSet($action = new FormAction("getResults", _t('GenericDataAdmin.GO', 'Go'))); $searchForm = new Form($this, "SearchForm", $fields, $actions); $searchForm->loadDataFrom($_REQUEST); @@ -186,10 +187,10 @@ abstract class GenericDataAdmin extends LeftAndMain { $actions = (method_exists($genericData, 'getCMSActions')) ? $genericData->getCMSActions() : new FieldSet(); if(!$actions->fieldByName('action_save')) { - $actions->push(new FormAction('save', 'Save','ajaxAction-save')); + $actions->push(new FormAction('save', _t('GenericDataAdmin.SAVE', 'Save'),'ajaxAction-save')); } if(!$actions->fieldByName('action_delete')) { - $actions->push(new FormAction('delete', 'Delete','ajaxAction-delete')); + $actions->push(new FormAction('delete', _t('GenericDataAdmin.DELETE', 'Delete'),'ajaxAction-delete')); } $required = (method_exists($genericData, 'getCMSRequiredField')) ? $genericData->getCMSRequiredField() : new RequiredFields(); @@ -224,8 +225,8 @@ abstract class GenericDataAdmin extends LeftAndMain { function Results() { $ret = ""; - $singular_name = singleton($this->stat('data_type'))->singular_name(); - $plural_name = singleton($this->stat('data_type'))->plural_name(); + $singular_name = singleton($this->stat('data_type'))->i18n_singular_name(); + $plural_name = singleton($this->stat('data_type'))->i18n_plural_name(); if (!$this->filter) { $this->filter = array( "ClassName" => $this->stat('data_type') @@ -237,7 +238,7 @@ abstract class GenericDataAdmin extends LeftAndMain { $results = $this->performSearch(); if($results) { $name = ($results->Count() > 1) ? $plural_name : $singular_name; - $ret .= "

{$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("", "

"._t('SecurityAdmin.ADVANCEDONLY',"This section is for advanced users only. See this page for more information.")."

"), @@ -61,8 +61,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { "Permissions", "Permission", array( - "Code" => "Code", - "Arg" => "Optional ID", + "Code" => _t('SecurityAdmin.CODE', 'Code'), + "Arg" => _t('SecurityAdmin.OPTIONALID', 'Optional ID'), ), array( "Code" => "PermissionDropdownField", @@ -352,7 +352,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { function providePermissions() { return array( - 'EDIT_PERMISSIONS' => 'Edit Permissions on each Group', + 'EDIT_PERMISSIONS' => _t('SecurityAdmin.EDITPERMISSIONS', 'Edit Permissions on each Group'), ); } } diff --git a/code/StaticExporter.php b/code/StaticExporter.php index 277b71d7..3b8971fb 100755 --- a/code/StaticExporter.php +++ b/code/StaticExporter.php @@ -17,9 +17,9 @@ class StaticExporter extends Controller { parent::init(); if(!Permission::check('ADMIN')) { $messageSet = array( - 'default' => "Enter your email address and password 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', 'Enter your email address and password 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); diff --git a/code/StatisticsAdmin.php b/code/StatisticsAdmin.php index d79628b5..59a83e0a 100644 --- a/code/StatisticsAdmin.php +++ b/code/StatisticsAdmin.php @@ -84,7 +84,7 @@ class StatisticsAdmin extends LeftAndMain { */ public function EditForm() { return "
\n -

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
\n\n" . $this->showAll(); diff --git a/code/ThumbnailStripField.php b/code/ThumbnailStripField.php index aaccfbcc..d5f46683 100755 --- a/code/ThumbnailStripField.php +++ b/code/ThumbnailStripField.php @@ -84,7 +84,7 @@ class ThumbnailStripField extends FormField { } $result .= ''; }else{ - $result = "

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'] = '

Obrigado, recebemos a sua submissão.

'; +$lang['pt_PT']['UserDefinedForm']['ONCOMPLETELABEL'] = 'Mostrar após inserção'; +$lang['pt_PT']['UserDefinedForm']['SUBMISSIONS'] = 'Submissões'; +$lang['pt_PT']['UserDefinedForm']['FORM'] = 'Formulário'; +$lang['pt_PT']['UserDefinedForm']['RECEIVED'] = 'Submissões recebidas'; +$lang['pt_PT']['UserDefinedForm']['SUBMIT'] = 'Submeter'; +$lang['pt_PT']['UserDefinedForm']['NORESULTS'] = 'Nenhum resultado encontrado.'; +$lang['pt_PT']['UserDefinedForm']['TEXTONSUBMIT'] = 'Texto no botão de inserir formulário'; +$lang['pt_PT']['UserDefinedForm_SubmittedFormEmail']['EMAILSUBJECT'] = 'Inserção de formulário'; + +// BatchProcess.php +$lang['pt_PT']['BatchProcess_Controller']['ERROR'] = 'Erro: devido a um erro é impossivel continuar com o processo.'; + +// Newsletter.php +$lang['pt_PT']['Newsletter']['NEWSLETTER'] = 'Email'; +$lang['pt_PT']['Newsletter']['SUBJECT'] = 'Assunto'; +$lang['pt_PT']['Newsletter']['CONTENT'] = 'Conteúdo'; +$lang['pt_PT']['Newsletter']['SENTREPORT'] = 'Relatório de Estado de envio'; +$lang['pt_PT']['Newsletter']['SENTAT'] = 'Enviado Em'; + +// NewsletterType.php +$lang['pt_PT']['NewsletterType']['MAILINGLIST'] = 'Lista de Email:'; +$lang['pt_PT']['NewsletterType']['NEWSLETTERTYPE'] = 'Tipo de Lista de email'; +$lang['pt_PT']['NewsletterType']['SENDFROM'] = 'Enviar newsletter de'; +$lang['pt_PT']['NewsletterType']['DRAFTS'] = 'Rascunhos'; +$lang['pt_PT']['NewsletterType']['DRAFT'] = 'Rascunho'; +$lang['pt_PT']['NewsletterType']['SENT'] = 'Enviado'; +$lang['pt_PT']['NewsletterType']['SEND'] = 'Enviar'; +$lang['pt_PT']['NewsletterType']['UNSUBSCRIBED'] = 'Assinaturas Removidas'; +$lang['pt_PT']['NewsletterType']['BOUNCED'] = 'Devolvidos'; +$lang['pt_PT']['NewsletterType']['RECIPIENTS'] = 'Recipientes'; +$lang['pt_PT']['NewsletterType']['IMPORT'] = 'Importar'; +$lang['pt_PT']['NewsletterType']['IMPORTFROM'] = 'Importar do ficheiro'; +$lang['pt_PT']['NewsletterType']['TEMPLATE'] = 'Modelos'; + +// Unsubscribe.php +$lang['pt_PT']['Unsubscribe']['SUCCESS'] = 'Obrigado. Foi removido dos grupos seleccionados'; +$lang['pt_PT']['Unsubscribe']['NOMLSELECTED'] = 'Tem de seleccionar pelo menos uma lista de email para remover a subscrição'; +$lang['pt_PT']['Unsubscribe']['SUBSCRIBEDTO'] = 'Tem as seguintes lista de email assinadas'; +$lang['pt_PT']['Unsubscribe']['UNSUBSCRIBE'] = 'Remover a Assinatura'; +$lang['pt_PT']['Unsubscribe']['NOTSUBSCRIBED'] = 'Desculpe mas o email %s não se encontra em nenhuma das nossas listas de email.'; +$lang['pt_PT']['Unsubscribe']['EMAILADDR'] = 'Endereço de Email'; +$lang['pt_PT']['Unsubscribe']['SHOWLISTS'] = 'Mostrar Listas'; +$lang['pt_PT']['Unsubscribe']['REMOVESUCCESS'] = 'Obrigado. O email %s não irá receber mais mensagens da lista de email %s'; + +// Unsubscribe.php +$lang['pt_PT']['TemplateList']['NONE'] = 'Nenhum'; + +// NEW NEW NEW NEW + +// WidgetEditor.ss +$lang['pt_PT']['WidgetEditor.ss']['DELETE'] = 'Apagar'; + +// WidgetAreaEditor.ss +$lang['pt_PT']['WidgetAreaEditor.ss']['AVAILABLE'] = 'Widgets Disponíveis'; +$lang['pt_PT']['WidgetAreaEditor.ss']['NOAVAIL'] = 'Não existem widgets disponóveis de momento.'; +$lang['pt_PT']['WidgetAreaEditor.ss']['INUSE'] = 'Widgets Actualmente em uso.'; +$lang['pt_PT']['WidgetAreaEditor.ss']['TOADD'] = 'Para adicionar Widgets arraste-as da esquerda para aqui.'; + +// PageCommentInterface_singlecomment.ss +$lang['pt_PT']['PageCommentInterface_singlecomment.ss']['APPROVE'] = 'Aprovar este comentário'; + +// Newsletter_SentStatusReport.ss +$lang['pt_PT']['Newsletter_SentStatusReport.ss']['FAILEDBL'] = 'Não houve envio para os seguintes recipientes porque estão na lista negra'; + +// Newsletter_RecipientReportField.ss +$lang['pt_PT']['Newsletter_RecipientReportField.ss']['MLRELOAD1'] = 'Para ver os novos membros na lista de recipientes, tem que'; +$lang['pt_PT']['Newsletter_RecipientReportField.ss']['MLRELOAD2'] = 'refrescar a lista'; + +// LeftAndMain.ss +$lang['pt_PT']['LeftAndMain.ss']['EDITINCMS'] = 'Editar esta página no editor de conteúdos'; +$lang['pt_PT']['LeftAndMain.ss']['VIEWINDRAFT'] = 'Vêr esta página no site de rascunho'; +$lang['pt_PT']['LeftAndMain.ss']['VIEWINPUBLISHED'] = 'Vêr esta página no site publicado'; + +// ImageEditor.ss +$lang['pt_PT']['ImageEditor.ss']['EXIT'] = 'sair'; +$lang['pt_PT']['ImageEditor.ss']['ACTIONS'] = 'acções'; +$lang['pt_PT']['ImageEditor.ss']['EDITFUNCTIONS'] = 'funções de edição'; +$lang['pt_PT']['ImageEditor.ss']['APPLY'] = 'aplicar'; +$lang['pt_PT']['ImageEditor.ss']['CURRENTACTION'] = 'acções actual'; + +// CMSMain_dialog.ss +$lang['pt_PT']['CMSMain_dialog.ss']['BUTTONNOTFOUND'] = 'Nome do botão não encontrado'; +$lang['pt_PT']['CMSMain_dialog.ss']['NOLINKED'] = 'windo.linkedObject não encontrado para o click do botão voltar à janela principal'; + +// StatisticsAdmin_left.ss +$lang['pt_PT']['StatisticsAdmin_left.ss']['VIEWS'] = 'Visualizações'; +$lang['pt_PT']['StatisticsAdmin_left.ss']['OS'] = 'Sistemas Operativos'; +$lang['pt_PT']['StatisticsAdmin_left.ss']['BROWSERS'] = 'Navegadores'; +$lang['pt_PT']['StatisticsAdmin_left.ss']['TRENDS'] = 'Tendências'; +$lang['pt_PT']['StatisticsAdmin_left.ss']['STATISTICS'] = 'Estatísticas'; + +// NewsletterAdmin_BouncedList.ss +$lang['pt_PT']['NewsletterAdmin_BouncedList.ss']['INSTRUCTIONS'] = 'Instrucções'; +$lang['pt_PT']['NewsletterAdmin_BouncedList.ss']['INSTRUCTIONS1'] = 'Retire o tick da caixa do email na lista negra para enviar email para o mesmo.'; +$lang['pt_PT']['NewsletterAdmin_BouncedList.ss']['INSTRUCTIONS2'] = 'Para removêr o email da lista de email click no icon'; +$lang['pt_PT']['NewsletterAdmin_BouncedList.ss']['BLACKLISTED'] = 'Na Lista Negra'; +$lang['pt_PT']['NewsletterAdmin_BouncedList.ss']['REASON'] = 'Razão:'; +$lang['pt_PT']['NewsletterAdmin_BouncedList.ss']['DATE'] = 'Data:'; + +// MemberList_PageControls.ss +$lang['pt_PT']['MemberList_PageControls.ss']['VIEWLAST'] = 'Vêr os últimos'; +$lang['pt_PT']['MemberList_PageControls.ss']['LASTMEMBERS'] = 'membros'; +$lang['pt_PT']['MemberList_PageControls.ss']['VIEWFIRST'] = 'Vêr os primeiros'; +$lang['pt_PT']['MemberList_PageControls.ss']['FIRSTMEMBERS'] = 'membros'; +$lang['pt_PT']['MemberList_PageControls.ss']['VIEWPREVIOUS'] = 'Vêr os membros'; +$lang['pt_PT']['MemberList_PageControls.ss']['PREVIOUSMEMBERS'] = 'anteriores'; +$lang['pt_PT']['MemberList_PageControls.ss']['DISPLAYING'] = 'A mostrar'; +$lang['pt_PT']['MemberList_PageControls.ss']['TO'] = 'até'; +$lang['pt_PT']['MemberList_PageControls.ss']['OF'] = 'de'; +$lang['pt_PT']['MemberList_PageControls.ss']['VIEWPREVIOUS'] = 'Vêr os próximos'; +$lang['pt_PT']['MemberList_PageControls.ss']['PREVIOUSMEMBERS'] = 'membros'; + +// GenericDataAdmin_right.ss +$lang['pt_PT']['GenericDataAdmin_right.ss']['WELCOME1'] = 'Bem-vindo a'; +$lang['pt_PT']['genericDataAdmin_right.ss']['WELCOME2'] = 'Por favor, escolha uma opção no painel da esquerda.'; + +// CommentTableField.ss +$lang['pt_PT']['CommentTableField.ss']['EDIT'] = 'editar'; +$lang['pt_PT']['CommentTableField.ss']['APPROVE'] = 'aprovar'; +$lang['pt_PT']['CommentTableField.ss']['SPAM'] = 'spam'; +$lang['pt_PT']['CommentTableField.ss']['HAM'] = 'não spam'; +$lang['pt_PT']['CommentTableField.ss']['DELETE'] = 'apagar'; + +// CommentAdmin_right.ss +$lang['pt_PT']['CommentAdmin_right.ss']['WELCOME1'] = 'Bem-vindo a'; +$lang['pt_PT']['CommentAdmin_right.ss']['WELCOME2'] = 'gestão de comentários. Por favor escolha uma pasta na esquerda.'; + + + + ?> \ No newline at end of file diff --git a/templates/CMSMain_dialog.ss b/templates/CMSMain_dialog.ss index 77de3c71..606e770e 100755 --- a/templates/CMSMain_dialog.ss +++ b/templates/CMSMain_dialog.ss @@ -11,10 +11,10 @@ function buttonClick(el) { window.linkedObject.result = el.name; } else { - throw("Couldn't find the button name"); + throw("<% _t('BUTTONNOTFOUND', 'Couldn\'t find the button name') %>"); } } else { - throw("Can't find window.linkedObject to send the button click back to the main window"); + throw("<% _t('NOLINKED', 'Can\'t find window.linkedObject to send the button click back to the main window') %>"); } window.close(); <% end_if %> diff --git a/templates/ImageEditor.ss b/templates/ImageEditor.ss index d6fe0c11..6070e332 100644 --- a/templates/ImageEditor.ss +++ b/templates/ImageEditor.ss @@ -29,7 +29,7 @@
@@ -47,7 +47,7 @@

@@ -71,7 +71,7 @@
@@ -86,11 +86,11 @@
diff --git a/templates/Includes/AssetTableField.ss b/templates/Includes/AssetTableField.ss index 91af35a2..b5bd0878 100755 --- a/templates/Includes/AssetTableField.ss +++ b/templates/Includes/AssetTableField.ss @@ -20,17 +20,17 @@ <% end_control %> <% if Can(show) %> - show + <% _t('SHOW', 'Show asset') %> <% end_if %> <% if Can(edit) %> - edit + <% _t('EDIT', 'Edit asset') %> <% end_if %> <% if Can(delete) %> - delete + <% _t('DELFILE', 'Delete this file') %> <% end_if %> diff --git a/templates/Includes/CommentAdmin_right.ss b/templates/Includes/CommentAdmin_right.ss index ae4436cd..8b345eb7 100644 --- a/templates/Includes/CommentAdmin_right.ss +++ b/templates/Includes/CommentAdmin_right.ss @@ -5,7 +5,7 @@ $EditForm <% else %>
-

Welcome to the $ApplicationName comment management. Please select a folder in the tree on the left.

+

<% _t('WELCOME1', 'Welcome to the') %> $ApplicationName <% _t('WELCOME2', 'comment management. Please select a folder in the tree on the left.') %>

<% end_if %> diff --git a/templates/Includes/CommentTableField.ss b/templates/Includes/CommentTableField.ss index 5733f4bc..ce40c52a 100644 --- a/templates/Includes/CommentTableField.ss +++ b/templates/Includes/CommentTableField.ss @@ -44,19 +44,19 @@ $Value <% end_control %> <% if Can(edit) %> - edit + <% _t('EDIT', 'edit') %> <% end_if %> <% if HasApproveButton %> - approve + <% _t('APPROVE', 'approve') %> <% end_if %> <% if HasSpamButton %> - spam + <% _t('SPAM', 'spam') %> <% end_if %> <% if HasHamButton %> - ham + <% _t('HAM', 'ham') %> <% end_if %> <% if Can(delete) %> - delete + <% _t('DELETE', 'delete') %> <% end_if %> <% end_control %> diff --git a/templates/Includes/GenericDataAdmin_right.ss b/templates/Includes/GenericDataAdmin_right.ss index f1d56002..850d259b 100755 --- a/templates/Includes/GenericDataAdmin_right.ss +++ b/templates/Includes/GenericDataAdmin_right.ss @@ -6,7 +6,7 @@

$ApplicationName

-

Welcome to $ApplicationName! Please choose click on one of the entries on the left pane.

+

<% _t('WELCOME1', 'Welcome to') %> $ApplicationName! <% _t('WELCOME2', 'Please choose click on one of the entries on the left pane.') %>

<% end_if %> diff --git a/templates/Includes/MemberList_PageControls.ss b/templates/Includes/MemberList_PageControls.ss index c880ffdf..75bae1fd 100755 --- a/templates/Includes/MemberList_PageControls.ss +++ b/templates/Includes/MemberList_PageControls.ss @@ -1,15 +1,15 @@
- <% if LastLink %>View last $PageSize members - <% else %>View last $PageSize members<% end_if %> - <% if FirstLink %>View first $PageSize members - <% else %>View first $PageSize members<% end_if %> - <% if PrevLink %> - <% else %>View previous $PageSize members<% end_if %> + <% if LastLink %>View last $PageSize members + <% else %><% _t('VIEWLAST', 'View last') %> $PageSize <% _t('LASTMEMBERS', 'members') %><% end_if %> + <% if FirstLink %>View first $PageSize members + <% else %><% _t('VIEWFIRST', 'View first') %> $PageSize <% _t('FIRSTMEMBERS', 'members') %><% end_if %> + <% if PrevLink %> + <% else %><% _t('VIEWPREVIOUS', 'View previous') %> $PageSize <% _t('PREVIOUSMEMBERS', 'members') %><% end_if %> - Displaying $FirstMember to $LastMember of $TotalMembers + <% _t('DISPLAYING', 'Displaying') %> $FirstMember <% _t('TO', 'to') %> $LastMember <% _t('OF', 'of') %> $TotalMembers - <% if NextLink %> - <% else %>View next $PageSize members<% end_if %> + <% if NextLink %> + <% else %><% _t('VIEWNEXT', 'View next') %> $PageSize <% _t('NEXTMEMBERS', 'members') %><% end_if %>
diff --git a/templates/Includes/NewsletterAdmin_BouncedList.ss b/templates/Includes/NewsletterAdmin_BouncedList.ss index 5e11321a..38be8283 100755 --- a/templates/Includes/NewsletterAdmin_BouncedList.ss +++ b/templates/Includes/NewsletterAdmin_BouncedList.ss @@ -1,17 +1,17 @@ <% if Entries %> -

Instructions:

+

<% _t('INSTRUCTIONS', 'Instructions:') %>

- + - - + + diff --git a/templates/Includes/StatisticsAdmin_left.ss b/templates/Includes/StatisticsAdmin_left.ss index a05f0b41..307cf587 100644 --- a/templates/Includes/StatisticsAdmin_left.ss +++ b/templates/Includes/StatisticsAdmin_left.ss @@ -1,4 +1,4 @@ -

Statistics

+

<% _t('STATISTICS', 'Statistics') %>

diff --git a/templates/LeftAndMain.ss b/templates/LeftAndMain.ss index 124776f9..483aab20 100644 --- a/templates/LeftAndMain.ss +++ b/templates/LeftAndMain.ss @@ -54,9 +54,9 @@
<% if class = CMSMain %>
<% _t('VIEWPAGEIN','Page view:') %>
- <% _t('EDIT','Edit') %> - | <% _t('DRAFTS','Draft Site') %> - | <% _t('PUBLIS','Published Site') %> + <% _t('EDIT','Edit') %> + | <% _t('DRAFTS','Draft Site') %> + | <% _t('PUBLIS','Published Site') %> <% end_if %>
diff --git a/templates/Newsletter_RecipientImportField.ss b/templates/Newsletter_RecipientImportField.ss index 61d1d301..d31248a8 100755 --- a/templates/Newsletter_RecipientImportField.ss +++ b/templates/Newsletter_RecipientImportField.ss @@ -31,7 +31,7 @@ <% if ImportMessage %>

$ImportMessage -

Note: To see the new members on the Recipients tab, you need to reload the Mailing List.

+

Note:<% _t('MLRELOAD1', 'To see the new members on the Recipients tab, you need to') %> <% _t('MLRELOAD2', 'reload the Mailing List') %>.

Blacklisted<% _t('BLACKLISTED', 'Blacklisted') %> <% _t('UNAME','User name') %> <% _t('EMADD','Email address') %>Reason:Date<% _t('RESON', 'Reason:') %><% _t('DATE', 'Date') %>  
diff --git a/templates/PageCommentInterface_singlecomment.ss b/templates/PageCommentInterface_singlecomment.ss index ad923ec4..32b14941 100755 --- a/templates/PageCommentInterface_singlecomment.ss +++ b/templates/PageCommentInterface_singlecomment.ss @@ -10,7 +10,7 @@