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'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> "Export translation files. the file extention is 'po', or 'pot' if translator is nil "<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: [^''].<br> translator translations at: aKey ifPresent: [:s | ^s].<br> "If we have old camelCase translations, make space-separated words"<br>
translator translations at: aKey toCamelCase ifPresent: [:s | <br> (s includes: Character space) ifTrue: [^s].<br> ^s fromCamelCase].<br> ^''<br><br><br><br><br><br><br><div class="gmail_quote">
On 26 November 2011 12:51, Philippe Marschall <span dir="ltr"><<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>></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 <<a href="mailto:cedricternon@gmail.com">cedricternon@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> I'm trying to use the gettexts packages for seaSide.<br>
> I finally achieve to create a .pot file, translate it with poedit and make<br>
> the website translated.<br>
> But now, I'm trying to create a .po file, that is a .pot file with the<br>
> strings already translated and the strings remaining to translate.<br>
> (a .pot file beeing an empty template to begin without any translations)<br>
><br>
> We followed this tutorial :<br>
> <a href="http://code.google.com/p/seaside/wiki/Gettext" target="_blank">http://code.google.com/p/seaside/wiki/Gettext</a><br>
> The versions used are :<br>
> Seaside-Gettext-Core-NorbertHartl.10<br>
> Seaside-Pharo-Gettext-Core-pmm.1<br>
> Name: Gettext-HilaireFernandes.22<br>
> When I simply try :<br>
> GetTextExporter new exportTranslator: NaturalLanguageTranslator current.<br>
> I got :<br>
> <a href="http://pix.toile-libre.org/?img=1322152172.jpg" target="_blank">http://pix.toile-libre.org/?img=1322152172.jpg</a><br>
> I've got the same result with any GetTextTranslator<br>
> I have tryed to look for an implementors of the method "translations" but no<br>
> one is implementing it, is a pkged missing?<br>
> I've also tryed to replace it with 'class translators' but this sound wrong<br>
> and give me another unrelated error.<br>
<br>
</div></div>It looks like you'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>