~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/i18n.py

  • Committer: INADA Naoki
  • Date: 2011-05-19 01:39:14 UTC
  • mto: (5930.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5932.
  • Revision ID: songofacandy@gmail.com-20110519013914-f2ae2p87641vf31f
Search '/usr/share/locale' when bzrlib/locale does not exist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        return os.path.join(base, u'locale')
53
53
    else:
54
54
        base = os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
55
 
        return os.path.realpath(os.path.join(base, u'locale'))
 
55
        dirpath = os.path.realpath(os.path.join(base, u'locale'))
 
56
        if os.path.exists(dirpath):
 
57
            return dirpath
 
58
        else:
 
59
            return '/usr/share/locale'
56
60
 
57
61
 
58
62
def _check_win32_locale():