translation of Product.validation

8 messages Options
Embed this post
Permalink
Harald Friessnegger-2

translation of Product.validation

Reply Threaded More More options
Print post
Permalink
hi there

i'm planning to make Products.validation translateable and add a german
translation for it (see "Re: validators not translated (eg isEmail)" on
this list)

according to hanno it's okay to use the i18n:domain plone for this.

how do i extract the new messages out of Products.validation into the right
pot file of Products.PloneTranslations? is there any helper script?

i already did lots of translations for products and packages, but don't have
experience in using PloneTranslations.

is https://svn.plone.org/svn/collective/PloneTranslations/trunk/ the right
version to work on, or should i create a branch?

in gerneral you need not be too
any pointers appreciated.

regards, fRiSi

--
Webmeisterei GmbH - Büro für Netzfragen
Tel: +43 5572 908877,  Fax: +43 5572 908877-66
Steinebach 18, A-6850 Dornbirn
http://www.webmeisterei.com


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Vincent Fretin

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
Hi Harald,

On Thu, Mar 19, 2009 at 12:14 AM, Harald Friessnegger
<[hidden email]> wrote:
> hi there
>
> i'm planning to make Products.validation translateable and add a german
> translation for it (see "Re: validators not translated (eg isEmail)" on
> this list)
>
> according to hanno it's okay to use the i18n:domain plone for this.
Ok.

> how do i extract the new messages out of Products.validation into the right
> pot file of Products.PloneTranslations? is there any helper script?
I added Product.validation in the list of eggs for the plone domain in
rebuild-pot.py
I commited the procedure I use to synchronise Plone translations here:
https://svn.plone.org/svn/collective/PloneTranslations/trunk/utils/README.txt
But send me a mail if you need to regenerate or synchronize po files.
It's my job. ;-)
If I don't answer in 2 days, it's possible I'm in vacation, in this
case feel free to follow the procedure.

> is https://svn.plone.org/svn/collective/PloneTranslations/trunk/ the right
> version to work on, or should i create a branch?
Right now, trunk is for Plone 3.2 and 3.3.
--
Vincent Fretin

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Harald Friessnegger-2

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
hi vincent


when i follow your instructions and run rebuild-pot.py plone i get an error
for jscalendar which stops the execution of the script

There was an error
processing /home/frisi/instances/plonenext3.3i18n/src/Products.CMFPlone/Products/CMFPlone/skins/plone_3rdParty/jscalendar/index.html
There was an error
processing /home/frisi/instances/plonenext3.3i18n/src/Products.CMFPlone/Products/CMFPlone/skins/plone_3rdParty/jscalendar/dayinfo.html


using i18ndude version3.0 via virtualenv


can you reproduce that? or do you a way to make rebuild-pot.py go around
that error?


regards, fRiSi




Vincent Fretin wrote:

> Hi Harald,
>
> On Thu, Mar 19, 2009 at 12:14 AM, Harald Friessnegger
> <[hidden email]> wrote:
>> hi there
>>
>> i'm planning to make Products.validation translateable and add a german
>> translation for it (see "Re: validators not translated (eg isEmail)" on
>> this list)
>>
>> according to hanno it's okay to use the i18n:domain plone for this.
> Ok.
>
>> how do i extract the new messages out of Products.validation into the
>> right pot file of Products.PloneTranslations? is there any helper script?
> I added Product.validation in the list of eggs for the plone domain in
> rebuild-pot.py
> I commited the procedure I use to synchronise Plone translations here:
>
https://svn.plone.org/svn/collective/PloneTranslations/trunk/utils/README.txt
> But send me a mail if you need to regenerate or synchronize po files.
> It's my job. ;-)
> If I don't answer in 2 days, it's possible I'm in vacation, in this
> case feel free to follow the procedure.
>
>> is https://svn.plone.org/svn/collective/PloneTranslations/trunk/ the
>> right version to work on, or should i create a branch?
> Right now, trunk is for Plone 3.2 and 3.3.

--
Webmeisterei GmbH - Büro für Netzfragen
Tel: +43 5572 908877,  Fax: +43 5572 908877-66
Steinebach 18, A-6850 Dornbirn
http://www.webmeisterei.com


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Harald Friessnegger-2

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
In reply to this post by Vincent Fretin
hi vincent

validators in Products.validation are now returning translated i18n-messages
instead of strings (1.6 branch, used in plonenext 3.3 by default).

when i run rebuild-pot.py plone there are a lot of unnecessary changes (~92)
in plone.pot

for example, the lines

  #. Default: "Add to favorites"
  #: CMFPlone/profiles/default/actions.xml
  #: CMFPlone/migrations/v3_0/profiles/beta1_beta2/actions.xml
  msgid "Add to favorites"
  msgstr ""

will become
 
  #. Default: "Add to favorites"
  #: CMFPlone/migrations/v3_0/profiles/beta1_beta2/actions.xml
  #: CMFPlone/profiles/default/actions.xml
  msgid "Add to favorites"
  msgstr ""


