- Patch #5418 by hba: made the Xtemplate theme fully translatable.
parent
010c419a21
commit
3b30ca4fc7
|
@ -35,6 +35,9 @@ function xtemplate_node($node, $main = 0, $page = 0) {
|
||||||
global $xtemplate;
|
global $xtemplate;
|
||||||
|
|
||||||
$xtemplate->template->assign(array(
|
$xtemplate->template->assign(array(
|
||||||
|
"submitted" => t("Submitted by %a on %b.",
|
||||||
|
array("%a" => format_name($node),
|
||||||
|
"%b" => format_date($node->created))),
|
||||||
"link" => url("node/view/$node->nid"),
|
"link" => url("node/view/$node->nid"),
|
||||||
"title" => $node->title,
|
"title" => $node->title,
|
||||||
"author" => format_name($node),
|
"author" => format_name($node),
|
||||||
|
@ -66,10 +69,14 @@ function xtemplate_comment($comment, $links = 0) {
|
||||||
global $xtemplate;
|
global $xtemplate;
|
||||||
|
|
||||||
$xtemplate->template->assign(array (
|
$xtemplate->template->assign(array (
|
||||||
"title" => $comment->subject,
|
"new" => t("new"),
|
||||||
"author" => format_name($comment),
|
"submitted" => t("Submitted by %a on %b.",
|
||||||
"date" => format_date($comment->timestamp),
|
array("%a" => format_name($comment),
|
||||||
"content" => $comment->comment
|
"%b" => format_date($comment->timestamp))),
|
||||||
|
"title" => $comment->subject,
|
||||||
|
"author" => format_name($comment),
|
||||||
|
"date" => format_date($comment->timestamp),
|
||||||
|
"content" => $comment->comment
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($comment->new) {
|
if ($comment->new) {
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
<!-- BEGIN: title -->
|
<!-- BEGIN: title -->
|
||||||
<h2 class="title"><a href="{link}">{title}</a></h2>
|
<h2 class="title"><a href="{link}">{title}</a></h2>
|
||||||
<!-- END: title -->
|
<!-- END: title -->
|
||||||
<span class="submitted">Submitted by {author} on {date}.</span>
|
<span class="submitted">{submitted}</span>
|
||||||
<!-- BEGIN: taxonomy -->
|
<!-- BEGIN: taxonomy -->
|
||||||
<span class="taxonomy">{taxonomy}</span>
|
<span class="taxonomy">{taxonomy}</span>
|
||||||
<!-- END: taxonomy -->
|
<!-- END: taxonomy -->
|
||||||
|
@ -72,8 +72,8 @@
|
||||||
|
|
||||||
<!-- BEGIN: comment -->
|
<!-- BEGIN: comment -->
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<h3 class="title">{title}</h3><!-- BEGIN: new --><span class="new">new</span><!-- END: new -->
|
<h3 class="title">{title}</h3><!-- BEGIN: new --><span class="new">{new}</span><!-- END: new -->
|
||||||
<div class="submitted">Submitted by {author} on {date}.</div>
|
<div class="submitted">{submitted}</div>
|
||||||
<div class="content">{content}</div>
|
<div class="content">{content}</div>
|
||||||
<!-- BEGIN: links -->
|
<!-- BEGIN: links -->
|
||||||
<div class="links">» {links}</div>
|
<div class="links">» {links}</div>
|
||||||
|
|
Loading…
Reference in New Issue