diff --git a/core/model/DataObject.php b/core/model/DataObject.php index e6463e35c..e1fd0ad35 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -231,6 +231,27 @@ class DataObject extends Controller implements DataObjectInterface { return $name; } + /** + * Get the translated user friendly singular name of this DataObject + * same as singular_name() but runs it through the translating function + * + * NOTE: + * It uses as default text if no translation found the $add_action when + * defined or else the default text is singular_name() + * + * Translating string is in the form: + * $this->class.SINGULARNAME + * Example: + * Page.SINGULARNAME + * + * @return string User friendly translated singular name of this DataObject + */ + function i18n_singular_name() + { + $name = (!empty($this->add_action)) ? $this->add_action : $this->singular_name(); + return _t($this->class.'.SINGULARNAME', $name); + } + /** * Get the user friendly plural name of this DataObject * If the name is not defined (by renaming $plural_name in the subclass), @@ -250,6 +271,22 @@ class DataObject extends Controller implements DataObjectInterface { } } + /** + * Get the translated user friendly plural name of this DataObject + * Same as plural_name but runs it through the translation function + * Translation string is in the form: + * $this->class.PLURALNAME + * Example: + * Page.PLURALNAME + * + * @return string User friendly translated plural name of this DataObject + */ + function i18n_plural_name() + { + $name = $this->plural_name(); + return _t($this->class.'.PLURALNAME', $name); + } + /** * Returns the associated database record - in this case, the object itself. * This is included so that you can call $dataOrController->data() and get a DataObject all the time. diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index 11afad36b..1faa03721 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -27,10 +27,10 @@ class ErrorPage extends Page { if(!DataObject::get_one("ErrorPage", "ErrorCode = '404'")) { $errorpage = new ErrorPage(); $errorpage->ErrorCode = 404; - $errorpage->Title = "Page not found"; + $errorpage->Title = _t('ErrorPage.DEFAULTERRORPAGETITLE', 'Page not found'); $errorpage->URLSegment = "page-not-found"; $errorpage->ShowInMenus = false; - $errorpage->Content = "
Sorry, it seems you were trying to access a page that doesn't exist.
Please check the spelling of the URL you were trying to access and try again.
"; + $errorpage->Content = _t('ErrorPage.DEFAULTERRORPAGECONTENT', 'Sorry, it seems you were trying to access a page that doesn\'t exist.
Please check the spelling of the URL you were trying to access and try again.
'); $errorpage->Status = "New page"; $errorpage->write(); // Don't publish, as the manifest may not be built yet @@ -50,8 +50,8 @@ class ErrorPage extends Page { "ErrorCode", _t('ErrorPage.CODE', "Error code"), array( - 404 => "404 - Page not found", - 500 => "500 - Server error" + 404 => _t('ErrorPage.404', '404 - Page not found'), + 500 => _t('ErrorPage.500', '500 - Server error') ) ), "Content" diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index d3c3406f9..0563f7908 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -708,8 +708,8 @@ class SiteTree extends DataObject { if(!DataObject::get_one("SiteTree", "URLSegment = 'home'")) { $homepage = new Page(); - $homepage->Title = "Home"; - $homepage->Content = "Welcome to SilverStripe! This is the default homepage. You can edit this page by opening the CMS. You can now access the developer documentation, or begin the tutorials.
"; + $homepage->Title = _t('SiteTree.DEFAULTHOMETITLE', 'Home'); + $homepage->Content = _t('SiteTree.DEFAULTHOMECONTENT', 'Welcome to SilverStripe! This is the default homepage. You can edit this page by opening the CMS. You can now access the developer documentation, or begin the tutorials.
'); $homepage->URLSegment = "home"; $homepage->Status = "Published"; $homepage->write(); @@ -720,8 +720,8 @@ class SiteTree extends DataObject { if(DB::query("SELECT COUNT(*) FROM SiteTree")->value() == 1) { $aboutus = new Page(); - $aboutus->Title = "About Us"; - $aboutus->Content = "You can fill this page out with your own content, or delete it and create your own pages.
You can fill this page out with your own content, or delete it and create your own pages.
You can fill this page out with your own content, or delete it and create your own pages.
You can fill this page out with your own content, or delete it and create your own pages.
Bem-vindo ao Silverstripe! Esta é a página inicial pré-definida. Pode editar esta página no CMS. Pode vêr a documentação de desenvolvimento, ou os tutoriais.
'; +$lang['pt_PT']['SiteTree']['DEFAULTABOUTTITLE'] = 'Sobre'; +$lang['pt_PT']['SiteTree']['DEFAULTABOUTCONTENT'] = 'Pode inserir o seu conteúdo nesta página ou apaga-la e criar novas.
'; +$lang['pt_PT']['SiteTree']['DEFAULTCONTACTTITLE'] = 'Contacte-nos'; +$lang['pt_PT']['SiteTree']['DEFAULTCONTACTCONTENT'] = 'Pode inserir o seu conteúdo nesta página ou apaga-la e criar novas.
'; + +// core/model/ErrorPage.php +$lang['pt_PT']['ErrorPage']['DEFAULTERRORPAGETITLE'] = 'Página de Erro'; +$lang['pt_PT']['ErrorPage']['DEFAULTERRORPAGECONTENT'] = 'Pedimos desculpa, mas aparentemente tentou aceder a uma página que não existe.
Verifique o URL que utilizou e tente novamente.
'; +$lang['pt_PT']['ErrorPage']['404'] = '404 - Página não encontrada'; +$lang['pt_PT']['ErrorPage']['500'] = '500 - Erro do servidor'; + +// SubmittedFormReportField.ss +$lang['pt_PT']['SubmittedFormReportField.ss']['SUBMITTED'] = 'Inserido em'; + +// RelationComplexTableField.ss +$lang['pt_PT']['RelationComplexTableField.ss']['ADD'] = 'Adicionar'; +$lang['pt_PT']['RelationComplexTableField.ss']['SHOW'] = 'Mostrar'; +$lang['pt_PT']['RelationComplexTableField.ss']['EDIT'] = 'Editar'; +$lang['pt_PT']['RelationComplexTableField.ss']['DELETE'] = 'Apagar'; +$lang['pt_PT']['RelationComplexTableField.ss']['NOTFOUND'] = 'Nenhum item encontrado'; + +// FieldEditor.ss +$lang['pt_PT']['FieldEditor.ss']['ADD'] = 'Adicionar'; +$lang['pt_PT']['FieldEditor.ss']['TEXTTITLE'] = 'Adicionar campo de texto'; +$lang['pt_PT']['FieldEditor.ss']['TEXT'] = 'Texto'; +$lang['pt_PT']['FieldEditor.ss']['CHECKBOXTITLE'] = 'Adicionar caixa de tick'; +$lang['pt_PT']['FieldEditor.ss']['CHECKBOX'] = 'Caixa de Tick'; +$lang['pt_PT']['FieldEditor.ss']['DROPDOWNTITLE'] = 'Adicionar caixa de selecção'; +$lang['pt_PT']['FieldEditor.ss']['DROPDOWN'] = 'Caixa de selecção'; +$lang['pt_PT']['FieldEditor.ss']['RADIOSETTITLE'] = 'Adicionar conjunto de botões de rádio'; +$lang['pt_PT']['FieldEditor.ss']['RADIOSET'] = 'Conjunto de Botões de Rádio'; +$lang['pt_PT']['FieldEditor.ss']['EMAILTITLE'] = 'Adicionar campo de email'; +$lang['pt_PT']['FieldEditor.ss']['EMAIL'] = 'Campo de email'; +$lang['pt_PT']['FieldEditor.ss']['FORMHEADINGTITLE'] = 'Adicionar cabeçalho'; +$lang['pt_PT']['FieldEditor.ss']['FORMHEADING'] = 'Cabeçalho'; +$lang['pt_PT']['FieldEditor.ss']['DATETITLE'] = 'Adicionar Campo de Data'; +$lang['pt_PT']['FieldEditor.ss']['DATE'] = 'Data'; +$lang['pt_PT']['FieldEditor.ss']['FILETITLE'] = 'Adicionar Campo de envio de ficheiro'; +$lang['pt_PT']['FieldEditor.ss']['FILE'] = 'Ficheiro'; +$lang['pt_PT']['FieldEditor.ss']['CHECKBOXGROUPTITLE'] = 'Adicionar Grupo de caixas de tick'; +$lang['pt_PT']['FieldEditor.ss']['CHECKBOXGROUP'] = 'Grupo de Caixas de tick'; +$lang['pt_PT']['FieldEditor.ss']['MEMBERTITLE'] = 'Adicionar Selecção de Membros'; +$lang['pt_PT']['FieldEditor.ss']['MEMBER'] = 'Selecção de Membros'; + +// EditableTextField.ss +$lang['pt_PT']['EditableTextField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableTextField.ss']['TEXTFIELD'] = 'Campo de texto'; +$lang['pt_PT']['EditableTextField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableTextField.ss']['DELETE'] = 'Apagar este campo'; + +// EditableRadioOption.ss +$lang['pt_PT']['EditableRadioOption.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableRadioOption.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableRadioOption.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; + +// EditableRadioField.ss +$lang['pt_PT']['EditableRadioField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableRadioField.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableRadioField.ss']['SET'] = 'Conjunto de botões de rádio'; +$lang['pt_PT']['EditableRadioField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableRadioField.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableRadioField.ss']['REQUIRED'] = 'Este campo é obrigatório para este formulário e não pode ser apagado.'; +$lang['pt_PT']['EditableRadioField.ss']['ADD'] = 'Adicionar opção'; + +// EditableFormHeading.ss +$lang['pt_PT']['EditableFormHeading.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableFormHeading.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableFormHeading.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableFormHeading.ss']['HEADING'] = 'Cabeçalho'; + +// EditableFormField.ss +$lang['pt_PT']['EditableFormField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableFormField.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableFormField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableFormField.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableFormField.ss']['REQUIRED'] = 'Este campo é obrigatório para este formulário e não pode ser apagado.'; + +// EditableRadioOption.ss +$lang['pt_PT']['EditableFormFieldOption.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableFormFieldOption.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableFormFieldOption.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; + +// EditableFileField.ss +$lang['pt_PT']['EditableFileField.ss']['DRAG'] = 'Arraste para reordenar os campos'; + +// EditableFileField.ss +$lang['pt_PT']['EditableFileField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableFileField.ss']['FILE'] = 'Campo de envio de ficheiro'; +$lang['pt_PT']['EditableFileField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableFileField.ss']['DELETE'] = 'Remover esta opção'; + +// EditableEmailField.ss +$lang['pt_PT']['EditableEmailField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableEmailField.ss']['EMAIL'] = 'Campo de email'; +$lang['pt_PT']['EditableEmailField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableEmailField.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableEmailField.ss']['REQUIRED'] = 'Este campo é obrigatório para este formulário e não pode ser apagado.'; + +// EditableDropdown.ss +$lang['pt_PT']['EditableDropdown.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableDropdown.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableDropdown.ss']['DROPDOWN'] = 'Lista de Selecção'; +$lang['pt_PT']['EditableDropdown.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableDropdown.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableDropdown.ss']['REQUIRED'] = 'Este campo é obrigatório para este formulário e não pode ser apagado.'; + +// EditableDropdownOption.ss +$lang['pt_PT']['EditableDropdownOption.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableDropdownOption.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableDropdownOption.ss']['DELETE'] = 'Remover esta opção'; + +// EditableDateField.ss +$lang['pt_PT']['EditableDateField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableDateField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableDateField.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableDateField.ss']['DATE'] = 'Campo de Data'; + +// EditableCheckbox.ss +$lang['pt_PT']['EditableCheckbox.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableCheckbox.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableCheckbox.ss']['CHECKBOX'] = 'Caixa de tick'; +$lang['pt_PT']['EditableCheckbox.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableCheckbox.ss']['DELETE'] = 'Remover esta opção'; + +// EditableCheckboxOption.ss +$lang['pt_PT']['EditableCheckboxOption.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableCheckboxOption.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableCheckboxOption.ss']['DELETE'] = 'Remover esta opção'; + +// EditableCheckboxGroupField.ss +$lang['pt_PT']['EditableCheckboxGroupField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['DATE'] = 'Campo de Data'; + +// EditableCheckboxGroupField.ss +$lang['pt_PT']['EditableCheckboxGroupField.ss']['LOCKED'] = 'Estes campos não podem ser alterados'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['DRAG'] = 'Arraste para reordenar os campos'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['CHECKBOXGROUP'] = 'Grupo de Caixas de tick'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['MORE'] = 'Mais opções'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['DELETE'] = 'Remover esta opção'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['REQUIRED'] = 'Este campo é obrigatório para este formulário e não pode ser apagado.'; +$lang['pt_PT']['EditableCheckboxGroupField.ss']['ADD'] = 'Adicionar opção'; + +// ForgotPasswordEmail.ss +$lang['pt_PT']['ForgotPasswordEmail.ss']['TEXT1'] = 'Aqui está o seu'; +$lang['pt_PT']['ForgotPasswordEmail.ss']['TEXT2'] = 'link de reset da password'; +$lang['pt_PT']['ForgotPasswordEmail.ss']['TEXT3'] = 'para'; + +// TableListField_PageControls.ss +$lang['pt_PT']['TableListField_PageControls.ss']['VIEWLAST'] = 'Ver último'; +$lang['pt_PT']['TableListField_PageControls.ss']['VIEWFIRST'] = 'Ver primeiro'; +$lang['pt_PT']['TableListField_PageControls.ss']['VIEWPREVIOUS'] = 'Ver anterior'; +$lang['pt_PT']['TableListField_PageControls.ss']['VIEWNEXT'] = 'Ver próximo'; +$lang['pt_PT']['TableListField_PageControls.ss']['DISPLAYING'] = 'A Mostrar'; +$lang['pt_PT']['TableListField_PageControls.ss']['TO'] = 'até'; +$lang['pt_PT']['TableListField_PageControls.ss']['OF'] = 'de'; + ?> \ No newline at end of file diff --git a/parsers/BBCodeParser.php b/parsers/BBCodeParser.php index 233d274b1..eb4fcec78 100644 --- a/parsers/BBCodeParser.php +++ b/parsers/BBCodeParser.php @@ -38,66 +38,66 @@ class BBCodeParser extends TextParser { static function usable_tags() { return new DataObjectSet( new ArrayData(array( - "Title" => "Bold Text", - "Example" => "[b]Bold[/b]" + "Title" => _t('BBCodeParser.BOLD', 'Bold Text'), + "Example" => '[b]'._t('BBCodeParser.BOLDEXAMPLE', 'Bold').'[/b]' )), new ArrayData(array( - "Title" => "Italic Text", - "Example" => "[i]Italics[/i]" + "Title" => _t('BBCodeParser.ITALIC', 'Italic Text'), + "Example" => '[i]'._t('BBCodeParser.ITALICEXAMPLE', 'Italics').'[/i]' )), new ArrayData(array( - "Title" => "Underlined Text", - "Example" => "[u]Underlined[/u]" + "Title" => _t('BBCodeParser.UNDERLINE', 'Underlined Text'), + "Example" => '[u]'._t('BBCodeParser.UNDERLINEEXAMPLE', 'Underlined').'[/u]' )), new ArrayData(array( - "Title" => "Struck-out Text", - "Example" => "[s]"; print_r($codes); diff --git a/security/Security.php b/security/Security.php index a6cc4d019..428062c5f 100644 --- a/security/Security.php +++ b/security/Security.php @@ -243,7 +243,7 @@ class Security extends Controller { } $tmpPage = new Page(); - $tmpPage->Title = "Log in"; + $tmpPage->Title = _t('Security.LOGIN', 'Log in'); $tmpPage->URLSegment = "Security"; $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children @@ -784,16 +784,16 @@ class Security extends Controller { // Only administrators can run this method if(!Member::currentUser() || !Member::currentUser()->isAdmin()) { Security::permissionFailure($this, - "This page is secured and you need administrator rights to access it. " . - "Enter your credentials below and we will send you right along."); + _t('Security.PERMFAILURE',' This page is secured and you need administrator rights to access it. + Enter your credentials below and we will send you right along.')); return; } if(self::$encryptPasswords == false) { - print "Password encryption disabled!
\n"; - print "To encrypt your passwords change your password settings by adding\n"; - print "
Security::encrypt_passwords(true);\nto mysite/_config.php"; + print ''._t('Security.ENCDISABLED1', 'Password encryption disabled!')."
\n"; + print ''._t('Security.ENCDISABLED2', 'To encrypt your passwords change your password settings by adding')."\n"; + print "
Security::encrypt_passwords(true);\n"._t('Security.ENCDISABLED3', 'to mysite/_config.php').""; return; } @@ -804,20 +804,19 @@ class Security extends Controller { "PasswordEncryption = 'none' AND Password IS NOT NULL"); if(!$members) { - print "No passwords to encrypt
\n"; - print "There are no members with a clear text password that could be encrypted!
\n"; + print ''._t('Security.NOTHINGTOENCRYPT1', 'No passwords to encrypt')."
\n"; + print ''._t('Security.NOTHINGTOENCRYPT2', 'There are no members with a clear text password that could be encrypted!')."
\n"; return; } // Encrypt the passwords... - print "Encrypting all passwords
"; - print 'The passwords will be encrypted using the "' . - htmlentities(self::$encryptionAlgorithm) . '" algorithm '; + print '
'._t('Security.ENCRYPT', 'Encrypting all passwords').'
'; + print ''.sprintf(_t('Security.ENCRYPTWITH', 'The passwords will be encrypted using the "%s" algorithm'), htmlentities(self::$encryptionAlgorithm)); print (self::$useSalt) - ? "with a salt to increase the security.
\n" - : "without using a salt to increase the security.\n"; + ? _t('Security.ENCRYPTWITHSALT', 'with a salt to increase the security.')."
\n" + : _t('Security.ENCRYPTWITHOUTSALT', 'without using a salt to increase the security.')."\n"; foreach($members as $member) { // Force the update of the member record, as new passwords get @@ -826,9 +825,9 @@ class Security extends Controller { $member->forceChange(); $member->write(); - print " Encrypted credentials for member ""; - print htmlentities($member->getTitle()) . '" (ID: ' . $member->ID . - '; E-Mail: ' . htmlentities($member->Email) . ")
'; diff --git a/templates/ComplexTableField.ss b/templates/ComplexTableField.ss index ae826e3d4..02c64d07f 100755 --- a/templates/ComplexTableField.ss +++ b/templates/ComplexTableField.ss @@ -47,7 +47,7 @@
\n"; + print ' '._t('Security.ENCRYPTEDMEMBERS', 'Encrypted credentials for member "'); + print htmlentities($member->getTitle()) . '" ('._t('Security.ID', 'ID:').' ' . $member->ID . + '; '._t('Security.EMAIL', 'E-Mail:').' ' . htmlentities($member->Email) . ")
\n"; } print '<% if Markable %> <% end_if %> - <% _t('ADDITEM', 'Add', PR_MEDIUM, 'Add [name]') %> $Title + <% _t('ADDITEM', 'Add', PR_MEDIUM, 'Add [name]') %> $Title <% if Can(show) %><% end_if %> <% if Can(edit) %> <% end_if %> diff --git a/templates/EditableCheckbox.ss b/templates/EditableCheckbox.ss index 23cd3353b..1d1bc0ad9 100755 --- a/templates/EditableCheckbox.ss +++ b/templates/EditableCheckbox.ss @@ -1,14 +1,14 @@ diff --git a/templates/EditableCheckboxGroupField.ss b/templates/EditableCheckboxGroupField.ss index 9d04ba7d6..82bec0430 100755 --- a/templates/EditableCheckboxGroupField.ss +++ b/templates/EditableCheckboxGroupField.ss @@ -1,21 +1,21 @@<% if isReadonly %> - + <% else %> - + <% end_if %> - + $TitleField - + <% if isReadonly %> - + <% else %> <% if CanDelete %> - + <% else %> - + <% end_if %> <% end_if %>@@ -35,7 +35,7 @@ <% end_control %>- + <% end_if %> diff --git a/templates/EditableCheckboxOption.ss b/templates/EditableCheckboxOption.ss index 32bccd813..70865a9d6 100755 --- a/templates/EditableCheckboxOption.ss +++ b/templates/EditableCheckboxOption.ss @@ -1,10 +1,10 @@- + <% if isReadonly %> - + <% else %> - + <% end_if %> \ No newline at end of file diff --git a/templates/EditableDateField.ss b/templates/EditableDateField.ss index 72f7e2ca3..c4e60550e 100755 --- a/templates/EditableDateField.ss +++ b/templates/EditableDateField.ss @@ -1,10 +1,10 @@diff --git a/templates/EditableDropdown.ss b/templates/EditableDropdown.ss index a3f7a113a..70b4f22c7 100755 --- a/templates/EditableDropdown.ss +++ b/templates/EditableDropdown.ss @@ -1,20 +1,20 @@<% if isReadonly %> - + <% else %> - + <% end_if %> - + $TitleField - + <% if isReadonly %> - + <% else %> <% if CanDelete %> - + <% else %> - + <% end_if %> <% end_if %>@@ -34,7 +34,7 @@ <% end_control %>- + <% end_if %> diff --git a/templates/EditableDropdownOption.ss b/templates/EditableDropdownOption.ss index 986687551..2bdf47af4 100755 --- a/templates/EditableDropdownOption.ss +++ b/templates/EditableDropdownOption.ss @@ -1,10 +1,10 @@- + <% if isReadonly %> - + <% else %> - + <% end_if %> \ No newline at end of file diff --git a/templates/EditableEmailField.ss b/templates/EditableEmailField.ss index 6b406dbf5..716c27502 100755 --- a/templates/EditableEmailField.ss +++ b/templates/EditableEmailField.ss @@ -1,13 +1,13 @@diff --git a/templates/EditableFileField.ss b/templates/EditableFileField.ss index c0fb12f0b..aae08dc88 100755 --- a/templates/EditableFileField.ss +++ b/templates/EditableFileField.ss @@ -1,10 +1,10 @@diff --git a/templates/EditableFormField.ss b/templates/EditableFormField.ss index 15e864074..6837b6ca0 100755 --- a/templates/EditableFormField.ss +++ b/templates/EditableFormField.ss @@ -1,20 +1,20 @@<% if isReadonly %> - + <% else %> - + <% end_if %> $TitleField - + <% if isReadonly %> - + <% else %> <% if CanDelete %> - + <% else %> - + <% end_if %> <% end_if %>diff --git a/templates/EditableFormFieldOption.ss b/templates/EditableFormFieldOption.ss index ff166fbb7..1a6abd905 100755 --- a/templates/EditableFormFieldOption.ss +++ b/templates/EditableFormFieldOption.ss @@ -1,15 +1,15 @@<% if isReadonly %> - + $DefaultSelect - + <% else %> - + $DefaultSelect - + <% end_if %> \ No newline at end of file diff --git a/templates/EditableFormHeading.ss b/templates/EditableFormHeading.ss index 40b1b8f9a..62319dfc9 100755 --- a/templates/EditableFormHeading.ss +++ b/templates/EditableFormHeading.ss @@ -1,10 +1,10 @@<% control ExtraOptions %> diff --git a/templates/EditableRadioField.ss b/templates/EditableRadioField.ss index bdc78ff19..26c5c55f6 100755 --- a/templates/EditableRadioField.ss +++ b/templates/EditableRadioField.ss @@ -1,21 +1,21 @@<% if isReadonly %> - + <% else %> - + <% end_if %> - + $TitleField - + <% if isReadonly %> - + <% else %> <% if CanDelete %> - + <% else %> - + <% end_if %> <% end_if %>@@ -35,7 +35,7 @@ <% end_control %>- + <% end_if %> diff --git a/templates/EditableRadioOption.ss b/templates/EditableRadioOption.ss index 32bccd813..70865a9d6 100755 --- a/templates/EditableRadioOption.ss +++ b/templates/EditableRadioOption.ss @@ -1,10 +1,10 @@- + <% if isReadonly %> - + <% else %> - + <% end_if %> \ No newline at end of file diff --git a/templates/EditableTextField.ss b/templates/EditableTextField.ss index df3b49a72..26177dbe5 100755 --- a/templates/EditableTextField.ss +++ b/templates/EditableTextField.ss @@ -1,10 +1,10 @@diff --git a/templates/FieldEditor.ss b/templates/FieldEditor.ss index d806c4641..06b365f05 100755 --- a/templates/FieldEditor.ss +++ b/templates/FieldEditor.ss @@ -1,35 +1,35 @@-
- Add:
+- <% _t('ADD', 'Add') %>:
- - Text + <% _t('TEXT', 'Text') %>
- - Checkbox + <% _t('CHECKBOX', 'Checkbox') %>
- - Dropdown + <% _t('DROPDOWN', 'Dropdown') %>
- - Radio + <% _t('RADIOSET', 'Radio') %>
- - Email + <% _t('EMAIL', 'Email') %>
- - Heading + <% _t('FORMHEADING', 'Heading') %>
- - Date + <% _t('DATE', 'Date') %>
- - File + <% _t('FILE', 'File') %>
- - Checkboxes + <% _t('CHECKBOXGROUP', 'Checkboxes') %>
- - Member List + <% _t('MEMBER', 'Member List') %>
@@ -42,36 +42,36 @@ <% end_control %>-
- Add:
+- <% _t('ADD', 'Add') %>:
- - Text + <% _t('TEXT', 'Text') %>
- - Checkbox + <% _t('CHECKBOX', 'Checkbox') %>
- - Dropdown + <% _t('DROPDOWN', 'Dropdown') %>
- - Radio + <% _t('RADIOSET', 'Radio') %>
- - Email + <% _t('EMAIL', 'Email') %>
- - Heading + <% _t('FORMHEADING', 'Heading') %>
- - Date + <% _t('DATE', 'Date') %>
- - File + <% _t('FILE', 'File') %>
- - Checkboxes + <% _t('CHECKBOXGROUP', 'Checkboxes') %>
- - Member List + <% _t('MEMBER', 'Member List') %>
diff --git a/templates/Includes/TableListField_PageControls.ss b/templates/Includes/TableListField_PageControls.ss index c58d85577..53091b2a8 100755 --- a/templates/Includes/TableListField_PageControls.ss +++ b/templates/Includes/TableListField_PageControls.ss @@ -1,15 +1,15 @@ <% if ShowPagination %>- <% if LastLink %> - <% else %><% end_if %> - <% if FirstLink %> - <% else %><% end_if %> - <% if PrevLink %> - <% else %><% end_if %> + <% if LastLink %> + <% else %><% end_if %> + <% if FirstLink %> + <% else %><% end_if %> + <% if PrevLink %> + <% else %><% end_if %> - Displaying $FirstItem to $LastItem of $TotalCount + <% _t('DISPLAYING', 'Displaying') %> $FirstItem <% _t('TO', 'to') %> $LastItem <% _t('OF', 'of') %> $TotalCount - <% if NextLink %> - <% else %><% end_if %> + <% if NextLink %> + <% else %><% end_if %><% end_if %> \ No newline at end of file diff --git a/templates/RelationComplexTableField.ss b/templates/RelationComplexTableField.ss index 41ef2ebbd..cf87f8b1d 100644 --- a/templates/RelationComplexTableField.ss +++ b/templates/RelationComplexTableField.ss @@ -29,7 +29,7 @@<% if Markable %> <% end_control %> <% else %><% end_if %> - Add $Title + <% _t('ADD', 'Add') %> $Title <% if Can(show) %><% end_if %> <% if Can(edit) %> <% end_if %> @@ -46,20 +46,20 @@ $Value <% end_control %> <% if Can(show) %> -+ <% end_if %> <% if Can(edit) %> - + <% end_if %> <% if Can(delete) %> - + <% end_if %> <% if Markable %> <% end_if %> - No items found +<% _t('NOTFOUND', 'No items found') %> <% if Can(show) %><% end_if %> <% if Can(edit) %> <% end_if %> <% if Can(delete) %> <% end_if %> diff --git a/templates/SubmittedFormReportField.ss b/templates/SubmittedFormReportField.ss index 36e2f68fe..9bcde60d2 100644 --- a/templates/SubmittedFormReportField.ss +++ b/templates/SubmittedFormReportField.ss @@ -4,7 +4,7 @@ <% control Submissions %>- Submitted at $Created.Nice <% if Recipient %>to $Recipient<% end_if %> + <% _t('SUBMITTED', 'Submitted at') %> $Created.Nice <% if Recipient %>to $Recipient<% end_if %><% control FieldValues %>
diff --git a/templates/TableField.ss b/templates/TableField.ss index f17d5439e..c6a5b1f40 100755 --- a/templates/TableField.ss +++ b/templates/TableField.ss @@ -29,7 +29,7 @@ <% if Can(add) %> - <% _t('ADDITEM') %> $Title + <% _t('ADDITEM') %> $Title <% if Can(delete) %><% end_if %> diff --git a/templates/email/ForgotPasswordEmail.ss b/templates/email/ForgotPasswordEmail.ss index cc0388eb5..ac8dc7d73 100755 --- a/templates/email/ForgotPasswordEmail.ss +++ b/templates/email/ForgotPasswordEmail.ss @@ -1,4 +1,4 @@ <% _t('HELLO', 'Hi') %> $FirstName,
-Here's is your password reset link for $BaseHref
+<% _t('TEXT1', 'Here\'s is your') %> <% _t('TEXT2', 'password reset link') %> <% _t('TEXT3', 'for') %> $BaseHref