~ubuntu-branches/ubuntu/jaunty/gdesklets/jaunty-updates

« back to all changes in this revision

Viewing changes to utils/i18n.py

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2008-09-02 22:00:17 UTC
  • mfrom: (2.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080902220017-m66bj19l0ll8x7yh
Tags: 0.36-5
* Redo 40_dont_update_mime.diff to use a more compact syntax by 
  Loïc Minier's suggestion.  Thanks lool.
* Regenerate 70_relibtoolize.diff accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
import sys
4
4
 
5
5
 
6
 
def find_locale_dir():
 
6
def _find_locale_dir():
7
7
 
8
8
    fullpath = os.path.abspath(sys.argv[0])
9
9
    d, f = os.path.split(fullpath)
19
19
 
20
20
def Translator(domain):
21
21
    try:
22
 
        localedir = find_locale_dir()
 
22
        localedir = _find_locale_dir()
23
23
        return gettext.translation(domain, localedir).gettext
24
24
    except IOError:
25
25
        return lambda s: s