Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit b29d887cc28a4bb2d5da52cd3a630630139602af 1 parent d0cc476
@chillu chillu authored
View
10 code/CMSMain.php
@@ -1063,8 +1063,11 @@ function SearchTreeForm() {
$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 @@ function LangForm() {
if(Permission::checkMember($member, 'VIEW_LANGS')) {
$field = new LanguageDropdownField(
'Locale',
- // TODO i18n
- 'Language',
+ _t('CMSMAIN.LanguageDropdownLabel', 'Language'),
array(),
'SiteTree',
'Locale-English',
View
9 code/CMSSiteTreeFilter.php
@@ -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 @@ function pagesIncluded() {
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 @@ function pagesIncluded() {
class CMSSiteTreeFilter_Search extends CMSSiteTreeFilter {
static function title() {
- // TODO i18n
- return "All pages";
+ return _t('CMSSiteTreeFilter_Search.Title', "All pages");
}
/**
View
6 javascript/CMSMain.js
@@ -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
3  javascript/lang/en_US.js
@@ -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'
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.