/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-12 04:57:40 UTC
  • mto: (0.140.51 trunk) (6645.1.1 stats)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: jelmer@samba.org-20111112045740-g11rfri1eps73ykq
SupportĀ translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    bzr_plugin_version  as version_info,
22
22
    )
23
23
 
 
24
try:
 
25
    from bzrlib.i18n import load_plugin_translations
 
26
except ImportError: # No translations for bzr < 2.5
 
27
    gettext = lambda x: x
 
28
else:
 
29
    translation = load_plugin_translations("bzr-stats")
 
30
    gettext = translation.ugettext
 
31
 
24
32
__version__ = _format_version_tuple(version_info)
25
33
 
26
34