Signed-off-by: Lucio Correia <luciojhc(a)linux.vnet.ibm.com>
---
src/wok/message.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/wok/message.py b/src/wok/message.py
index a3794d0..a7162c7 100644
--- a/src/wok/message.py
+++ b/src/wok/message.py
@@ -78,7 +78,11 @@ class WokMessage(object):
return translation.gettext(text)
- def get_text(self):
+ def get_text(self, prepend_code=True):
msg = self._get_translation()
msg = unicode(msg, 'utf-8') % self.args
- return "%s: %s" % (self.code, msg)
+
+ if prepend_code:
+ return "%s: %s" % (self.code, msg)
+
+ return msg
--
1.9.1
Show replies by date