BUG Fix localisation issues in CMS

This commit is contained in:
Damian Mooyman 2016-12-06 10:58:26 +13:00
parent d018d2ca2e
commit 224b2a4cba
2 changed files with 24 additions and 23 deletions

View File

@ -1317,10 +1317,14 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
$token->updateFieldSet($fields); $token->updateFieldSet($fields);
$tokenField = $fields->First(); $tokenField = $fields->First();
$tokenHtml = ($tokenField) ? $tokenField->FieldHolder() : ''; $tokenHtml = ($tokenField) ? $tokenField->FieldHolder() : '';
$publishAllDescription = _t(
'CMSMain.PUBALLFUN2',
'Pressing this button will do the equivalent of going to every page and pressing "publish". '
. 'It\'s intended to be used after there have been massive edits of the content, such as when '
. 'the site was first built.'
);
$response .= '<h1>' . _t('CMSMain.PUBALLFUN','"Publish All" functionality') . '</h1> $response .= '<h1>' . _t('CMSMain.PUBALLFUN','"Publish All" functionality') . '</h1>
<p>' . _t('CMSMain.PUBALLFUN2', 'Pressing this button will do the equivalent of going to every page and pressing "publish". It\'s <p>' . $publishAllDescription . '</p>
intended to be used after there have been massive edits of the content, such as when the site was
first built.') . '</p>
<form method="post" action="publishall"> <form method="post" action="publishall">
<input type="submit" name="confirm" value="' <input type="submit" name="confirm" value="'
. _t('CMSMain.PUBALLCONFIRM',"Please publish every page in the site, copying content stage to live",'Confirmation button') .'" />' . _t('CMSMain.PUBALLCONFIRM',"Please publish every page in the site, copying content stage to live",'Confirmation button') .'" />'

View File

