Reorganise i18n keys

This commit is contained in:
Aaron Carlino 2017-05-08 17:56:43 +12:00 committed by Damian Mooyman
parent 24afd61131
commit 664fa75a02
6 changed files with 21 additions and 6 deletions

8
.tx/config Normal file
View File

@ -0,0 +1,8 @@
[main]
host = https://www.transifex.com
[silverstripe-reports.master]
file_filter = lang/<lang>.yml
source_file = lang/en.yml
source_lang = en
type = YML

View File

@ -300,7 +300,7 @@ class Report extends ViewableData
}
// Add a search button
$formAction = new FormAction('updatereport', _t('GridField.Filter', 'Filter'));
$formAction = new FormAction('updatereport', _t('SilverStripe\\Forms\\GridField\\GridField.Filter', 'Filter'));
$formAction->addExtraClass("m-b-2");
$fields->push($formAction);

View File

@ -202,10 +202,10 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
{
return array(
"CMS_ACCESS_ReportAdmin" => array(
'name' => _t('CMSMain.ACCESS', "Access to '{title}' section", array(
'name' => _t('SilverStripe\\CMS\\Controllers\\CMSMain.ACCESS', "Access to '{title}' section", array(
'title' => static::menu_title()
)),
'category' => _t('Permission.CMS_ACCESS_CATEGORY', 'CMS Access')
'category' => _t('SilverStripe\\Security\\Permission.CMS_ACCESS_CATEGORY', 'CMS Access')
)
);
}
@ -228,7 +228,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
/** @var GridFieldDataColumns $columns */
$columns = $gridField->getConfig()->getComponentByType('SilverStripe\\Forms\\GridField\\GridFieldDataColumns');
$columns->setDisplayFields(array(
'title' => _t('ReportAdmin.ReportTitle', 'Title'),
'title' => _t('SilverStripe\\Reports\\ReportAdmin.ReportTitle', 'Title'),
));
$columns->setFieldFormatting(array(

View File

@ -24,7 +24,7 @@ class SideReportView extends ViewableData
public function group()
{
return _t('SideReport.OtherGroupTitle', "Other");
return _t('SilverStripe\\Reports\\SideReport.OtherGroupTitle', "Other");
}
public function sort()
@ -59,7 +59,7 @@ class SideReportView extends ViewableData
} else {
$result = "<p class=\"message notice\">" .
_t(
'SideReport.REPEMPTY',
'SilverStripe\\Reports\\SideReport.REPEMPTY',
'The {title} report is empty.',
array('title' => $this->report->title())
)

0
lang/_manifest_exclude Normal file
View File

7
lang/en.yml Normal file
View File

@ -0,0 +1,7 @@
en:
SilverStripe\Reports\ReportAdmin:
MENUTITLE: Reports
ReportTitle: Title
SilverStripe\Reports\SideReport:
OtherGroupTitle: Other
REPEMPTY: 'The {title} report is empty.'