[Grok-doc] how-to-internationalize-your-application works well

Sebastian Ware sebastian at urbantalk.se
Wed Dec 16 09:29:00 EST 2009


The Paster Buildout.cfg is different. And I think you are right that  
it is better to put the configuration in src/helloworld/ 
configure.zcml. Could you update since you have the HelloWorld  
configure.zcml. I am afraid I will mistype.

Mvh Sebastian

16 dec 2009 kl. 14.04 skrev Vincent Fretin:

> With paster base app, you have this:
>
> [app]
> recipe = zc.recipe.egg
> eggs = HelloWorld
>       z3c.evalexception>=2.0
>       Paste
>       PasteScript
>       PasteDeploy
> interpreter = python-console
>
> Is it different?
>
> Vincent
>
> On Wed, Dec 16, 2009 at 1:54 PM, Sebastian Ware <sebastian at urbantalk.se 
> > wrote:
>> It is under the section [app].  I am still using --zopectl layout.  
>> Is it
>> different when cerating a paster based app?
>>
>> Mvh Sebastian
>>
>>
>> 16 dec 2009 kl. 13.42 skrev Vincent Fretin:
>>
>>> I'm confused. Where is the site.zcml= in buildout.cfg you're talking
>>> about?
>>> Do you mean the 'zcml =' option in the [i18n] part?
>>>
>>> This option is only used for the i18n recipe to extract strings from
>>> zcml (title, description), but we have nothing in zcml with grok
>>> normally.
>>> I'll write only
>>> [i18n]
>>> ...
>>> zcml = <include package="helloworld" />
>>>
>>> and you include the line
>>> <i18n:registerTranslations directory="locales" />
>>> in src/helloworld/configure.zcml. You definitly want to have that  
>>> line
>>> there if you use your application in another buildout so that the
>>> translation are taken at runtime.
>>>
>>>
>>> Vincent
>>>
>>> On Wed, Dec 16, 2009 at 12:20 PM, Sebastian Ware <sebastian at urbantalk.se 
>>> >
>>> wrote:
>>>>
>>>> Read it and changed configuration instructions to use buildout.cfg.
>>>> Removed
>>>> reference to creating the locales directory since this is done
>>>> automatically
>>>> by i18nextract.
>>>>
>>>> Mvh Sebastian
>>>>
>>>> 16 dec 2009 kl. 10.29 skrev Vincent Fretin:
>>>>
>>>>> I rewrote some parts. The howto apparently was not clear enough.  
>>>>> Why
>>>>> the translation was in parts/app/locales, it's weird, the parts
>>>>> directory can be wiped out. and couldn't be in the released egg.
>>>>> Can you read again the howto and tell me if you understand it  
>>>>> now? I
>>>>> just tested the howto with a 'grokproject HelloWorld' 1.0, it  
>>>>> works
>>>>> perfectly.
>>>>>
>>>>> Vincent
>>>>>
>>>>> On Wed, Dec 16, 2009 at 10:21 AM, Sebastian Ware
>>>>> <sebastian at urbantalk.se>
>>>>> wrote:
>>>>>>
>>>>>> Wonderful! Now it looks so straight forward, any old caveman  
>>>>>> could do
>>>>>> it
>>>>>> :)
>>>>>>
>>>>>> Mvh Sebastian
>>>>>>
>>>>>> 16 dec 2009 kl. 09.47 skrev Vincent Fretin:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm the original author Souheil. :-)
>>>>>>> I've just removed all Plone specific part, some were out of  
>>>>>>> date. I
>>>>>>> will rewrite some i18n doc on plone.org instead.
>>>>>>> It should be less confusing.
>>>>>>>
>>>>>>> Vincent Fretin
>>>>>>> Ecreall
>>>>>>> Site : http://vincentfretin.ecreall.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Dec 15, 2009 at 5:44 PM, Sebastian Ware
>>>>>>> <sebastian at urbantalk.se>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> I think the original author used Grok with Plone. I jumped  
>>>>>>>> those
>>>>>>>> parts, but agree that they were confusing to me.
>>>>>>>>
>>>>>>>> Mvh Sebastian
>>>>>>>>
>>>>>>>> 15 dec 2009 kl. 17.23 skrev Souheil CHELFOUH:
>>>>>>>>
>>>>>>>>> Why all these Plone references ?
>>>>>>>>>
>>>>>>>>> 2009/12/15 Sebastian Ware <sebastian at urbantalk.se>:
>>>>>>>>>>
>>>>>>>>>> I have reviewed and marked
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  http://grok.zope.org/documentation/how-to/how-to-internationalize-your-application
>>>>>>>>>>
>>>>>>>>>> as approved since it worked for me. I have removed the  
>>>>>>>>>> version
>>>>>>>>>> pinning
>>>>>>>>>> in Plone. I doubt this will stop working anytime soon.
>>>>>>>>>>
>>>>>>>>>> Mvh Sebastian
>>>>>>>>>> _______________________________________________
>>>>>>>>>> grok-doc mailing list
>>>>>>>>>> grok-doc at zope.org
>>>>>>>>>> https://mail.zope.org/mailman/listinfo/grok-doc
>>>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> grok-doc mailing list
>>>>>>>> grok-doc at zope.org
>>>>>>>> https://mail.zope.org/mailman/listinfo/grok-doc
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>



More information about the grok-doc mailing list