@ -77,8 +77,8 @@ en:
PUBLISH_PAGES: Publish PUBLISH_PAGES: Publish
RESTORE: Restore RESTORE: Restore
RESTORED_PAGES: "Restored %d pages" RESTORED_PAGES: "Restored %d pages"
UNPUBLISHED_PAGES: "Un-published %d pages" UNPUBLISHED_PAGES: "Unpublished %d pages"
UNPUBLISH_PAGES: Un-publish UNPUBLISH_PAGES: Unpublish
CMSFileAddController: CMSFileAddController:
MENUTITLE: Files MENUTITLE: Files
CMSMain: CMSMain:
@ -100,26 +100,23 @@ en:
DUPLICATEDWITHCHILDREN: "Duplicated '{title}' and children successfully" DUPLICATEDWITHCHILDREN: "Duplicated '{title}' and children successfully"
EMAIL: Email EMAIL: Email
EditTree: "Edit Tree" EditTree: "Edit Tree"
ListFiltered: "Filtered list." ListFiltered: "Showing search results."
MENUTITLE: "Edit Page" MENUTITLE: "Edit Page"
NEWPAGE: "New {pagetype}" NEWPAGE: "New {pagetype}"
PAGENOTEXISTS: "This page doesn't exist" PAGENOTEXISTS: "This page doesn't exist"
PAGES: Pages PAGES: "Page status"
PAGETYPEANYOPT: Any PAGETYPEANYOPT: Any
PAGETYPEOPT: "Page Type" PAGETYPEOPT: "Page type"
PUBALLCONFIRM: "Please publish every page in the site, copying content stage to live" PUBALLCONFIRM: "Please publish every page in the site, copying content stage to live"
PUBALLFUN: "\"Publish All\" functionality" PUBALLFUN: "\"Publish All\" functionality"
PUBALLFUN2: |- PUBALLFUN2: "Pressing this button will do the equivalent of going to every page and pressing \"publish\". It's intended to be used after there have been massive edits of the content, such as when the site was first built."
Pressing this button will do the equivalent of going to every page and pressing "publish". It's
intended to be used after there have been massive edits of the content, such as when the site was
first built.
PUBLISHED: "Published '{title}' successfully." PUBLISHED: "Published '{title}' successfully."
PUBPAGES: "Done: Published {count} pages" PUBPAGES: "Done: Published {count} pages"
PageAdded: "Successfully created page" PageAdded: "Successfully created page"
REMOVED: "Deleted '{title}'{description} from live site" REMOVED: "Deleted '{title}'{description} from live site"
REMOVEDPAGE: "Removed '{title}' from the published site" REMOVEDPAGE: "Removed '{title}' from the published site"
REMOVEDPAGEFROMDRAFT: "Removed '%s' from the draft site" REMOVEDPAGEFROMDRAFT: "Removed '%s' from the draft site"
RESTORE: Restore RESTORE: "Restore draft"
RESTORED: "Restored '{title}' successfully" RESTORED: "Restored '{title}' successfully"
RESTORE_DESC: "Restore the archived version to draft" RESTORE_DESC: "Restore the archived version to draft"
RESTORE_TO_ROOT: "Restore draft at top level" RESTORE_TO_ROOT: "Restore draft at top level"
@ -133,11 +130,11 @@ en:
TabContent: Content TabContent: Content
TabHistory: History TabHistory: History
TabSettings: Settings TabSettings: Settings
TreeFiltered: "Filtered tree." TreeFiltered: "Showing search results."
TreeFilteredClear: "Clear filter" TreeFilteredClear: Clear
UNPUBLISH_AND_ARCHIVE: "Unpublish and archive" UNPUBLISH_AND_ARCHIVE: "Unpublish and archive"
CMSMain_left_ss: CMSMain_left_ss:
APPLY_FILTER: "Apply Filter" APPLY_FILTER: Search
CLEAR_FILTER: Clear CLEAR_FILTER: Clear
RESET: Reset RESET: Reset
CMSPageAddController: CMSPageAddController:
@ -172,7 +169,7 @@ en:
MENUTITLE: Pages MENUTITLE: Pages
TreeView: "Tree View" TreeView: "Tree View"
CMSPagesController_ContentToolbar_ss: CMSPagesController_ContentToolbar_ss:
MULTISELECT: Multi-selection MULTISELECT: "Batch actions"
CMSPagesController_Tools_ss: CMSPagesController_Tools_ss:
FILTER: Filter FILTER: Filter
CMSSIteTreeFilter_PublishedPages: CMSSIteTreeFilter_PublishedPages:
@ -181,20 +178,20 @@ en:
FILTERDATEFROM: From FILTERDATEFROM: From
FILTERDATEHEADING: Date FILTERDATEHEADING: Date
FILTERDATETO: To FILTERDATETO: To
FILTERLABELTEXT: Content FILTERLABELTEXT: Search
PAGEFILTERDATEHEADING: "Last edited" PAGEFILTERDATEHEADING: "Last edited"
CMSSettingsController: CMSSettingsController:
MENUTITLE: Settings MENUTITLE: Settings
CMSSiteTreeFilter_ChangedPages: CMSSiteTreeFilter_ChangedPages:
Title: "Changed pages" Title: "Modified pages"
CMSSiteTreeFilter_DeletedPages: CMSSiteTreeFilter_DeletedPages:
Title: "All pages, including deleted" Title: "All pages, including archived"
CMSSiteTreeFilter_Search: CMSSiteTreeFilter_Search:
Title: "All pages" Title: "All pages"
CMSSiteTreeFilter_StatusDeletedPages: CMSSiteTreeFilter_StatusDeletedPages:
Title: "Deleted pages" Title: "Archived pages"
CMSSiteTreeFilter_StatusDraftPages: CMSSiteTreeFilter_StatusDraftPages:
Title: "Draft unpublished pages" Title: "Draft pages"
CMSSiteTreeFilter_StatusRemovedFromDraftPages: CMSSiteTreeFilter_StatusRemovedFromDraftPages:
Title: "Live but removed from draft" Title: "Live but removed from draft"
ContentControl: ContentControl:
@ -324,7 +321,7 @@ en:
SilverStripeNavigator: SilverStripeNavigator:
ARCHIVED: Archived ARCHIVED: Archived
SilverStripeNavigatorLink: SilverStripeNavigatorLink:
ShareInstructions: "To share a this to this page, copy and paste the link below." ShareInstructions: "To share this page, copy and paste the link below."
ShareLink: "Share link" ShareLink: "Share link"
SilverStripeNavigatorLinkl: SilverStripeNavigatorLinkl:
CloseLink: Close CloseLink: Close