mercurial/i18n.py
changeset 9538 f96ee862aba0
parent 9320 884964f99e07
child 10263 25e572394f5c
equal deleted inserted replaced
9537:460e410c39be 9538:f96ee862aba0
    14 else:
    14 else:
    15     module = __file__
    15     module = __file__
    16 
    16 
    17 base = os.path.dirname(module)
    17 base = os.path.dirname(module)
    18 for dir in ('.', '..'):
    18 for dir in ('.', '..'):
    19     localedir = os.path.normpath(os.path.join(base, dir, 'locale'))
    19     localedir = os.path.join(base, dir, 'locale')
    20     if os.path.isdir(localedir):
    20     if os.path.isdir(localedir):
    21         break
    21         break
    22 
    22 
    23 t = gettext.translation('hg', localedir, fallback=True)
    23 t = gettext.translation('hg', localedir, fallback=True)
    24 
    24