From 1b6e21d7a657c87a48efe02a1191d06682c64829 Mon Sep 17 00:00:00 2001 From: tcit Date: Mon, 27 Oct 2014 15:12:46 +0100 Subject: [PATCH] translation fix finished for #871 and bring add tag from search feature to all themes --- inc/poche/Poche.class.php | 2 +- locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.mo | Bin 14376 -> 14331 bytes locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.po | 4 ++-- locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo | Bin 17922 -> 17885 bytes locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.po | 4 ++-- themes/baggy/home.twig | 3 ++- themes/courgette/home.twig | 14 ++++++++------ themes/default/_sorting.twig | 4 ++-- themes/default/home.twig | 13 ++++++++----- 9 files changed, 25 insertions(+), 19 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 8cebafa31..ecb2a51f8 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -388,7 +388,7 @@ class Poche $this->pagination->page_links('?view=' . $view . '?search=' . $search . '&sort=' . $_SESSION['sort'] . '&' )); $tpl_vars['page_links'] = $page_links; $tpl_vars['nb_results'] = $count; - $tpl_vars['search_term'] = $search; + $tpl_vars['searchterm'] = $search; } break; case 'view': diff --git a/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.mo b/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.mo index 2850b494c8014f7dfd0452efb12dbe897ce0bb7b..5aefe6c14e5a60bde5424a2dca146b3ab353baad 100644 GIT binary patch delta 3695 zcmZ|QdrZ}39LMp;1XSQ0u0jV<4kA}kL@)%+OF(GqCS^iHQ&Yf9Qvu5x9Z^dNSU6_lNUy^Phg>dtT4)^4z}9^ZW7fk_U_H z=ehiiG3Nq}3C5q$4?8g%AL2+HA7o5lT#4RTk9ORQq1b5oCGuy!<;NF0a6R5a2QH-( zAFM^y-xO?ICW^u?E~MdcOvNr7it!=F^ug(BF>QZ#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8Uj#ZMFjJjq^~MT850>l)EYD!naYW zJC0hTHq;H@pc=e^TEkyZ4gQ9DG5HVm?wxql{UeZ9gPDpBtUzr-53*|JFls^_s7$!; zQcy>F_97qQgZsM_T6vs2gXauA685UWV#mJ*wkZP^qoMRD2Cx_z@=HkC=$I;oeN8 z;|x9j`4sf-Z@@5YLB0FWp;CMUL(z=zZptuJM+vA5q@V_#iMlSw`n?bjaXu53df$=O zoKvRHV_)^SVD(h6fMLAVlFYpvn{x9wpPC9SU^F0Q>(w0m`x~=y9gbx5_)UQ zB4Rup!RZqBLjS8^k(73%Z}kCvpiL3khw( zo+I4T9ulvAxVw)hEi+IXS4WN~JT%^4yC%+)9h&7HL1_|EPp})hkL`T#A@su3@g|`s zaW}Dz(7y%EL=>Szd-Z){DA9*VB#sj`L^Sa_F^ABheXnDKmjJVc!g$Y}&>vFD%a^Zn zRF#!Fs^%|oIGmNG^D7pX&8;e}SmAV3t>TxZl@4!Zb6c1zpxNGcQAqNCZu&p>6b1ha DnM{0y diff --git a/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.po b/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.po index ebde5681b..7a1c88da7 100644 --- a/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.po +++ b/locale/en_EN.utf8/LC_MESSAGES/en_EN.utf8.po @@ -589,8 +589,8 @@ msgstr "" msgid "Enter your search here" msgstr "Enter your search here" -msgid "Apply the tag %search_term% to this search" -msgstr "Apply the tag %search_term% to this search" +msgid "Tag these results as" +msgstr "Tag these results as" # ebook msgid "Fancy an E-Book ?" diff --git a/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo b/locale/fr_FR.utf8/LC_MESSAGES/fr_FR.utf8.mo index 638c2135bca84c806f0d010920aebd0801c5d647..da087516d80aed792f03751f1ff39d968c4f8efe 100644 GIT binary patch delta 3998 zcmX}v3s6*59LMoPMrgP!DTHau?qUpo#^Ngu>o6MM!4bF_3-BDq;{Z;I#1f3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WET; z;*oV^@-Pe+Av@PRgj(HO(AUP8pHZ3pJJT6JG%HW{#i6!yZWj3ur*IDy5x5vNrxt4D z8&R35MK!b&d6sz%Bk>1pi`P&Y(*jutA;?BBi&2?-3U%KWT#e1R1@i}!f35ak2Ro^Y z9^x#feyDAjiJJSVsKrx>YIqZ>gY~FX?nMpcsC)hu>b~DlnHezDnS$v!k@Em5GkYuw zcT#v4Ct-Xxe<*MXPQf=&i>MP%TZ0quEW(Ey+GPnTQ znPw5H;Z3N_Si30POktl}aT%3r&rQyQ!!efgIMkxca_dK+Mtlou4b67zE!4=LKwbYn z_P}P;;`|Afxll&MuCYus1>MjcyJNoV64czUbG1?1>>2mG7Ipnj)X3jOHS`tc;$`fH z!$&#;%13o*9;(BI*iHMtioz%=>XB@l?~#v5r1E;4kIKjz)QwfBj_pOQiMLRxd>^$4 zPoSpc3)JryP#tVVb-U{XZvAaiYLXc^W{dV zHKjn^eTA52U-2dQCQy2T&=F&&h4)H}qm&&ycfPa$RuM{98{#m*-ZvBN;_#Fl?Kt)S z-(x$4r9@w11;OhpIAeEX8lmLm5jx6=$@Z!6gsx=Gyho6P;K3}J8|Sbp{ zM5k%t{`c6#iJ!RNt<+ZDMI_rr5wSkz#jJOK$+W8@qV*4#Sw_UWwVIU;#A^3k)2ZG1 zBJnJtb@~P|iqJ8|{wAWo6-J5oh&e*+A#^-K=+(KBc%68TNF?fr8e$lsMf3r2D^W`< zB6RF 1 %}{% trans "Mark all the entries as read" %}{% endif %}{% endif %} - {% if search_term is defined %}{% trans %}Apply the tag {{ search_term }} to this search{% endtrans %}{% endif %} + {% if searchterm is defined %} +{% trans "Tag these results as" %} {{ searchterm }}{% endif %} {% if tag %}{% trans "Download the articles from this tag in an epub" %} {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} diff --git a/themes/courgette/home.twig b/themes/courgette/home.twig index 811298eb5..ff27db435 100755 --- a/themes/courgette/home.twig +++ b/themes/courgette/home.twig @@ -26,13 +26,13 @@ {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}{% if search_term is defined %}{% trans " found for « " %} {{ search_term }} »{% endif %}
+
{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %}
{{ page_links | raw }}
{% elseif nb_results == 1 %} - {% if search_term is defined %} + {% if searchterm is defined %}
-
{% trans "Only one result found for " %} « {{ search_term }} »
+
{% trans "Only one result found for " %} « {{ searchterm }} »
{% endif %} {% endif %} @@ -53,10 +53,12 @@ {{ block('pager') }} - {% if tag %}{% trans "Download the articles from this tag in an epub" %} - {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} + {% if searchterm is defined %}{% trans "Tag these results as" %} {{ searchterm }}{% endif %} + + {% if tag %}{% trans "Download the articles from this tag in an epub" %} + {% elseif searchterm is defined %}{% trans "Download the articles from this search in an epub" %} {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/themes/default/_sorting.twig b/themes/default/_sorting.twig index ce3d38bc9..3ce9b949f 100755 --- a/themes/default/_sorting.twig +++ b/themes/default/_sorting.twig @@ -1,6 +1,6 @@ {% if entries|length > 1 %}
    -
  • {% trans {% trans "by date" %} {% trans
  • -
  • {% trans {% trans "by title" %} {% trans
  • +
  • {% trans {% trans "by date" %} {% trans
  • +
  • {% trans {% trans "by title" %} {% trans
{% endif %} diff --git a/themes/default/home.twig b/themes/default/home.twig index 093c2dc5e..6bc549e6c 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig @@ -31,13 +31,13 @@ {% block pager %} {% if nb_results > 1 %}
-
{{ nb_results }} {% trans "results" %}{% if search_term is defined %}{% trans " found for « " %} {{ search_term }} »{% endif %}
+
{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %}
{{ page_links | raw }}
{% elseif nb_results == 1 %} - {% if search_term is defined %} + {% if searchterm is defined %}
-
{% trans "Only one result found for " %} « {{ search_term }} »
+
{% trans "Only one result found for " %} « {{ searchterm }} »
{% endif %} {% endif %} @@ -60,8 +60,11 @@ {% if view == 'home' %}{% if nb_results > 1 %}{% trans "mark all the entries as read" %}{% endif %}{% endif %} - {% if tag %}{% trans "Download the articles from this tag in an epub" %} - {% elseif search_term is defined %}{% trans "Download the articles from this search in an epub" %} + {% if searchterm is defined %} +{% trans "Tag these results as" %} {{ searchterm }}{% endif %} + + {% if tag %}{% trans "Download the articles from this tag in an epub" %} + {% elseif searchterm is defined %}{% trans "Download the articles from this search in an epub" %} {% else %}{% trans "Download the articles from this category in an epub" %}{% endif %} {% endif %}