diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-16 13:05:42 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-16 13:05:42 +0200 |
commit | 45cf147ed6adefec76c60c7892b9f1b03cf386bb (patch) | |
tree | 2f006cbb2e89ad5b4db53c6b4abddb2757d9b09d | |
parent | 1023ab3de7bab23876ea7e8d258e7e520a73ae6f (diff) |
display translated tagstrings in virtual "tags" headers
-rw-r--r-- | alot/widgets/thread.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index 53708f68..8f52eda7 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -151,7 +151,12 @@ class MessageWidget(urwid.WidgetWrap): lines.append((key, dvalue)) elif key.lower() == 'tags': logging.debug('want tags header') - values = self.message.get_tags() + values = [] + for t in self.message.get_tags(): + tagrep = settings.get_tagstring_representation(t) + if t is not tagrep['translated']: + t = '%s (%s)' % (tagrep['translated'], t) + values.append(t) lines.append((key, ', '.join(values))) key_att = settings.get_theming_attribute('thread', 'header_key') |