From a3fd150bd0758da1fc6cab8efc4c9cc4fc3a0ec7 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Wed, 22 Jul 2015 13:51:34 +0100 Subject: [PATCH] Upgrade template translation syntax --- admin/templates/Includes/BackLink_Button.ss | 2 +- admin/templates/Includes/CMSLoadingScreen.ss | 4 +-- ...ettingsController_SilverStripeNavigator.ss | 2 +- .../Includes/LeftAndMain_EditForm.ss | 2 +- admin/templates/Includes/LeftAndMain_Menu.ss | 4 +-- .../LeftAndMain_SilverStripeNavigator.ss | 20 ++++++------- .../templates/Includes/ModelAdmin_Content.ss | 4 +-- .../Includes/ModelAdmin_ImportSpec.ss | 8 +++--- admin/templates/Includes/ModelAdmin_Tools.ss | 4 +-- admin/templates/LeftAndMain.ss | 2 +- admin/templates/ModelSidebar.ss | 4 +-- i18n/i18n.php | 5 ++-- templates/AssetUploadField.ss | 28 +++++++++---------- templates/HtmlEditorField_UploadField.ss | 12 ++++---- templates/Image_iframe.ss | 2 +- templates/Includes/GridFieldEditButton.ss | 2 +- templates/Includes/GridFieldFooter.ss | 2 +- templates/Includes/GridFieldItemEditView.ss | 2 +- templates/Includes/GridFieldPageCount.ss | 4 +-- templates/Includes/GridFieldPaginator_Row.ss | 8 +++--- templates/Includes/GridField_print.ss | 6 ++-- .../Includes/HtmlEditorField_viewfile.ss | 10 +++---- .../Includes/LeftAndMain_ViewModeSelector.ss | 10 +++---- templates/Includes/UploadField_FileButtons.ss | 14 +++++----- templates/UploadField.ss | 16 +++++------ templates/email/ChangePasswordEmail.ss | 10 +++---- templates/email/ForgotPasswordEmail.ss | 4 +-- 27 files changed, 96 insertions(+), 95 deletions(-) diff --git a/admin/templates/Includes/BackLink_Button.ss b/admin/templates/Includes/BackLink_Button.ss index 7ec3bc193..2557e78b0 100644 --- a/admin/templates/Includes/BackLink_Button.ss +++ b/admin/templates/Includes/BackLink_Button.ss @@ -1,7 +1,7 @@ <% if $Backlink %> <% end_if %> diff --git a/admin/templates/Includes/CMSLoadingScreen.ss b/admin/templates/Includes/CMSLoadingScreen.ss index a14c0fe76..03a4b52f8 100644 --- a/admin/templates/Includes/CMSLoadingScreen.ss +++ b/admin/templates/Includes/CMSLoadingScreen.ss @@ -1,6 +1,6 @@
diff --git a/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss b/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss index 49fd08a09..2041754f4 100644 --- a/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss +++ b/admin/templates/Includes/CMSSettingsController_SilverStripeNavigator.ss @@ -1,5 +1,5 @@
- « <% _t('SilverStripeNavigator.Edit', 'Edit') %> + « <%t SilverStripeNavigator.Edit 'Edit' %>
\ No newline at end of file diff --git a/admin/templates/Includes/LeftAndMain_EditForm.ss b/admin/templates/Includes/LeftAndMain_EditForm.ss index 381507477..14ea3eb4b 100644 --- a/admin/templates/Includes/LeftAndMain_EditForm.ss +++ b/admin/templates/Includes/LeftAndMain_EditForm.ss @@ -50,7 +50,7 @@ <% end_loop %> <% if $Controller.LinkPreview %> - <% _t('LeftAndMain.PreviewButton', 'Preview') %> » + <%t LeftAndMain.PreviewButton 'Preview' %> » <% end_if %> diff --git a/admin/templates/Includes/LeftAndMain_Menu.ss b/admin/templates/Includes/LeftAndMain_Menu.ss index 68b35fd9d..f7dfd4bc8 100644 --- a/admin/templates/Includes/LeftAndMain_Menu.ss +++ b/admin/templates/Includes/LeftAndMain_Menu.ss @@ -8,10 +8,10 @@
- <% _t('LeftAndMain_Menu_ss.LOGOUT','Log out') %> + <%t LeftAndMain_Menu_ss.LOGOUT 'Log out' %> <% with $CurrentMember %> - <% _t('LeftAndMain_Menu_ss.Hello','Hi') %> + <%t LeftAndMain_Menu_ss.Hello 'Hi' %> <% if $FirstName && $Surname %>$FirstName $Surname<% else_if $FirstName %>$FirstName<% else %>$Email<% end_if %> diff --git a/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss b/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss index 1954e819f..b6f1fb09e 100644 --- a/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss +++ b/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss @@ -3,18 +3,18 @@ <% include LeftAndMain_ViewModeSelector SelectID="preview-mode-dropdown-in-preview" %> - + - - - @@ -32,7 +32,7 @@ <% else %> - <% loop $Items %> @@ -16,7 +16,7 @@
- +