aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/template.class.php3
-rw-r--r--template/yoga/menubar_identification.tpl6
-rw-r--r--template/yoga/menubar_links.tpl2
-rw-r--r--template/yoga/menubar_specials.tpl2
-rw-r--r--template/yoga/menubar_tags.tpl2
5 files changed, 9 insertions, 6 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 382071e7a..8ed354f7f 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -405,6 +405,9 @@ class Template {
$regex = "~$ldq *\'([^'$]+)\'\|@translate\|~";
$source = preg_replace( $regex.'e', 'isset($lang[\'$1\']) ? \'{\'.var_export($lang[\'$1\'],true).\'|\' : \'$0\'', $source);
+ $regex = "~($ldq *assign +var=.+ +value=)\'([^'$]+)\'\|@translate~e";
+ $source = preg_replace( $regex, 'isset($lang[\'$2\']) ? \'$1\'.var_export($lang[\'$2\'],true) : \'$0\'', $source);
+
return $source;
}
}
diff --git a/template/yoga/menubar_identification.tpl b/template/yoga/menubar_identification.tpl
index 49d2732a9..1cb219cd4 100644
--- a/template/yoga/menubar_identification.tpl
+++ b/template/yoga/menubar_identification.tpl
@@ -1,4 +1,4 @@
-<dt>{$block->get_title()|@translate}</dt>
+<dt>{'identification'|@translate}</dt>
<dd>
{if isset($USERNAME)}
<p>{'hello'|@translate}&nbsp;{$USERNAME}&nbsp;!</p>
@@ -41,9 +41,9 @@
</div>
{if $AUTHORIZE_REMEMBERING}
- <div><label>
+ <div><label for="remember_me">
{'remember_me'|@translate}
- <input type="checkbox" name="remember_me" value="1">
+ <input type="checkbox" name="remember_me" id="remember_me" value="1">
</label></div>
{/if}
diff --git a/template/yoga/menubar_links.tpl b/template/yoga/menubar_links.tpl
index 9de94ff7d..eaef54afe 100644
--- a/template/yoga/menubar_links.tpl
+++ b/template/yoga/menubar_links.tpl
@@ -1,4 +1,4 @@
-<dt>{$block->get_title()|@translate}</dt>
+<dt>{'Links'|@translate}</dt>
<dd>
<ul>
{foreach from=$block->data item=link}
diff --git a/template/yoga/menubar_specials.tpl b/template/yoga/menubar_specials.tpl
index 8bda68402..e551558f6 100644
--- a/template/yoga/menubar_specials.tpl
+++ b/template/yoga/menubar_specials.tpl
@@ -1,4 +1,4 @@
-<dt>{$block->get_title()|@translate}</dt>
+<dt>{'special_categories'|@translate}</dt>
<dd>
<ul>
{foreach from=$block->data item=link}
diff --git a/template/yoga/menubar_tags.tpl b/template/yoga/menubar_tags.tpl
index 0200eb5b7..82c2f9826 100644
--- a/template/yoga/menubar_tags.tpl
+++ b/template/yoga/menubar_tags.tpl
@@ -1,4 +1,4 @@
-<dt>{$block->get_title()|@translate}</dt>
+<dt>{'Related tags'|@translate}</dt>
<dd>
<ul id="menuTagCloud">
{foreach from=$block->data item=tag}