Improved internationalization

This commit is contained in:
Johannes Weberhofer 2011-06-22 15:46:33 +02:00
parent 6190f66802
commit 33810c33ca
2 changed files with 18 additions and 9 deletions

View File

@ -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.');
?>

View File

@ -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';