Gettext and exporting po files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gettext and exporting po files

JupiterJones
Hi All,

I'm just setting up the gettext stuff for multi-language support. So far so good. it looks great.

Now I want to export my pot/po files for my domain, however whenever I do...

GetTextExporter new exportTemplate

…it ONLY exports the 'pharo' domain. How can I get files for my domain?

I change the default domain to mine, and I get exactly the same file exported with all the pharo strings.

How can I export ONLY my domain?

Thanks in advance.

Jupiter

PS. Also I've seen a number of messages talking about the class WAGetTextExporter which doesn't exist. Is this just a typo, or is there a WAGetTextExporter living in a package outside the packages mentioned on http://code.google.com/p/seaside/wiki/Gettext

I've also tried the example and have exactly the same problem: GetTextExporter new exportTemplate exports the pharo domain and not the get text one.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Gettext and exporting po files

xx397
You have to do something like TextDomainManager registerCategoryPrefix:
'My-Category-Prefix' domain: 'name'

WAGetTextExporter just allows Seaside to use the browser language to
translate things. I believe it exists in Seaside30Addons. Be aware I had
to do a little patching of Gettext to make it work with Pharo 2.0

> Hi All,
>
> I'm just setting up the gettext stuff for multi-language support. So far so good. it looks great.
>
> Now I want to export my pot/po files for my domain, however whenever I do...
>
> GetTextExporter new exportTemplate
>
> …it ONLY exports the 'pharo' domain. How can I get files for my domain?
>
> I change the default domain to mine, and I get exactly the same file exported with all the pharo strings.
>
> How can I export ONLY my domain?
>
> Thanks in advance.
>
> Jupiter
>
> PS. Also I've seen a number of messages talking about the class WAGetTextExporter which doesn't exist. Is this just a typo, or is there a WAGetTextExporter living in a package outside the packages mentioned on http://code.google.com/p/seaside/wiki/Gettext
>
> I've also tried the example and have exactly the same problem: GetTextExporter new exportTemplate exports the pharo domain and not the get text one.
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside