Commit
d7f5cd40fc0211191d592780d724d4b32eb37182
Exists in
master
and in
39 other branches
1.12.x, add_requests_as_dep, celery_service, change-passwd-signal, check-port, colab-signals, colab-vcard, colab_search, colab_tag, colab_tag_merge, community_association, detach_super_archives, fix-dashboard, fix-message-preview, fix_app_label, fix_cache_count_spb, fix_header, fixed_gitlab_import, go_to_profile_panel, header_footer, layout-fix, mobile_user_scalable, move_out_plugins, paginate-threads, profile_integration, refactor-data-import, remove-gitlab-plugin, removing_namespace, search_block, search_filters, spb-release/3.0, split_screen, stable, startplugin, timestamp_plugins, translation_review, user_regex, validate-passwd, workin_whoosh_temp
Adding missing file from last commit
| @@ -0,0 +1,13 @@ |
| @@ -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) |