mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Reorganise i18n keys
This commit is contained in:
parent
24afd61131
commit
664fa75a02
8
.tx/config
Normal file
8
.tx/config
Normal 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
|
@ -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);
|
||||
|
@ -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(
|
||||
|
@ -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
0
lang/_manifest_exclude
Normal file
7
lang/en.yml
Normal file
7
lang/en.yml
Normal file
@ -0,0 +1,7 @@
|
||||
en:
|
||||
SilverStripe\Reports\ReportAdmin:
|
||||
MENUTITLE: Reports
|
||||
ReportTitle: Title
|
||||
SilverStripe\Reports\SideReport:
|
||||
OtherGroupTitle: Other
|
||||
REPEMPTY: 'The {title} report is empty.'
|
Loading…
Reference in New Issue
Block a user