or

  #. Default: "There are currently no items in this folder."
  #: CMFPlone/skins/plone_content/folder_summary_view.pt:159
  msgid "description_no_items_in_folder"
  msgstr ""


will become

  #. Default: "There are currently no items in this folder."
  #: CMFPlone/skins/plone_content/folder_listing.pt:165
  msgid "description_no_items_in_folder"
  msgstr ""



do you check in a new version of plone.pot after extracting messageids, or
did you never have this problem?


any ideas why this could happen?


regards, fRiSi


 

Vincent Fretin wrote:

> Hi Harald,
>
> On Thu, Mar 19, 2009 at 12:14 AM, Harald Friessnegger
> <[hidden email]> wrote:
>> hi there
>>
>> i'm planning to make Products.validation translateable and add a german
>> translation for it (see "Re: validators not translated (eg isEmail)" on
>> this list)
>>
>> according to hanno it's okay to use the i18n:domain plone for this.
> Ok.
>
>> how do i extract the new messages out of Products.validation into the
>> right pot file of Products.PloneTranslations? is there any helper script?
> I added Product.validation in the list of eggs for the plone domain in
> rebuild-pot.py
> I commited the procedure I use to synchronise Plone translations here:
>
https://svn.plone.org/svn/collective/PloneTranslations/trunk/utils/README.txt
> But send me a mail if you need to regenerate or synchronize po files.
> It's my job. ;-)
> If I don't answer in 2 days, it's possible I'm in vacation, in this
> case feel free to follow the procedure.
>
>> is https://svn.plone.org/svn/collective/PloneTranslations/trunk/ the
>> right version to work on, or should i create a branch?
> Right now, trunk is for Plone 3.2 and 3.3.

--
Webmeisterei GmbH - Büro für Netzfragen
Tel: +43 5572 908877,  Fax: +43 5572 908877-66
Steinebach 18, A-6850 Dornbirn
http://www.webmeisterei.com


------------------------------------------------------------------------------
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Hanno Schlichting-3

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
Harald Friessnegger wrote:
> do you check in a new version of plone.pot after extracting messageids, or
> did you never have this problem?
>
> any ideas why this could happen?

The problem here is that all those messages occur in multiple templates
/ places. Only the first location for these is added to the message
entries, as multiple locations don't provide any more "context"
information to the translators.

I assume that the order in which all the files are searched is not
deterministically sorted or sorted based on something like "position in
a directory". That can differ from one platform to the next. Since so
far only one person ran the rebuilt code at a time, this hasn't shown yet.

I think the code responsible for this isn't even in i18ndude but
probably in the extractor in zope.tal... if someone wants to have a look ;)

Hanno


------------------------------------------------------------------------------
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Harald Friessnegger-2

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
hi there

thanks for your explanation hanno. whilst the reasons were clear for me, i
now know that there is nothing i can do about that.

@vincent: please svn up Products.validation and re-run your rebuild-pot.py
and sync.py for the plone domain.
checking in my versions would pollute the svn changelog too much.

regards, harald



Hanno Schlichting wrote:

> Harald Friessnegger wrote:
>> do you check in a new version of plone.pot after extracting messageids,
>> or did you never have this problem?
>>
>> any ideas why this could happen?
>
> The problem here is that all those messages occur in multiple templates
> / places. Only the first location for these is added to the message
> entries, as multiple locations don't provide any more "context"
> information to the translators.
>
> I assume that the order in which all the files are searched is not
> deterministically sorted or sorted based on something like "position in
> a directory". That can differ from one platform to the next. Since so
> far only one person ran the rebuilt code at a time, this hasn't shown yet.
>
> I think the code responsible for this isn't even in i18ndude but
> probably in the extractor in zope.tal... if someone wants to have a look
> ;)
>
> Hanno
>
>
> ------------------------------------------------------------------------------

--
Webmeisterei GmbH - Büro für Netzfragen
Tel: +43 5572 908877,  Fax: +43 5572 908877-66
Steinebach 18, A-6850 Dornbirn
http://www.webmeisterei.com


------------------------------------------------------------------------------
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Vincent Fretin

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
On Fri, Mar 27, 2009 at 11:34 AM, Harald Friessnegger
<[hidden email]> wrote:
> hi there
>
> thanks for your explanation hanno. whilst the reasons were clear for me, i
> now know that there is nothing i can do about that.
>
> @vincent: please svn up Products.validation and re-run your rebuild-pot.py
> and sync.py for the plone domain.
> checking in my versions would pollute the svn changelog too much.
ok, I'll do that.
I'm patching templates with DYNAMIC_CONTENT variable right now.
--
Vincent Fretin

------------------------------------------------------------------------------
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Vincent Fretin

Re: translation of Product.validation

Reply Threaded More More options
Print post
Permalink
Hi,

I synched plone and cmfeditions po files.
21 messages added from Products.validation
and fixes https://dev.plone.org/plone/ticket/9042 with DYNAMIC_CONTENT
variables.
Please remove any DYNAMIC_CONTENT of your translation.

Regards
--
Vincent Fretin

------------------------------------------------------------------------------
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n