Translation problem

Problem:
In a computer it is wanted to install an application that must show
information in different languages.
Thanks to the module we, gettext, have been able to implement that the texts
that are shown are translated.
The user selects the language and act from a file .mo every language.
The problem are the messages and dialogues since it shows the buttons in the
language of the operating system by default.
Is there any way of telling python that the text of the dialogues is in a
specific language?
And in affirmative case. How is it made? since all the attempts have been
useless.
I think that wxLocale has to be used, but I do not become clear.

We are using Python 2.3.3 and wxpython 2.4.2.4 in W2K.

This is my code:
The button of "OK" is not translated.
What is wrong ? What I forgot?

#I have a mo file named myapp.mo for translate my own dialogs.
#its containt
#....
#....
#: myapp.py:23
#msgid "Hello World"
#msgstr "Bonjour Monde"
#...
#in this location .\locale\fr\LC_MESSAGES

import gettext
from wxPython.wx import *
import wx
import locale
import sys, os, time

def startapp(self):

    self.loc = wx.Locale()
    self.loc.Init(wx.LANGUAGE_FRENCH)

    gettext.translation("myapp", ".\locale",languages=['fr']).install()

    #display the message "Bonjour Monde", but the OK button not is
translate!!!!!
    dlg = wxMessageDialog(None, _('Hello World'),'', wxOK |
wxICON_INFORMATION)
    try:
        dlg.ShowModal()
    finally:
        dlg.Destroy()

class BoaApp(wxApp):
    def OnInit(self):
        wxInitAllImageHandlers()
        startapp(self)
        return True

def main():
    try:
        demopath= os.path.dirname(__file__)
        os.chdir(demopath)
    except:
        pass
    application = BoaApp(0)
    application.MainLoop()

if __name__ == '__main__':
    main()

Greetings.

···

_______________________________________________

python@ammsoft.com

{8~~~~~~~~~~~~~~~~