Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2106 -- Made collapse-block JavaScript translatable. Thanks, r…

…amiro

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 29f55c8dbb298bcaa5af0b3949cd1a1c39620b8d 1 parent 2abfd5d
Adrian Holovaty authored June 08, 2006
8  django/contrib/admin/media/js/admin/CollapsedFieldsets.js
@@ -31,7 +31,7 @@ var CollapsedFieldsets = {
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,7 +60,7 @@ var CollapsedFieldsets = {
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,9 +69,9 @@ var CollapsedFieldsets = {
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() {
76 76
 		var fieldsets = document.getElementsByTagName('fieldset');
77 77
 		for (var i=0; i<fieldsets.length; i++) {
2  django/contrib/auth/views.py
@@ -36,7 +36,7 @@ def logout(request, next_page=None, template_name='registration/logged_out.html'
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)

0 notes on commit 29f55c8

Please sign in to comment.
Something went wrong with that request. Please try again.