diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index 2bfbc97..d5ece3f 100644
a
|
b
|
class ForeignKeyRawIdWidget(forms.TextInput):
|
112 | 112 | # API to determine the ID dynamically. |
113 | 113 | output.append('<a href="%s%s" class="related-lookup" id="lookup_id_%s" onclick="return showRelatedObjectLookupPopup(this);"> ' % \ |
114 | 114 | (related_url, url, name)) |
115 | | output.append('<img src="%simg/admin/selector-search.gif" width="16" height="16" alt="Lookup" /></a>' % settings.ADMIN_MEDIA_PREFIX) |
| 115 | output.append('<img src="%simg/admin/selector-search.gif" width="16" height="16" alt="%s" /></a>' % (settings.ADMIN_MEDIA_PREFIX, _('Lookup'))) |
116 | 116 | if value: |
117 | 117 | output.append(self.label_for_value(value)) |
118 | 118 | return mark_safe(u''.join(output)) |
… |
… |
class RelatedFieldWidgetWrapper(forms.Widget):
|
192 | 192 | # API to determine the ID dynamically. |
193 | 193 | output.append(u'<a href="%sadd/" class="add-another" id="add_id_%s" onclick="return showAddAnotherPopup(this);"> ' % \ |
194 | 194 | (related_url, name)) |
195 | | output.append(u'<img src="%simg/admin/icon_addlink.gif" width="10" height="10" alt="Add Another"/></a>' % settings.ADMIN_MEDIA_PREFIX) |
| 195 | output.append(u'<img src="%simg/admin/icon_addlink.gif" width="10" height="10" alt="%s"/></a>' % (settings.ADMIN_MEDIA_PREFIX, _('Add Another'))) |
196 | 196 | return mark_safe(u''.join(output)) |
197 | 197 | |
198 | 198 | def build_attrs(self, extra_attrs=None, **kwargs): |