Advanced Generic Widgets and i18n

Hi All,

I have noticed that the agw library has no internationalization
support. For example, the cubecolourdialog has english labels built
into the source code. Is it possible to make a change and add i18n
support with gettext?

(I could do this myself, if Andrea gives me permission.)

Thanks,

   Laszlo

HI Laszlo,

Hi All,

I have noticed that the agw library has no internationalization
support. For example, the cubecolourdialog has english labels built
into the source code. Is it possible to make a change and add i18n
support with gettext?

(I could do this myself, if Andrea gives me permission.)

No problem, please go ahead and create a patch against SVN if you can.
Any contribution to AGW is more than welcome. I18N is something I
never spent too much time on, but I guess it is time to do something
about it (few of the widgets should be already I18N-able, like
GenericMessageDialog and BusyInfo, if I remember correctly...).

Thank you for bringing this issue up.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 25 February 2012 14:56, nagylzs wrote:

Hi Laszlo,

···

On 25 February 2012 19:45, Andrea Gavana wrote:

HI Laszlo,

On 25 February 2012 14:56, nagylzs wrote:

Hi All,

I have noticed that the agw library has no internationalization
support. For example, the cubecolourdialog has english labels built
into the source code. Is it possible to make a change and add i18n
support with gettext?

(I could do this myself, if Andrea gives me permission.)

No problem, please go ahead and create a patch against SVN if you can.
Any contribution to AGW is more than welcome. I18N is something I
never spent too much time on, but I guess it is time to do something
about it (few of the widgets should be already I18N-able, like
GenericMessageDialog and BusyInfo, if I remember correctly...).

Thank you for bringing this issue up.

Fixed in SVN for CubeColourDialog. If you (or anyone else) can find
any other place in AGW where I18N support is needed, please do let me
know.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Well, I know at least another place. In framemanager.py

minimize_toolbar.AddSimpleTool(ID_RESTORE_FRAME, paneInfo.caption,
restore_bitmap, "Restore " + paneInfo.caption, target=target)

It should be something like:

_(u"Restore %s")%paneInfo.caption

Thank you for your help!

Done in that latest SVN.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/

···

On 26 February 2012 17:08, nagylzs wrote:

Well, I know at least another place. In framemanager.py

minimize_toolbar.AddSimpleTool(ID_RESTORE_FRAME, paneInfo.caption,

restore_bitmap, "Restore " + paneInfo.caption, target=target)

It should be something like:

_(u"Restore %s")%paneInfo.caption