wxPython i18n question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Logan

    wxPython i18n question

    Is it possible to tell the wxPython widgets (e.g. file dialogs)
    to use another language (instead of English)?

    Thanks in advance for any hints!

    --
    mailto: logan@phreaker( NoSpam).net

  • Martin v. Löwis

    #2
    Re: wxPython i18n question

    Logan <logan@phreaker .nospam> writes:
    [color=blue]
    > Is it possible to tell the wxPython widgets (e.g. file dialogs)
    > to use another language (instead of English)?[/color]

    That should certainly be possible. In standard wxPython builds, you
    are restricted to characters of the "host" encoding (I'm not sure what
    that encoding is). There are separate "Unicode" builds of wxPython,
    where you can use Unicode strings throughout.

    Regards,
    Martin

    Comment

    • Jarek Zgoda

      #3
      Re: wxPython i18n question

      Logan <logan@phreaker .nospam> pisze:
      [color=blue]
      > Is it possible to tell the wxPython widgets (e.g. file dialogs)
      > to use another language (instead of English)?[/color]

      Yes, look at article on i18n at wxPython Wiki.

      --
      Jarek Zgoda
      Unregistered Linux User #-1
      http://www.zgoda.biz/ JID:zgoda@chrom e.pl http://zgoda.jogger.pl/

      Comment

      • Logan

        #4
        Re: wxPython i18n question

        On Mon, 24 Nov 2003 22:51:14 +0000, Jarek Zgoda wrote:
        [color=blue]
        > Logan <logan@phreaker .nospam> pisze:
        >[color=green]
        >> Is it possible to tell the wxPython widgets (e.g. file dialogs)
        >> to use another language (instead of English)?[/color]
        >
        > Yes, look at article on i18n at wxPython Wiki.[/color]

        You mean to use GNU gettext? I thought, this will only provide
        i18n for the parts of the application which I wrote myself (e.g.
        buttons, menus), but *not* for predefined wxPython widgets like
        file dialogs etc. !?

        --
        mailto: logan@phreaker( NoSpam).net

        Comment

        • Jarek Zgoda

          #5
          Re: wxPython i18n question

          Logan <logan@phreaker .nospam> pisze:
          [color=blue][color=green][color=darkred]
          >>> Is it possible to tell the wxPython widgets (e.g. file dialogs)
          >>> to use another language (instead of English)?[/color]
          >>
          >> Yes, look at article on i18n at wxPython Wiki.[/color]
          >
          > You mean to use GNU gettext? I thought, this will only provide
          > i18n for the parts of the application which I wrote myself (e.g.
          > buttons, menus), but *not* for predefined wxPython widgets like
          > file dialogs etc. !?[/color]

          You should not only set usual locale by locale.setlocal e() call, but
          also use wxLocale. Check wxWindows documentation on wxLocale.

          --
          Jarek Zgoda
          Unregistered Linux User #-1
          http://www.zgoda.biz/ JID:zgoda@chrom e.pl http://zgoda.jogger.pl/

          Comment

          Working...