gettext errors with wxPython in linux

  • Thread starter =?iso-8859-1?B?aWFuYXLp?=
  • Start date


given the foolowing code:

import gettext
gettext.install('messages', './locale', unicode=0)


def __init__(self, parent):
# initialise preferences
self.prefs = self.getPrefs()

# initialise language:
language = self.prefs['language=']
langdir = self.realPath('./locale')
Lang = gettext.translation(domain='messages',
localedir=langdir, languages=[language])


# return full path:
def realPath(self, file):
return os.path.join(sys.path[0],file)

and using following structure:

works fine in windows2k, XP, however under linux:
IOError: [Errno 2] No translation file found for domain: 'messages'

what gives? thanks.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question