[gcompris-devel] Segmentation fault CVS
Bruno Coudoin
bruno.coudoin at free.fr
Sun Jan 25 23:43:01 UTC 2004
Le lun 26/01/2004 à 02:59, Olivier Samyn a écrit :
> Hello...
>
> The I18N support for the python plugins is in the CVS :)
>
> I made some minor changes to get it working.
>
> to use I18N, just do the following import:
> from gettext import gettext as _
>
> and next you are able to get the translated strings with _(<your
> string>) just as in C code. Small print example:
> print "Something" < Not translated version
> print _("Something") < Translated version
>
> If some issues remains don't hesitate :)
>
> Otherwise I will try to prepare some demo material on how to program
> python plugins for gcompris :)
>
I will test it asap.
Perhaps this mail could be put in your "Python wrapper for Gcompris"
manual.
I though about creating a utility that could create a new empty board on
the fly.
For example to create a new board about mars:
$ create_new_board mars
That would create the boards/mars.xml.in. point the icon to an 'under
construction icon' and a difficulty level of 0 (under development
boards)
Update the boards/Makefile.am
create the src/boards/python/mars.py from a predefined template (we
could put in example on how to create the different canvas object and
move them. Have it extensively commented.
Update src/boards/python/Makefile.am
Update po/POTFILE.in
What to you think ?
Bruno.
> Olivier Samyn.
>
> Bruno Coudoin wrote:
>
> >I checked your code. The keyboard issue is gone.
> >
> >Another very important point for you to help is the I18N support in the
> >python boards. I have been unable to make is work. It's populated
> >properly in the .po files but whatever I tried, it's never translated.
> >Please give us a reference implementation for this.
> >
> >Bruno.
> >
> >
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> gcompris-devel mailing list
> gcompris-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gcompris-devel
>
More information about the Gcompris-devel
mailing list