Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Localize the draft labels.

  • Loading branch information...
commit 179d65cae5bb75c05cb9b279a1bada148d570196 1 parent bff35e7
Christian Hammond authored October 13, 2009

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  reviewboard/reviews/datagrids.py
10  reviewboard/reviews/datagrids.py
@@ -159,23 +159,23 @@ def render_data(self, review_request):
159 159
             try:
160 160
                 draft = review_request.draft.get()
161 161
                 summary = conditional_escape(draft.summary)
162  
-                return self.__labeled_summary('Draft', summary)
  162
+                return self.__labeled_summary(_('Draft'), summary)
163 163
             except ReviewRequestDraft.DoesNotExist:
164 164
                 pass
165 165
 
166 166
             if (not review_request.public and
167 167
                 review_request.status == ReviewRequest.PENDING_REVIEW):
168  
-                return self.__labeled_summary('Draft', summary)
  168
+                return self.__labeled_summary(_('Draft'), summary)
169 169
 
170 170
         if review_request.status == ReviewRequest.SUBMITTED:
171  
-            return self.__labeled_summary('Submitted', summary)
  171
+            return self.__labeled_summary(_('Submitted'), summary)
172 172
         elif review_request.status == ReviewRequest.DISCARDED:
173  
-            return self.__labeled_summary('Discarded', summary)
  173
+            return self.__labeled_summary(_('Discarded'), summary)
174 174
 
175 175
         return summary
176 176
 
177 177
     def __labeled_summary(self, label, summary):
178  
-        return '<span class="draftlabel">[%s]</span> %s' % (label, summary)
  178
+        return u'<span class="draftlabel">[%s]</span> %s' % (label, summary)
179 179
 
180 180
 
181 181
 class PendingCountColumn(Column):

0 notes on commit 179d65c

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