Commit 388f1692 authored by Nicolas Wavrant's avatar Nicolas Wavrant

Message.py: a translated string is a string

parent bbe7a725
......@@ -197,4 +197,4 @@ allow_class(Message)
def translateString(message, **kw):
return Message(domain='erp5_ui', message=message, **kw)
return str(Message(domain='erp5_ui', message=message, **kw))
  • calling str translates the message "now" (in the language of current user), I think this function is used to store messages in ZODB so that they are translated when displayed (in the language of users viewing the page where it's displayed)

  • Thanks @jerome for this precision. That explains the dump/load methods of this class. For the moment I'm doing trials/errors to see how far I can go before opening my next MR, but I'll fix the issue encountered here in another way.

  • mentioned in commit 75a83ad0

    Toggle commit list
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment