damned-lies r1302 - in trunk: . vertimus
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1302 - in trunk: . vertimus
- Date: Mon, 5 Jan 2009 10:37:41 +0000 (UTC)
Author: claudep
Date: Mon Jan 5 10:37:40 2009
New Revision: 1302
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1302&view=rev
Log:
2009-01-05 Claude Paroz <claude 2xlibre net>
* vertimus/models.py: Fix error state -> old_state. Improve translation
and mail layout.
Modified:
trunk/ChangeLog
trunk/vertimus/models.py
Modified: trunk/vertimus/models.py
==============================================================================
--- trunk/vertimus/models.py (original)
+++ trunk/vertimus/models.py Mon Jan 5 10:37:40 2009
@@ -347,7 +347,7 @@
if recipient_list:
current_lang = get_language()
- activate(state.language.locale)
+ activate(old_state.language.locale)
current_site = Site.objects.get_current()
url = "http://%s%s" % (current_site.domain, urlresolvers.reverse(
'vertimus-names-view',
@@ -366,13 +366,13 @@
'module': old_state.branch.module.name,
'branch': old_state.branch.name,
'domain': old_state.domain.name,
- 'language': old_state.language.name,
+ 'language': old_state.language.get_name,
'new_state': new_state,
'url': url
}
message += self.comment or ugettext("Without comment")
message += "\n\n" + self.person.name
- message += _(u"--\nThis is an automated message sent from %s.") % current_site.domain
+ message += "\n--\n" + _(u"This is an automated message sent from %s.") % current_site.domain
mail.send_mail(subject, message, settings.SERVER_EMAIL, recipient_list)
activate(current_lang)
@@ -416,12 +416,12 @@
'module': state.branch.module.name,
'branch': state.branch.name,
'domain': state.domain.name,
- 'language': state.language.name,
+ 'language': state.language.get_name,
'url': url
}
message += comment or ugettext("Without comment")
message += "\n\n" + person.name
- message += _(u"--\nThis is an automated message sent from %s.") % current_site.domain
+ message += "\n--\n" + _(u"This is an automated message sent from %s.") % current_site.domain
mail.send_mail(subject, message, settings.SERVER_EMAIL, translator_emails)
activate(current_lang)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]