add show texts to be translated

This commit is contained in:
Nikos Kouremenos 2005-05-21 13:19:42 +00:00
parent 5ff0cd00df
commit 3ad63c0c27
1 changed files with 14 additions and 5 deletions

View File

@ -17,15 +17,24 @@
## GNU General Public License for more details. ## GNU General Public License for more details.
## ##
from common import i18n
_ = i18n._
def get_uf_show(show): def get_uf_show(show):
'''returns a userfriendly string for dnd/xa/chat '''returns a userfriendly string for dnd/xa/chat
and capitalize()s the rest''' and capitalize()s the rest'''
if show == 'dnd': if show == 'dnd':
uf_show = 'Busy' uf_show = _('Busy')
elif show == 'xa': elif show == 'xa':
uf_show = 'Not Available' uf_show = _('Not Available')
elif show == 'chat': elif show == 'chat':
uf_show = 'Free for Chat' uf_show = _('Free for Chat')
else: elif show == 'online':
uf_show = show.capitalize() uf_show = _('Online')
elif show == 'connecting':
uf_show = _('Connecting')
elif show == 'away':
uf_show = _('Away')
elif show == 'away':
uf_show = _('Away')
return uf_show return uf_show