From ff56413eb57818370093c482b617091e7b14814f Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 Aug 2016 13:00:10 +0200 Subject: [PATCH] Apply translation function on all labels --- tpl/default/404.html | 2 +- tpl/default/addlink.html | 6 ++-- tpl/default/editlink.html | 16 ++++----- tpl/default/linklist.html | 23 ++++++------ tpl/default/linklist.paging.html | 6 ++-- tpl/default/loginform.html | 14 ++++---- tpl/default/page.header.html | 60 ++++++++++++------------------- tpl/default/tools.html | 62 ++++++++++++++++---------------- 8 files changed, 88 insertions(+), 101 deletions(-) diff --git a/tpl/default/404.html b/tpl/default/404.html index a9738160..edc5ac4b 100644 --- a/tpl/default/404.html +++ b/tpl/default/404.html @@ -8,7 +8,7 @@ {include="page.header"}
-

Sorry, nothing to see here.

+

{'Sorry, nothing to see here.'|t}

{$error_message}

diff --git a/tpl/default/addlink.html b/tpl/default/addlink.html index 13adeb49..8e64064f 100644 --- a/tpl/default/addlink.html +++ b/tpl/default/addlink.html @@ -8,13 +8,13 @@
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 0630b4f1..a0ea91b2 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -10,28 +10,28 @@
-

Shaare

+

{'Shaare'|t}

- +
- +
- +
- +
-   +  
- + {if="!$link_is_new"} - + {/if}
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 19a0c3c7..0a46c876 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -24,22 +24,22 @@
-
Nothing found.
+
{'Nothing found.'|t}
{elseif="!empty($search_term) or !empty($search_tags)"}
- {$result_count} results + {function="t('%s result', '%s results', $result_count)"} {if="!empty($search_term)"} - for {$search_term} + {'for'|t} {$search_term} {/if} {if="!empty($search_tags)"} {$exploded_tags=explode(' ', $search_tags)} - tagged + {'tagged'|t} {loop="$exploded_tags"} - + {$value} {/loop} @@ -57,9 +57,10 @@