Commit d7f5cd40fc0211191d592780d724d4b32eb37182

Authored by Sergio Oliveira
1 parent 207ad3bb

Adding missing file from last commit

Showing 1 changed file with 13 additions and 0 deletions   Show diff stats
src/search/utils.py 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +
  2 +from django.utils.translation import ugettext as _
  3 +
  4 +
  5 +def trans(key):
  6 + translations = {
  7 + 'wiki': _('Wiki'),
  8 + 'thread': _('Emails'),
  9 + 'changeset': _('Code'),
  10 + 'ticket': _('Tickets'),
  11 + }
  12 +
  13 + return translations.get(key, key)
... ...