<br><br><div class="gmail_quote">On Wed, Jan 9, 2013 at 5:35 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>&gt;</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&#39;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>
&gt; I have visited this problem some time ago, and these were my (more or less<br>
&gt; accurate) findings:<br>
&gt; - There are language strings in the C code as well as in Tcl<br>
&gt; - In Tcl there is a straightforward way to redefine the language, but I<br>
&gt; haven&#39;t found a way to change the actual strings on the display without<br>
&gt; having to restart Pd<br>
&gt; - I have no idea how it goes on the C side :)<br>
&gt; - My impression is that this may go beyond the scope of a plugin<br>
&gt;<br>
&gt; András<br>
&gt;<br>
&gt; On Wed, Jan 9, 2013 at 2:50 PM, batinste &lt;<a href="mailto:dwanafite@yahoo.fr">dwanafite@yahoo.fr</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; language-plugin, anyone ? :)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 09/01/2013 14:23, Hans-Christoph Steiner wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; The easiest way is to start it in the Terminal like this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; GNU/Linux: LANG=en pd-extended<br>
</div>&gt;&gt;&gt; Mac OS X:  LANG=en /Applications/Pd-extended.app/**<br>
<div class="im HOEnZb">&gt;&gt;&gt; Contents/Resources/bin/pd<br>
&gt;&gt;&gt; Windows (in cmd.exe):<br>
&gt;&gt;&gt;   set LANG=en<br>
&gt;&gt;&gt;   &quot;%ProgramFiles%\pd\bin\pd&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If you want to force English, you can also delete the .msg files in the<br>
&gt;&gt;&gt; pd/po<br>
&gt;&gt;&gt; folder.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; .hc<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 01/09/2013 07:05 AM, Joăo Pais wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; with the latest Pd version, Pd uses the system language as standard. The<br>
&gt;&gt;&gt;&gt; thing<br>
&gt;&gt;&gt;&gt; is, I want to keep my Pd in english. How is it possible to set the<br>
&gt;&gt;&gt;&gt; language<br>
&gt;&gt;&gt;&gt; when starting Pd?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Where can suggestions to the language be sent?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Best,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Joăo<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;</div></blockquote></div>