#10 optik i18n support



sorry if you receive this twice, i'm not sure that it
submitted successfully the first time around.

by default optik does not support internationlization,
so option help output will always have some strings
that are in English.

i've made a patch to optik 1.4.1 to support
internationlization using the standard gettext
module...patch with -p1.

it wraps all strings that can be displayed to users
(NOT messages that indicate programming errors or
invalid optik state) with calls to gettext.gettext()

patch attached.


  • Leon J. Breedt

    Leon J. Breedt - 2003-05-13

    i18n patch

  • Leon J. Breedt

    Leon J. Breedt - 2003-05-14

    Logged In: YES

    small bug in the patch:

    in option_parser.py:

    self.usage = usage[7:]

    should be:

    self.usage = usage[i:]

  • Greg Ward

    Greg Ward - 2003-05-27

    Logged In: YES

    Yes, the patch is in my queue. I'll *try* to look at it
    before Optik 1.4.2/Python 2.3, but I make no promises.

  • Greg Ward

    Greg Ward - 2003-06-18
    • assigned_to: nobody --> gward
  • Greg Ward

    Greg Ward - 2004-05-15
    • assigned_to: gward --> nobody
  • Greg Ward

    Greg Ward - 2004-05-15
    • assigned_to: nobody --> gward
  • Greg Ward

    Greg Ward - 2004-06-04
    • status: open --> closed-accepted
  • Greg Ward

    Greg Ward - 2004-06-04

    Logged In: YES

    OK, checked in (with slight modifications to account for the
    various changes to Optik in the many months since this patch
    was first submitted):
    lib/help.py rev 1.12
    lib/option.py rev 1.30
    lib/option_parser.py rev 1.63


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks