Author: asterix Date: 2008-08-04 10:07:07 +0200 (Mon, 04 Aug 2008) New Revision: 10123
Modified: trunk/src/common/connection.py trunk/src/common/stanza_session.py Log: make back strings translatable
Modified: trunk/src/common/connection.py =================================================================== --- trunk/src/common/connection.py 2008-08-04 02:32:47 UTC (rev 10122) +++ trunk/src/common/connection.py 2008-08-04 08:07:07 UTC (rev 10123) @@ -1084,7 +1084,8 @@ lang = os.getenv('LANG') if lang is not None and lang != 'en': # we're not english # one in locale and one en - msgtxt = _(msgtxt) + ' (' + msgtxt + ')' + msgtxt = _('[This message is *encrypted* (See :XEP:`27`]') + \ + ' (' + msgtxt + ')' else: # Encryption failed, do not send message tim = localtime()
Modified: trunk/src/common/stanza_session.py =================================================================== --- trunk/src/common/stanza_session.py 2008-08-04 02:32:47 UTC (rev 10122) +++ trunk/src/common/stanza_session.py 2008-08-04 08:07:07 UTC (rev 10123) @@ -254,7 +254,9 @@ 'If you see this message, something went wrong.]' lang = os.getenv('LANG') if lang is not None and lang != 'en': # we're not english - msgtxt = _(msgtxt) + ' (' + msgtxt + ')' + msgtxt = _('[This message is part of an encrypted session. ' + 'If you see this message, something went wrong.]') + ' (' + \ + msgtxt + ')' stanza.setBody(msgtxt)
return stanza