Ticket #2106: admin-js-logout-i18n.diff
File admin-js-logout-i18n.diff, 2.2 KB (added by , 18 years ago) |
---|
-
django/contrib/auth/views.py
36 36 try: 37 37 del request.session[SESSION_KEY] 38 38 except KeyError: 39 return render_to_response(template_name, {'title': 'Logged out'}, context_instance=RequestContext(request))39 return render_to_response(template_name, {'title': _('Logged out')}, context_instance=RequestContext(request)) 40 40 else: 41 41 # Redirect to this page until the session has been cleared. 42 42 return HttpResponseRedirect(next_page or request.path) -
django/contrib/admin/media/js/admin/CollapsedFieldsets.js
31 31 collapse_link.id = 'fieldsetcollapser' + i; 32 32 collapse_link.onclick = new Function('CollapsedFieldsets.show('+i+'); return false;'); 33 33 collapse_link.href = '#'; 34 collapse_link.innerHTML = 'Show';34 collapse_link.innerHTML = gettext('Show'); 35 35 var h2 = fs.getElementsByTagName('h2')[0]; 36 36 h2.appendChild(document.createTextNode(' (')); 37 37 h2.appendChild(collapse_link); … … 60 60 // Toggle the "Show" link to a "Hide" link 61 61 var collapse_link = document.getElementById('fieldsetcollapser' + fieldset_index); 62 62 collapse_link.onclick = new Function('CollapsedFieldsets.hide('+fieldset_index+'); return false;'); 63 collapse_link.innerHTML = 'Hide';63 collapse_link.innerHTML = gettext('Hide'); 64 64 }, 65 65 hide: function(fieldset_index) { 66 66 var fs = document.getElementsByTagName('fieldset')[fieldset_index]; … … 69 69 // Toggle the "Hide" link to a "Show" link 70 70 var collapse_link = document.getElementById('fieldsetcollapser' + fieldset_index); 71 71 collapse_link.onclick = new Function('CollapsedFieldsets.show('+fieldset_index+'); return false;'); 72 collapse_link.innerHTML = 'Show';72 collapse_link.innerHTML = gettext('Show'); 73 73 }, 74 74 75 75 uncollapse_all: function() {