mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
* Internationalized all messages
* added german translations * to make dates internationalized, too, the setlocale(LC_TIME, Translatable::get_current_locale() . ".UTF8"); should be set in the mysite/code/Page.php ContentController's init function
This commit is contained in:
parent
1ed87c004e
commit
6190f66802
@ -233,7 +233,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
$contentfield,
|
||||
$tagfield,
|
||||
new LiteralField("Tagsnote"," <label id='tagsnote'>"._t('BlogHolder.TE', "For example: sport, personal, science fiction")."<br/>" .
|
||||
_t('BlogHolder.SPUC', "Please separate tags using commas.")."</label>")
|
||||
_t('BlogHolder.SPUC', "Please separate tags using commas.")."</label><br />")
|
||||
);
|
||||
|
||||
$submitAction = new FormAction('postblog', _t('BlogHolder.POST', 'Post blog entry'));
|
||||
|
@ -22,12 +22,12 @@ class ArchiveWidget extends Widget {
|
||||
'DisplayMode' => 'month'
|
||||
);
|
||||
|
||||
static $title = 'Browse by Date';
|
||||
static $title;
|
||||
|
||||
static $cmsTitle = 'Blog Archive';
|
||||
|
||||
static $description = 'Show a list of months or years in which there are blog posts, and provide links to them.';
|
||||
static $cmsTitle;
|
||||
|
||||
static $description;
|
||||
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
@ -107,4 +107,7 @@ 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.');
|
||||
?>
|
||||
|
@ -21,8 +21,8 @@ class TagCloudWidget extends Widget {
|
||||
"Sortby" => "alphabet"
|
||||
);
|
||||
|
||||
static $cmsTitle = "Tag Cloud";
|
||||
static $description = "Shows a tag cloud of tags on your blog.";
|
||||
static $cmsTitle;
|
||||
static $description;
|
||||
|
||||
static $popularities = array( 'not-popular', 'not-very-popular', 'somewhat-popular', 'popular', 'very-popular', 'ultra-popular' );
|
||||
|
||||
@ -145,5 +145,6 @@ class TagCloudWidget extends Widget {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
TagCloudWidget::$cmsTitle = i18n::_t('TagCloudWidget.TAGCLOUD', 'Tag Cloud');
|
||||
TagCloudWidget::$description = i18n::_t('TagCloudWidget.DESCRIPTION', 'Shows a tag cloud of tags on your blog.');
|
||||
?>
|
||||
|
@ -16,6 +16,9 @@ if(array_key_exists('de_DE', $lang) && is_array($lang['de_DE'])) {
|
||||
$lang['de_DE'] = $lang['en_US'];
|
||||
}
|
||||
|
||||
$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']['DispBY'] = 'Anzeige nach';
|
||||
$lang['de_DE']['ArchiveWidget']['MONTH'] = 'Monat';
|
||||
$lang['de_DE']['ArchiveWidget']['PLURALNAME'] = 'Archiv-Widgets';
|
||||
@ -56,8 +59,11 @@ $lang['de_DE']['BlogManagementWidget.ss']['POSTNEW'] = 'Neuen Eintrag schreiben'
|
||||
$lang['de_DE']['BlogManagementWidget']['UNM1'] = 'Sie haben 1 noch nicht moderierten Kommentar';
|
||||
$lang['de_DE']['BlogManagementWidget']['UNMM'] = 'Sie haben %i noch nicht moderierte Kommentare';
|
||||
$lang['de_DE']['BlogSummary.ss']['COMMENTS'] = 'Kommentare';
|
||||
$lang['de_DE']['BlogSummary.ss']['COMMENTSTITLE'] = 'Kommentare von diesem Eintrag anzeigen.';
|
||||
$lang['de_DE']['BlogSummary.ss']['POSTEDBY'] = 'Verfasst von';
|
||||
$lang['de_DE']['BlogSummary.ss']['POSTEDON'] = 'am';
|
||||
$lang['de_DE']['BlogSummary.ss']['READFULLPOSTTITLE'] = 'Den ganzen Eintrag lesen';
|
||||
$lang['de_DE']['BlogSummary.ss']['READFULLPOST'] = 'Weiterlesen';
|
||||
$lang['de_DE']['BlogSummary.ss']['VIEWFULL'] = 'Detaillierte Ansicht von dem Titel --';
|
||||
$lang['de_DE']['RSSWidget']['CT'] = 'Eigener Titel für den feed';
|
||||
$lang['de_DE']['RSSWidget']['NTS'] = 'Anzahl der angezeigten Items';
|
||||
@ -68,6 +74,8 @@ $lang['de_DE']['SubscribeRSSWidget']['PLURALNAME'] = 'RSS-Abonnier-Widgets';
|
||||
$lang['de_DE']['SubscribeRSSWidget']['SINGULARNAME'] = 'RSS-Abonnier-Widget';
|
||||
$lang['de_DE']['SubscribeRSSWidget.ss']['SUBSCRIBETEXT'] = 'Abonnieren';
|
||||
$lang['de_DE']['SubscribeRSSWidget.ss']['SUBSCRIBETITLE'] = 'Abonniere diesen Blog per RSS';
|
||||
$lang['de_DE']['TagCloudWidget']['CMSTITLE'] = 'Tags';
|
||||
$lang['de_DE']['TagCloudWidget']['DESCRIPTION'] = 'Zeigt die Liste der Tags des Blogs.';
|
||||
$lang['de_DE']['TagCloudWidget']['LIMIT'] = 'Anzahl der erlaubten Tags';
|
||||
$lang['de_DE']['TagCloudWidget']['PLURALNAME'] = 'Tag-Cloud-Widgets';
|
||||
$lang['de_DE']['TagCloudWidget']['SBAL'] = 'Alphabet';
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
global $lang;
|
||||
|
||||
$lang['en_US']['ArchiveWidget']['BlogArchive'] = 'Blog Archive';
|
||||
$lang['en_US']['ArchiveWidget']['BrowseByDate'] = 'Browse by Date';
|
||||
$lang['en_US']['ArchiveWidget']['Description'] = 'Show a list of months or years in which there are blog posts, and provide links to them.';
|
||||
$lang['en_US']['ArchiveWidget']['DispBY'] = 'Display by';
|
||||
$lang['en_US']['ArchiveWidget']['MONTH'] = 'month';
|
||||
$lang['en_US']['ArchiveWidget']['PLURALNAME'] = array(
|
||||
@ -72,9 +75,12 @@ $lang['en_US']['BlogManagementWidget']['UNM1'] = 'You have 1 unmoderated comment
|
||||
$lang['en_US']['BlogManagementWidget']['UNMM'] = 'You have %i unmoderated comments';
|
||||
$lang['en_US']['BlogManagementWidget.ss']['LOGOUT'] = 'Logout';
|
||||
$lang['en_US']['BlogManagementWidget.ss']['POSTNEW'] = 'Post a new blog entry';
|
||||
$lang['en_US']['BlogSummary.ss']['COMMENTSTITLE'] = 'View Comments for this post.';
|
||||
$lang['en_US']['BlogSummary.ss']['COMMENTS'] = 'Comments';
|
||||
$lang['en_US']['BlogSummary.ss']['POSTEDBY'] = 'Posted by';
|
||||
$lang['en_US']['BlogSummary.ss']['POSTEDON'] = 'on';
|
||||
$lang['en_US']['BlogSummary.ss']['READFULLPOSTTITLE'] = 'Read Full Post';
|
||||
$lang['en_US']['BlogSummary.ss']['READFULLPOST'] = 'Read the full post';
|
||||
$lang['en_US']['BlogSummary.ss']['VIEWFULL'] = 'View full post titled -';
|
||||
$lang['en_US']['BlogTree']['PLURALNAME'] = array(
|
||||
'Blog Tres',
|
||||
@ -111,6 +117,8 @@ $lang['en_US']['SubscribeRSSWidget']['SINGULARNAME'] = array(
|
||||
);
|
||||
$lang['en_US']['SubscribeRSSWidget.ss']['SUBSCRIBETEXT'] = 'Subscribe';
|
||||
$lang['en_US']['SubscribeRSSWidget.ss']['SUBSCRIBETITLE'] = 'Subscribe to this blog via RSS';
|
||||
$lang['en_US']['TagCloudWidget']['CMSTITLE'] = 'Tag Cloud';
|
||||
$lang['en_US']['TagCloudWidget']['DESCRIPTION'] = 'Shows a tag cloud of tags on your blog.';
|
||||
$lang['en_US']['TagCloudWidget']['LIMIT'] = 'Limit number of tags';
|
||||
$lang['en_US']['TagCloudWidget']['PLURALNAME'] = array(
|
||||
'Tag Cloud Widgets',
|
||||
|
@ -2,8 +2,8 @@
|
||||
<ul class="archiveMonths">
|
||||
<% control Dates %>
|
||||
<li>
|
||||
<a href="$Link">
|
||||
$Date.Format(F) $Date.Year
|
||||
<a href="$Link">
|
||||
$Date.FormatI18N(%B) $Date.Year
|
||||
</a>
|
||||
</li>
|
||||
<% end_control %>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="blogSummary">
|
||||
<h2 class="postTitle"><a href="$Link" title="<% _t('VIEWFULL', 'View full post titled -') %> '$Title'">$MenuTitle</a></h2>
|
||||
<p class="authorDate"><% _t('POSTEDBY', 'Posted by') %> $Author.XML <% _t('POSTEDON', 'on') %> $Date.Long | <a href="$Link#PageComments_holder" title="View Comments Posted">$Comments.Count <% _t('COMMENTS', 'Comments') %></a></p>
|
||||
<p class="authorDate"><% _t('POSTEDBY', 'Posted by') %> $Author.XML <% _t('POSTEDON', 'on') %> $Date.FormatI18N(%x) | | <a href="$Link#PageComments_holder" title="View Comments Posted">$Comments.Count <% _t('COMMENTS', 'Comments') %></a></p>
|
||||
<% if TagsCollection %>
|
||||
<p class="tags">
|
||||
Tags:
|
||||
@ -12,5 +12,5 @@
|
||||
|
||||
<p>$Content.FirstParagraph(html)</p>
|
||||
|
||||
<p class="blogVitals"><a href="$Link#PageComments_holder" class="comments" title="View Comments for this post">$Comments.Count comments</a> | <a href="$Link" class="readmore" title="Read Full Post">Read the full post</a></p>
|
||||
<p class="blogVitals"><a href="$Link#PageComments_holder" class="comments" title="<% _t('BlogSummary.ss.COMMENTSTITLE', 'View Comments for this post') %>"> $Comments.Count <% _t('BlogSummary.ss.COMMENTS', 'comments') %> </a> | <a href="$Link" class="readmore" title="<% _t('BlogSummary.ss.READFULLPOSTTITLE', 'Read FULL Post') %>"><% _t('BlogSummary.ss.READFULLPOST', 'Read the full post') %></a></p>
|
||||
</div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<div class="blogEntry">
|
||||
<h2 class="postTitle">$Title</h2>
|
||||
<p class="authorDate"><% _t('POSTEDBY', 'Posted by') %> $Author.XML <% _t('POSTEDON', 'on') %> $Date.Long | $Comments.Count <% _t('COMMENTS', 'Comments') %></p>
|
||||
<p class="authorDate"><% _t('POSTEDBY', 'Posted by') %> $Author.XML <% _t('POSTEDON', 'on') %> $Date.FormatI18N(%x) | $Comments.Count <% _t('COMMENTS', 'Comments') %></p>
|
||||
<% if TagsCollection %>
|
||||
<p class="tags">
|
||||
<% _t('TAGS', 'Tags:') %>
|
||||
|
Loading…
Reference in New Issue
Block a user