mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR l10n in CMSMain.php, CMSMain.js and CMSSiteTreeFilter.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92941 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d0cc476c2a
commit
b29d887cc2
@ -1063,8 +1063,11 @@ JS;
|
|||||||
$this,
|
$this,
|
||||||
'SearchTreeForm',
|
'SearchTreeForm',
|
||||||
new FieldSet(
|
new FieldSet(
|
||||||
// TODO i18n
|
$showDefaultFields[] = new DropdownField(
|
||||||
$showDefaultFields[] = new DropdownField('FilterClass', 'Pages', $filterMap),
|
'FilterClass',
|
||||||
|
_t('CMSMain.SearchTreeFormPagesDropdown', 'Pages'),
|
||||||
|
$filterMap
|
||||||
|
),
|
||||||
$showDefaultFields[] = new TextField(
|
$showDefaultFields[] = new TextField(
|
||||||
'Title',
|
'Title',
|
||||||
_t('CMSMain.TITLEOPT', 'Title')
|
_t('CMSMain.TITLEOPT', 'Title')
|
||||||
@ -1291,8 +1294,7 @@ JS;
|
|||||||
if(Permission::checkMember($member, 'VIEW_LANGS')) {
|
if(Permission::checkMember($member, 'VIEW_LANGS')) {
|
||||||
$field = new LanguageDropdownField(
|
$field = new LanguageDropdownField(
|
||||||
'Locale',
|
'Locale',
|
||||||
// TODO i18n
|
_t('CMSMAIN.LanguageDropdownLabel', 'Language'),
|
||||||
'Language',
|
|
||||||
array(),
|
array(),
|
||||||
'SiteTree',
|
'SiteTree',
|
||||||
'Locale-English',
|
'Locale-English',
|
||||||
|
@ -115,8 +115,7 @@ class CMSSiteTreeFilter_DeletedPages extends CMSSiteTreeFilter {
|
|||||||
protected $childrenMethod = "AllHistoricalChildren";
|
protected $childrenMethod = "AllHistoricalChildren";
|
||||||
|
|
||||||
static function title() {
|
static function title() {
|
||||||
// TODO i18n
|
return _t('CMSSiteTreeFilter_DeletedPages.Title', "Deleted pages");
|
||||||
return "Deleted pages";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pagesIncluded() {
|
function pagesIncluded() {
|
||||||
@ -139,8 +138,7 @@ class CMSSiteTreeFilter_DeletedPages extends CMSSiteTreeFilter {
|
|||||||
class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter {
|
class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter {
|
||||||
|
|
||||||
static function title() {
|
static function title() {
|
||||||
// TODO i18n
|
return _t('CMSSiteTreeFilter_ChangedPages.Title', "Changed pages");
|
||||||
return "Changed pages";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pagesIncluded() {
|
function pagesIncluded() {
|
||||||
@ -166,8 +164,7 @@ class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter {
|
|||||||
class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter {
|
class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter {
|
||||||
|
|
||||||
static function title() {
|
static function title() {
|
||||||
// TODO i18n
|
return _t('CMSSiteTreeFilter_Search.Title', "All pages");
|
||||||
return "All pages";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,7 +65,11 @@
|
|||||||
|
|
||||||
// add default option
|
// add default option
|
||||||
// TODO i18n
|
// TODO i18n
|
||||||
jQuery('<option value="0">Add Criteria</option>').appendTo(self.getSelectEl());
|
jQuery(
|
||||||
|
'<option value="0">' +
|
||||||
|
ss.i18n._t('CMSMAIN.AddSearchCriteria') +
|
||||||
|
'</option>'
|
||||||
|
).appendTo(self.getSelectEl());
|
||||||
|
|
||||||
// populate dropdown values from existing fields
|
// populate dropdown values from existing fields
|
||||||
this.find('.field').not(':visible').each(function() {
|
this.find('.field').not(':visible').each(function() {
|
||||||
|
@ -31,6 +31,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
|
|||||||
'AssetAdmin.BATCHACTIONSDELETECONFIRM': "Do you really want to delete %s folders?",
|
'AssetAdmin.BATCHACTIONSDELETECONFIRM': "Do you really want to delete %s folders?",
|
||||||
'AssetTableField.REALLYDELETE': 'Do you really want to delete the marked files?',
|
'AssetTableField.REALLYDELETE': 'Do you really want to delete the marked files?',
|
||||||
'AssetTableField.MOVING': 'Moving %s file(s)',
|
'AssetTableField.MOVING': 'Moving %s file(s)',
|
||||||
'SecurityAdmin.BATCHACTIONSDELETECONFIRM': "Do you really want to delete %s groups?"
|
'SecurityAdmin.BATCHACTIONSDELETECONFIRM': "Do you really want to delete %s groups?",
|
||||||
|
'CMSMAIN.AddSearchCriteria': 'Add Criteria'
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user