mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Improved internationalization
This commit is contained in:
parent
6190f66802
commit
33810c33ca
@ -22,11 +22,23 @@ class ArchiveWidget extends Widget {
|
||||
'DisplayMode' => 'month'
|
||||
);
|
||||
|
||||
static $title;
|
||||
|
||||
static $cmsTitle;
|
||||
static $title = 'Browse by Date';
|
||||
|
||||
static $description;
|
||||
static $cmsTitle = 'Blog Archive';
|
||||
|
||||
static $description = 'Show a list of months or years in which there are blog posts, and provide links to them.';
|
||||
|
||||
function Title() {
|
||||
return i18n::_t('ArchiveWidget.BrowseByDate', ArchiveWidget::$title);
|
||||
}
|
||||
|
||||
function CMSTitle() {
|
||||
return i18n::_t('ArchiveWidget.BlogArchive', ArchiveWidget::$cmsTitle);
|
||||
}
|
||||
|
||||
function Description() {
|
||||
return i18n::_t('ArchiveWidget.Description', ArchiveWidget::$description);
|
||||
}
|
||||
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
@ -107,7 +119,4 @@ class ArchiveWidget extends Widget {
|
||||
}
|
||||
}
|
||||
|
||||
ArchiveWidget::$title = i18n::_t('ArchiveWidget.BrowseByDate', 'Browse by Date');
|
||||
ArchiveWidget::$cmsTitle = i18n::_t('ArchiveWidget.BlogArchive', 'Blog Archive');
|
||||
ArchiveWidget::$description = i18n::_t('ArchiveWidget.Description', 'Show a list of months or years in which there are blog posts, and provide links to them.');
|
||||
?>
|
||||
|
@ -17,8 +17,8 @@ if(array_key_exists('de_DE', $lang) && is_array($lang['de_DE'])) {
|
||||
}
|
||||
|
||||
$lang['de_DE']['ArchiveWidget']['BlogArchive'] = 'Archiv';
|
||||
$lang['de_DE']['ArchiveWidget']['BrowseByDate'] = '√úbersicht';
|
||||
$lang['de_DE']['ArchiveWidget']['Description'] = 'Zeigt eine Liste von Monaten oder Jahren, welche Blog Einträge enthalten und erstellt Links';
|
||||
$lang['de_DE']['ArchiveWidget']['BrowseByDate'] = 'Archiv';
|
||||
$lang['de_DE']['ArchiveWidget']['Description'] = 'Zeigt eine Liste von Monaten oder Jahren, welche Blog Einträge enthalten und erstellt Links';
|
||||
$lang['de_DE']['ArchiveWidget']['DispBY'] = 'Anzeige nach';
|
||||
$lang['de_DE']['ArchiveWidget']['MONTH'] = 'Monat';
|
||||
$lang['de_DE']['ArchiveWidget']['PLURALNAME'] = 'Archiv-Widgets';
|
||||
|
Loading…
Reference in New Issue
Block a user