Skip to content

Commit 75287ed

Browse files
committed
[Bug 630536] Remove %(locale)s
1 parent 1da75b4 commit 75287ed

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

apps/wiki/models.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,11 +640,10 @@ def clean(self):
640640
old = self.based_on
641641
self.based_on = based_on # Be nice and guess a correct value.
642642
# TODO(erik): This error message ignores non-translations.
643-
raise ValidationError(_('A revision must be based on a '
644-
'revision of the %(locale)s document. Revision ID'
645-
' %(id)s does not fit those criteria.') %
646-
dict(locale=LOCALES[settings.WIKI_DEFAULT_LANGUAGE].native,
647-
id=old.id))
643+
raise ValidationError(_('A revision must be based on the '
644+
'English article. Revision ID %(id)s does not fit this'
645+
' criterion.') %
646+
dict(id=old.id))
648647

649648
if not self.can_be_readied_for_localization():
650649
self.is_ready_for_localization = False

apps/wiki/templates/wiki/includes/document_macros.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ <h1 class="title">{{ document.title }}</h1>
6060
{{ document.html|safe }}
6161
{% elif fallback_reason == 'no_translation' %}
6262
<div id="doc-pending-fallback" class="warning-box">
63-
{% trans help_link=url('wiki.document', 'localize-firefox-help'),
64-
locale=settings.LOCALES[request.locale].native %}
65-
Our volunteers haven't translated this article into {{ locale }} yet.
63+
{% trans help_link=url('wiki.document', 'localize-firefox-help') %}
64+
No one has helped translate this article yet.
6665
<a href="{{ help_link }}">Join us and help get the job done!</a>
6766
{% endtrans %}
6867
</div>

0 commit comments

Comments
 (0)