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):
...
@@ -16,7 +17,7 @@ class SidebarForm(PluginSidebarFormMixin):
self.fields['image'].required=True
self.fields['image'].required=True
defget_usermessage(self):
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):
defsave(self,*args,**kwargs):
ifnotself.instance.id:
ifnotself.instance.id:
...
@@ -65,5 +66,5 @@ class PurgeForm(forms.Form):
...
@@ -65,5 +66,5 @@ class PurgeForm(forms.Form):
defclean_confirm(self):
defclean_confirm(self):
confirm=self.cleaned_data['confirm']
confirm=self.cleaned_data['confirm']
ifnotconfirm:
ifnotconfirm:
raiseforms.ValidationError(_('You are not sure enough!'))
raiseforms.ValidationError(ugettext('You are not sure enough!'))