Changeset - 11caff9ee818
[Not reviewed]
stable
0 2 0
Thomas De Schampheleire - 7 years ago 2019-04-16 22:25:27
thomas.de_schampheleire@nokia.com
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.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/admin/gists/edit.html
Show inline comments
 
@@ -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') {
kallithea/templates/base/default_perms_box.html
Show inline comments
 
@@ -13,7 +13,7 @@ ${h.form(form_url)}
 
                    ${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>
0 comments (0 inline, 0 general)