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:
Ingo Schommer 2009-11-22 08:45:59 +00:00
parent d0cc476c2a
commit b29d887cc2
4 changed files with 16 additions and 12 deletions

View File

@ -1063,8 +1063,11 @@ JS;
$this,
'SearchTreeForm',
new FieldSet(
// TODO i18n
$showDefaultFields[] = new DropdownField('FilterClass', 'Pages', $filterMap),
$showDefaultFields[] = new DropdownField(
'FilterClass',
_t('CMSMain.SearchTreeFormPagesDropdown', 'Pages'),
$filterMap
),
$showDefaultFields[] = new TextField(
'Title',
_t('CMSMain.TITLEOPT', 'Title')
@ -1291,8 +1294,7 @@ JS;
if(Permission::checkMember($member, 'VIEW_LANGS')) {
$field = new LanguageDropdownField(
'Locale',
// TODO i18n
'Language',
_t('CMSMAIN.LanguageDropdownLabel', 'Language'),
array(),
'SiteTree',
'Locale-English',

View File

@ -115,8 +115,7 @@ class CMSSiteTreeFilter_DeletedPages extends CMSSiteTreeFilter {
protected $childrenMethod = "AllHistoricalChildren";
static function title() {
// TODO i18n
return "Deleted pages";
return _t('CMSSiteTreeFilter_DeletedPages.Title', "Deleted pages");
}
function pagesIncluded() {
@ -139,8 +138,7 @@ class CMSSiteTreeFilter_DeletedPages extends CMSSiteTreeFilter {
class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter {
static function title() {
// TODO i18n
return "Changed pages";
return _t('CMSSiteTreeFilter_ChangedPages.Title', "Changed pages");
}
function pagesIncluded() {
@ -166,8 +164,7 @@ class CMSSiteTreeFilter_ChangedPages extends CMSSiteTreeFilter {
class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter {
static function title() {
// TODO i18n
return "All pages";
return _t('CMSSiteTreeFilter_Search.Title', "All pages");
}
/**

View File

@ -65,7 +65,11 @@
// add default option
// 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
this.find('.field').not(':visible').each(function() {

View File

@ -31,6 +31,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'AssetAdmin.BATCHACTIONSDELETECONFIRM': "Do you really want to delete %s folders?",
'AssetTableField.REALLYDELETE': 'Do you really want to delete the marked files?',
'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'
});
}