Hello,<br><br><br>Thanks to help.<br><br>It works fine but it creates a .pot file.<br><br>My goal is to create a .po file : when a site is already half translated, I&#39;d like to create a .po file a translator can use in poedit.<br>
<br>So the translator only has to translate the half not yet translated (and maybe bring some little corrections to the half already translated.)<br><br><br>WAGettextExample export <br><span style="color: rgb(0, 0, 153);">calls </span><br>
WAGetTextExporter new exportTemplate<br><br><span style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 153);">wich calls </span><br>self exportTranslator: nil<br><br><span style="color: rgb(0, 0, 153);">and we go there</span><br>
exportTranslator: translator <br>    &quot;Export translation files. the file extention is &#39;po&#39;, or &#39;pot&#39; if translator is nil &quot;<br><br><br>when the translator is nil, everything works well.<br><br>when I try with a translator it breaks here :<br>
<br>translationFor: aKey in: translator<br>    translator ifNil: [^&#39;&#39;].<br>    translator translations at: aKey ifPresent: [:s | ^s].<br>    &quot;If we have old camelCase translations, make space-separated words&quot;<br>
    translator translations at: aKey toCamelCase ifPresent: [:s | <br>        (s includes: Character space) ifTrue: [^s].<br>        ^s fromCamelCase].<br>    ^&#39;&#39;<br><br><br><br><br><br><br><div class="gmail_quote">
On 26 November 2011 12:51, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/11/24 Cédric Ternon &lt;<a href="mailto:cedricternon@gmail.com">cedricternon@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m trying to use the gettexts packages for seaSide.<br>
&gt; I finally achieve to create a .pot file, translate it with poedit and make<br>
&gt; the website translated.<br>
&gt; But now, I&#39;m trying to create a .po file, that is a .pot file with the<br>
&gt; strings already translated and the strings remaining to translate.<br>
&gt; (a .pot file beeing an empty template to begin without any translations)<br>
&gt;<br>
&gt; We followed this tutorial :<br>
&gt; <a href="http://code.google.com/p/seaside/wiki/Gettext" target="_blank">http://code.google.com/p/seaside/wiki/Gettext</a><br>
&gt; The versions used are :<br>
&gt; Seaside-Gettext-Core-NorbertHartl.10<br>
&gt; Seaside-Pharo-Gettext-Core-pmm.1<br>
&gt; Name: Gettext-HilaireFernandes.22<br>
&gt; When I simply try :<br>
&gt; GetTextExporter new exportTranslator: NaturalLanguageTranslator current.<br>
&gt; I got :<br>
&gt; <a href="http://pix.toile-libre.org/?img=1322152172.jpg" target="_blank">http://pix.toile-libre.org/?img=1322152172.jpg</a><br>
&gt; I&#39;ve got the same result with any GetTextTranslator<br>
&gt; I have tryed to look for an implementors of the method &quot;translations&quot; but no<br>
&gt; one is implementing it, is a pkged missing?<br>
&gt; I&#39;ve also tryed to replace it with &#39;class translators&#39; but this sound wrong<br>
&gt; and give me another unrelated error.<br>
<br>
</div></div>It looks like you&#39;re using GetTextExporter instead of<br>
WAGetTextExporter. Can you load Seaside-Gettext-Examples and evaluate<br>
<br>
WAGettextExample export<br>
<br>
and see if that works?<br>
<br>
Cheers<br>
Philippe<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>