Hi, On Dec 9, 2007 12:56 AM, Chris Ball <[EMAIL PROTECTED]> wrote: > Hi! > > I'd like to make code comments in Pippy examples translatable, > especially since so many of our deployments have Spanish as a > first language. Here's one example of what an on-disk format > could look like: > > # The next comment is localised. > ##en: Pippy example comment > ##es: Pippy ejemplo comentario > a = 5 > > In the Pippy view, the user would see either "# Pippy example" or > "# Pippy ejemplo comentario" for that line, depending on their locale. >
Well - you can have a system where there are source code example directories for each locale. So, when Pippy starts in with LANG set to es, it would load the files which are in examples/es >From what I understand, TurtleArt is moving towards such a solution (graphic files are loaded from locale specific directories) A script which extracts the translated comment from relevant PO files and builds the locale specific source code files should not be very difficult to write (If you want - I can try it out towards the end of this week). Warm regards, Sayamindu -- Sayamindu Dasgupta [http://sayamindu.randomink.org/ramblings] _______________________________________________ Sugar mailing list [email protected] http://lists.laptop.org/listinfo/sugar

