<br><br><div class="gmail_quote">On Wed, Jan 9, 2013 at 5:35 PM, Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Since Tcl handles all of the changing of English strings to the chosen<br>
language,</blockquote><div><br>Does it mean that there are no GUI strings in the C code?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> it is theoritically possible to do in a plugin. The key problem is<br>
that the translations are loaded (load_locale in pd-gui.tcl) before the<br>
plugins and Tcl's msgcat, the library for the translations, provides mcload,<br>
but no mkunload.<br></blockquote><div><br>To be exact, not even mcunload would be necessary, just a way to reload strings according to the new locale. Unfortunately, this functionality is missing from TCL (there are some feature requests in the tracker that target it, though).<br>
So, to effectively change the GUI language, Pd needs to be restarted. Do we wish to have a language selection option in the preferences, which writes its setting somewhere on the disk, and then load_locale would be changed in a way that it takes a look at the saved setting before defaulting to the OS/env language? (my vote is: no)<br>
<br>András<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
.hc<br>
<div class="im"><br>
On 01/09/2013 10:35 AM, András Murányi wrote:<br>
> I have visited this problem some time ago, and these were my (more or less<br>
> accurate) findings:<br>
> - There are language strings in the C code as well as in Tcl<br>
> - In Tcl there is a straightforward way to redefine the language, but I<br>
> haven't found a way to change the actual strings on the display without<br>
> having to restart Pd<br>
> - I have no idea how it goes on the C side :)<br>
> - My impression is that this may go beyond the scope of a plugin<br>
><br>
> András<br>
><br>
> On Wed, Jan 9, 2013 at 2:50 PM, batinste <<a href="mailto:dwanafite@yahoo.fr">dwanafite@yahoo.fr</a>> wrote:<br>
><br>
>> language-plugin, anyone ? :)<br>
>><br>
>><br>
>> On 09/01/2013 14:23, Hans-Christoph Steiner wrote:<br>
>><br>
>>> The easiest way is to start it in the Terminal like this:<br>
>>><br>
>>> GNU/Linux: LANG=en pd-extended<br>
</div>>>> Mac OS X: LANG=en /Applications/Pd-extended.app/**<br>
<div class="im HOEnZb">>>> Contents/Resources/bin/pd<br>
>>> Windows (in cmd.exe):<br>
>>> set LANG=en<br>
>>> "%ProgramFiles%\pd\bin\pd"<br>
>>><br>
>>> If you want to force English, you can also delete the .msg files in the<br>
>>> pd/po<br>
>>> folder.<br>
>>><br>
>>> .hc<br>
>>><br>
>>><br>
>>> On 01/09/2013 07:05 AM, Joăo Pais wrote:<br>
>>><br>
>>>> Hi,<br>
>>>><br>
>>>> with the latest Pd version, Pd uses the system language as standard. The<br>
>>>> thing<br>
>>>> is, I want to keep my Pd in english. How is it possible to set the<br>
>>>> language<br>
>>>> when starting Pd?<br>
>>>><br>
>>>> Where can suggestions to the language be sent?<br>
>>>><br>
>>>> Best,<br>
>>>><br>
>>>> Joăo<br>
>>>><br>
>>><br>
><br>
></div></blockquote></div>