raiseforms.ValidationError(_('While you were editing, someone else changed the revision. Your contents have been automatically merged with the new contents. Please review the text below.'))
raiseforms.ValidationError(ugettext('While you were editing, someone else changed the revision. Your contents have been automatically merged with the new contents. Please review the text below.'))
@@ -16,7 +17,7 @@ class SidebarForm(PluginSidebarFormMixin):
self.fields['image'].required=True
defget_usermessage(self):
return_("New image %s was successfully uploaded. You can use it by selecting it from the list of available images.")%self.instance.get_filename()
returnugettext("New image %s was successfully uploaded. You can use it by selecting it from the list of available images.")%self.instance.get_filename()
defsave(self,*args,**kwargs):
ifnotself.instance.id:
...
...
@@ -65,5 +66,5 @@ class PurgeForm(forms.Form):
defclean_confirm(self):
confirm=self.cleaned_data['confirm']
ifnotconfirm:
raiseforms.ValidationError(_('You are not sure enough!'))
raiseforms.ValidationError(ugettext('You are not sure enough!'))