On 02/25/2012 11:59 AM, András Murányi wrote:


On Fri, Feb 24, 2012 at 22:56, Hans-Christoph Steiner <hans@at.or.at> wrote:

I was updating pd-extended.git, so I threw in the new Japanese
translation :-).  I'll be sure to update it one last time before the
final release, so you can test it in a real build.

I'm all for choice with the language of the app, but it seems to me that
is something that the OS should handle.  So anyone who set their system
language to English will get Pd-extended in English.  For those who want
some mix of languages, then there is no standard technique that I know
of, and how you do it varies on each OS.  If someone wants to code this
for Pd-extended, patches are welcome.


If you want the *whole* app to change language, I'm pretty sure it will need to be restarted. Then I guess an equivalent of "export LANG" can be issued from tcl (and/or C?) at startup. (Could someone with the knowledge confirm/correct this plz?)
If it's enough to change the translatable strings' language, we already have the "_" function in tcl. I have no idea how it goes on the C side. Then I guess instead of restarting, it's possible to redraw the GUI (?).
I'd be happy to code into this when I know more.

András


What I meant by a mix of languages is a mix of apps on a given system running in different languages, i.e. Thunderbird in Japanese, Pd in English.  Perhaps this could be handled by a plugin?  I don't know all the possible ways of getting Tcl to change the language, but I do know that 'export LANG=ja' works.

.hc