Ploe 3.3 RC4: problems with history translation

8 messages Options
Embed this post
Permalink
Mirto Silvio Busico-2 () Ploe 3.3 RC4: problems with history translation
Reply Threaded More More options
Print post
Permalink
Hi all,

in a fresh plone site with these addon products installed:

    # FCKeditor 2.6.4
    # LinguaPlone 3.0a1
    # Working Copy Support (Iterate) 1.2.3

I have the problem that in the History I can see the author name only in
english.

As an example, in English I see:

History
    Publish by Miirto Silvio Busico on Aug 12, 2009 10:18 AM
    Send back by Miirto Silvio Busico on Aug 12, 2009 10:18 AM
    Publish by admin on Aug 07, 2009 04:51 PM

And in Italian I see:

Storia
    Pubblica fatta da ${author} il 12/08/2009 10:18
    Manda indietro fatta da ${author} il 12/08/2009 10:18
    Pubblica fatta da ${author} il 12/08/2009 10:17


It is a problem with my installation or it is a bug?
If it is a bug, there is any correction/workaround?

I'm using Plone 3.3RC4 unified installer on a 64 bit Kubuntu 9.04

Thanks
    Mirto



[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3 () Re: Ploe 3.3 RC4: problems with history translation
Reply Threaded More More options
Print post
Permalink
Mirto Silvio Busico, on 2009-08-12:

>
> Hi all,
>
> in a fresh plone site with these addon products installed:
>
>     # FCKeditor 2.6.4
>     # LinguaPlone 3.0a1
>     # Working Copy Support (Iterate) 1.2.3
>
> I have the problem that in the History I can see the author name only in
> english.
>
> As an example, in English I see:
>
> History
>     Publish by Miirto Silvio Busico on Aug 12, 2009 10:18 AM
>     Send back by Miirto Silvio Busico on Aug 12, 2009 10:18 AM
>     Publish by admin on Aug 07, 2009 04:51 PM
>
> And in Italian I see:
>
> Storia
>     Pubblica fatta da ${author} il 12/08/2009 10:18
>     Manda indietro fatta da ${author} il 12/08/2009 10:18
>     Pubblica fatta da ${author} il 12/08/2009 10:17
>
>
> It is a problem with my installation or it is a bug?
> If it is a bug, there is any correction/workaround?
>
> I'm using Plone 3.3RC4 unified installer on a 64 bit Kubuntu 9.04

Works fine with Dutch as language.

I see it is an error in the Italian translation.  I just fixed it:
http://dev.plone.org/collective/changeset/94537
So this would need a new plone.app.locales release.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () ERROR sill in Plone 3.3 (was Re: Re: Plone 3.3 RC4: problems with history translation)
Reply Threaded More More options
Print post
Permalink
Hi Maurits,
I've just installed the Plone 3.3.

Also in the default plone site, the error is still there (in history I
see "Pubblica fatta da ${author} il 20/08/2009 10:43 ")

How can I apply the http://dev.plone.org/collective/changeset/94537 to
the buldout generated by the unified installer?

Thanks
    Mirto



Maurits van Rees ha scritto:

> Mirto Silvio Busico, on 2009-08-12:
>  
>> Hi all,
>>
>> in a fresh plone site with these addon products installed:
>>
>>     # FCKeditor 2.6.4
>>     # LinguaPlone 3.0a1
>>     # Working Copy Support (Iterate) 1.2.3
>>
>> I have the problem that in the History I can see the author name only in
>> english.
>>
>> As an example, in English I see:
>>
>> History
>>     Publish by Miirto Silvio Busico on Aug 12, 2009 10:18 AM
>>     Send back by Miirto Silvio Busico on Aug 12, 2009 10:18 AM
>>     Publish by admin on Aug 07, 2009 04:51 PM
>>
>> And in Italian I see:
>>
>> Storia
>>     Pubblica fatta da ${author} il 12/08/2009 10:18
>>     Manda indietro fatta da ${author} il 12/08/2009 10:18
>>     Pubblica fatta da ${author} il 12/08/2009 10:17
>>
>>
>> It is a problem with my installation or it is a bug?
>> If it is a bug, there is any correction/workaround?
>>
>> I'm using Plone 3.3RC4 unified installer on a 64 bit Kubuntu 9.04
>>    
>
> Works fine with Dutch as language.
>
> I see it is an error in the Italian translation.  I just fixed it:
> http://dev.plone.org/collective/changeset/94537
> So this would need a new plone.app.locales release.
>
>  

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3 () Re: ERROR sill in Plone 3.3 (was Re: Re: Plone 3.3 RC4: problems with history translation)
Reply Threaded More More options
Print post
Permalink
Mirto Silvio Busico, on 2009-08-21:
>
> Hi Maurits,
> I've just installed the Plone 3.3.
>
> Also in the default plone site, the error is still there (in history I
> see "Pubblica fatta da ${author} il 20/08/2009 10:43 ")
>
> How can I apply the http://dev.plone.org/collective/changeset/94537 to
> the buldout generated by the unified installer?

Hm, the dirtiest but fastest method is this:

- Locate the plone.app.locales package that your buildout uses.

- Find the i18n/plone-it.po file contained in there.

- Make the change manually.

- Restart your zope instance.

(Note that the changeset points to PloneTranslations, but from Plone
3.2 onwards the relevant files of the PloneTranslations product are
copied to the plone.app.locales package.)

I hope that helps,

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () Re: Re: ERROR sill in Plone 3.3 (was Re: Re: Plone 3.3 RC4: problems with history translation)
Reply Threaded More More options
Print post
Permalink
Maurits van Rees ha scritto:

> Mirto Silvio Busico, on 2009-08-21:
>  
>> Hi Maurits,
>> I've just installed the Plone 3.3.
>>
>> Also in the default plone site, the error is still there (in history I
>> see "Pubblica fatta da ${author} il 20/08/2009 10:43 ")
>>
>> How can I apply the http://dev.plone.org/collective/changeset/94537 to
>> the buldout generated by the unified installer?
>>    
>
> Hm, the dirtiest but fastest method is this:
>
> - Locate the plone.app.locales package that your buildout uses.
>
> - Find the i18n/plone-it.po file contained in there.
>
> - Make the change manually.
>
> - Restart your zope instance.
>
> (Note that the changeset points to PloneTranslations, but from Plone
> 3.2 onwards the relevant files of the PloneTranslations product are
> copied to the plone.app.locales package.)
>
> I hope that helps,
>
>  
Ok thanks; I'll try it.

I suppose I have to redo the change everytime I run a buildout -n. Correct?

Thanks again
    Mirto




[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3 () Re: ERROR sill in Plone 3.3 (was Re: Re: Plone 3.3 RC4: problems with history translation)
Reply Threaded More More options
Print post
Permalink
Mirto Silvio Busico, on 2009-08-22:

>
> Maurits van Rees ha scritto:
>> Mirto Silvio Busico, on 2009-08-21:
>>  
>>> Hi Maurits,
>>> I've just installed the Plone 3.3.
>>>
>>> Also in the default plone site, the error is still there (in history I
>>> see "Pubblica fatta da ${author} il 20/08/2009 10:43 ")
>>>
>>> How can I apply the http://dev.plone.org/collective/changeset/94537 to
>>> the buldout generated by the unified installer?
>>>    
>>
>> Hm, the dirtiest but fastest method is this:
>>
>> - Locate the plone.app.locales package that your buildout uses.
>>
>> - Find the i18n/plone-it.po file contained in there.
>>
>> - Make the change manually.
>>
>> - Restart your zope instance.
>>
>> (Note that the changeset points to PloneTranslations, but from Plone
>> 3.2 onwards the relevant files of the PloneTranslations product are
>> copied to the plone.app.locales package.)
>>
>> I hope that helps,
>>
>>  
> Ok thanks; I'll try it.
>
> I suppose I have to redo the change everytime I run a buildout -n. Correct?

No, as this is a change that you make in the plone.app.locales
package.  The next time you run buildout -n buildout will see that you
already have the wanted version of plone.app.locales and continue.


If this works and you only need it on one computer, go for it.  But
actually, it is cleaner to use a recipe that I wrote a while ago.  Add
this to your buildout.cfg:

[i18noverrides]
recipe = collective.recipe.i18noverrides
source = ${buildout:directory}/translations
destinations = ${instance:location}

and add i18noverrides to the list of parts in buildout.cfg.
'instance' should be the name of the zope instance part of your
buildout.cfg.  I am not sure if the unified installer calls that
instance or zeoclient.  At least you should list any part that uses
plone.recipe.zope2instance.  So you might end up with this instead:

destinations =
    ${zeoclient1:location}
    ${zeoclient2:location}

Then create a directory 'translations' in your buildout directory.
Copy the plone-it.po file from plone.app.locales to that directory.
Make the change from the changeset.  Best is probably to remove
everything from the file except the headers and those lines containing
the relevant msgid and msgstr (plus comments).

Run bin/buildout, look for errors or warnings reported by the recipe,
start the instance and see if it has worked.

See http://pypi.python.org/pypi/collective.recipe.i18noverrides for
more details.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () [SOLVED] Re: Re: ERROR sill in Plone 3.3 (was Re: Re: Plone 3.3 RC4: problems with history translation)
Reply Threaded More More options
Print post
Permalink
Maurits van Rees ha scritto:

> Mirto Silvio Busico, on 2009-08-22:
>  
>> Maurits van Rees ha scritto:
>>    
>>> Mirto Silvio Busico, on 2009-08-21:
>>>  
>>>      
>>>> Hi Maurits,
>>>> I've just installed the Plone 3.3.
>>>>
>>>> Also in the default plone site, the error is still there (in history I
>>>> see "Pubblica fatta da ${author} il 20/08/2009 10:43 ")
>>>>
>>>> How can I apply the http://dev.plone.org/collective/changeset/94537 to
>>>> the buldout generated by the unified installer?
>>>>    
>>>>        
>>> Hm, the dirtiest but fastest method is this:
>>>
>>> - Locate the plone.app.locales package that your buildout uses.
>>>
>>> - Find the i18n/plone-it.po file contained in there.
>>>
>>> - Make the change manually.
>>>
>>> - Restart your zope instance.
>>>
>>> (Note that the changeset points to PloneTranslations, but from Plone
>>> 3.2 onwards the relevant files of the PloneTranslations product are
>>> copied to the plone.app.locales package.)
>>>
>>> I hope that helps,
>>>
>>>  
>>>      
>> Ok thanks; I'll try it.
>>
>> I suppose I have to redo the change everytime I run a buildout -n. Correct?
>>    
>
> No, as this is a change that you make in the plone.app.locales
> package.  The next time you run buildout -n buildout will see that you
> already have the wanted version of plone.app.locales and continue.
>
>
> If this works and you only need it on one computer, go for it.  But
> actually, it is cleaner to use a recipe that I wrote a while ago.  Add
> this to your buildout.cfg:
>
> [i18noverrides]
> recipe = collective.recipe.i18noverrides
> source = ${buildout:directory}/translations
> destinations = ${instance:location}
>
> and add i18noverrides to the list of parts in buildout.cfg.
> 'instance' should be the name of the zope instance part of your
> buildout.cfg.  I am not sure if the unified installer calls that
> instance or zeoclient.  At least you should list any part that uses
> plone.recipe.zope2instance.  So you might end up with this instead:
>
> destinations =
>     ${zeoclient1:location}
>     ${zeoclient2:location}
>
> Then create a directory 'translations' in your buildout directory.
> Copy the plone-it.po file from plone.app.locales to that directory.
> Make the change from the changeset.  Best is probably to remove
> everything from the file except the headers and those lines containing
> the relevant msgid and msgstr (plus comments).
>
> Run bin/buildout, look for errors or warnings reported by the recipe,
> start the instance and see if it has worked.
>
> See http://pypi.python.org/pypi/collective.recipe.i18noverrides for
> more details.
>
>  
Wanderful it worked!!!

Hoping this can be useful, I had to change every "author" instance in an
"actor" instance.

So the plone-it.po file in translations is:

________________________________________________________
# Translation of plone.pot to Italian
# Giancarlo & Lele Gaifas, 2002-2009
# override per correzioni
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2009-07-08 09:35+0000\n"
"PO-Revision-Date: 2009-05-06 00:54+0200\n"
"Last-Translator: Lele Gaifax <[hidden email]>\n"
"Language-Team: Plone i18n <[hidden email]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n!=1\n"
"Language-Code: it\n"
"Language-Name: Italiano\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: plone\n"
"X-Is-Fallback-For: it-ch it-it\n"

#. Default: "This item was locked by ${actor} ${time} ago."
#: plone.locking/plone/locking/browser/info.pt:17
msgid "description_webdav_locked_by_author_on_time"
msgstr "Questo elemento è stato bloccato da ${actor} ${time} fa."

#. Default: "${action} by ${actor} on ${time}"
#: plone.app.layout/plone/app/layout/viewlets/content_history.pt:46
msgid "history_action"
msgstr "${action} fatta da ${actor} il ${time}"

#. Default: "by ${actor}"
#: CMFPlone/skins/plone_content/folder_listing.pt:124
msgid "label_by_author"
msgstr "creato da ${actor}"

#. Default: "by ${actor}, ${date}"
#: CMFPlone/skins/plone_templates/default_error_message.pt:87
msgid "results_by_author"
msgstr "di ${actor} del ${date}"

________________________________________________________


Thanks a lot
    Mirto




[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3 () Re: [SOLVED] Re: Re: ERROR sill in Plone 3.3 (was Re: Re: Plone 3.3 RC4: problems with history translation)
Reply Threaded More More options
Print post
Permalink
Mirto Silvio Busico, on 2009-08-22:

> Maurits van Rees ha scritto:
>> See http://pypi.python.org/pypi/collective.recipe.i18noverrides for
>> more details.
>>
>>  
> Wanderful it worked!!!
>
> Hoping this can be useful, I had to change every "author" instance in an
> "actor" instance.
>
> So the plone-it.po file in translations is:
>
> ________________________________________________________
> # Translation of plone.pot to Italian
> # Giancarlo & Lele Gaifas, 2002-2009
> # override per correzioni
> msgid ""
> msgstr ""
> "Project-Id-Version: Plone\n"
> "POT-Creation-Date: 2009-07-08 09:35+0000\n"
> "PO-Revision-Date: 2009-05-06 00:54+0200\n"
> "Last-Translator: Lele Gaifax <[hidden email]>\n"
> "Language-Team: Plone i18n <[hidden email]>\n"
> "MIME-Version: 1.0\n"
> "Content-Type: text/plain; charset=utf-8\n"
> "Content-Transfer-Encoding: 8bit\n"
> "Plural-Forms: nplurals=2; plural=n!=1\n"
> "Language-Code: it\n"
> "Language-Name: Italiano\n"
> "Preferred-Encodings: utf-8 latin1\n"
> "Domain: plone\n"
> "X-Is-Fallback-For: it-ch it-it\n"
>
> #. Default: "This item was locked by ${actor} ${time} ago."
> #: plone.locking/plone/locking/browser/info.pt:17
> msgid "description_webdav_locked_by_author_on_time"
> msgstr "Questo elemento è stato bloccato da ${actor} ${time} fa."
>
> #. Default: "${action} by ${actor} on ${time}"
> #: plone.app.layout/plone/app/layout/viewlets/content_history.pt:46
> msgid "history_action"
> msgstr "${action} fatta da ${actor} il ${time}"
>
> #. Default: "by ${actor}"
> #: CMFPlone/skins/plone_content/folder_listing.pt:124
> msgid "label_by_author"
> msgstr "creato da ${actor}"
>
> #. Default: "by ${actor}, ${date}"
> #: CMFPlone/skins/plone_templates/default_error_message.pt:87
> msgid "results_by_author"
> msgstr "di ${actor} del ${date}"

I looked at plone-it.po in plone.app.locales trunk but found no errors
related to these msgids; the text (actor or author) in Default matched
the text in the msgstr.  So trunk looks fine now.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers