changeset 7638:11caff9ee818 stable

model,templates: make text argument to h.link_to translatable strings The first argument to h.link_to() is the link text. It should be marked as translatable to other languages.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Tue, 16 Apr 2019 22:25:27 +0200
parents 5bb7a18b0431
children 535f8d26ed31
files kallithea/templates/admin/gists/edit.html kallithea/templates/base/default_perms_box.html
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/admin/gists/edit.html	Tue Apr 16 21:52:51 2019 +0200
+++ b/kallithea/templates/admin/gists/edit.html	Tue Apr 16 22:25:27 2019 +0200
@@ -33,7 +33,7 @@
             <div class="alert alert-dismissable alert-warning">
               <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><i class="icon-cancel-circled"></i></button>
               ${h.literal(_('Gist was update since you started editing. Copy your changes and click %(here)s to reload new version.')
-                             % {'here': h.link_to('here',h.url('edit_gist', gist_id=c.gist.gist_access_id))})}
+                             % {'here': h.link_to(_('here'),h.url('edit_gist', gist_id=c.gist.gist_access_id))})}
             </div>
             <script>
             if (typeof jQuery != 'undefined') {
--- a/kallithea/templates/base/default_perms_box.html	Tue Apr 16 21:52:51 2019 +0200
+++ b/kallithea/templates/base/default_perms_box.html	Tue Apr 16 22:25:27 2019 +0200
@@ -13,7 +13,7 @@
                     ${h.checkbox('inherit_default_permissions',value=True)}
                     <span class="help-block">
                         ${h.literal(_('Select to inherit global settings, IP whitelist and permissions from the %s.')
-                                    % h.link_to('default permissions', url('admin_permissions')))}
+                                    % h.link_to(_('default permissions'), url('admin_permissions')))}
                     </span>
                 </div>
             </div>