[Seaside] seaside - gettext - how to export a .po file ?
philippe.marschall at gmail.com
Sat Nov 26 15:59:10 UTC 2011
2011/11/26 Cédric Ternon <cedricternon at gmail.com>:
> Thanks to help.
> It works fine but it creates a .pot file.
> 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.
> So the translator only has to translate the half not yet translated (and
> maybe bring some little corrections to the half already translated.)
> WAGettextExample export
> WAGetTextExporter new exportTemplate
> wich calls
> self exportTranslator: nil
> and we go there
> exportTranslator: translator
> "Export translation files. the file extention is 'po', or 'pot' if
> translator is nil "
> when the translator is nil, everything works well.
> when I try with a translator it breaks here :
> translationFor: aKey in: translator
> translator ifNil: [^''].
> translator translations at: aKey ifPresent: [:s | ^s].
> "If we have old camelCase translations, make space-separated words"
> translator translations at: aKey toCamelCase ifPresent: [:s |
> (s includes: Character space) ifTrue: [^s].
> ^s fromCamelCase].
It's probably best to ask Hilaire on pharo-dev.
More information about the seaside