[Plone-NGOs] linguaplone help

sisi sisi at foei.org
Thu Mar 22 17:12:45 UTC 2007


Hi all,

We are close to migrating our public site from a flat html site to 
plone, we have a deadline of the 4th of April and we've hit a brick wall 
with our conversion scripts for linguaplone (mapping the english content 
to the existing spanish and french content and vice versa so that the 
content plays nice with linguaplone).

Is there anyone out there who can help with the correct usage of and 
interactions between the following routines:

    addTranslationReference()
    removeTranslationReference()
    getTranslations()

The code fragments on http://dev.plone.org/plone/changeset/10329 don't 
seem to work correctly. The addTranslationReference() function seems to 
operate in the other direction.

Specific questions would be:

1. Does addTranslationReference() add a symetric link, or do we need to 
add links in both directions?
(Sometimes we've tried a single link and it seems to work both ways, 
other times not)

2. Do we need to use removeTranslationReference() before we can have 
another 'hack' at the catalog, or can we just keep resetting the 
translations (We're asking this as re-running the same script 
progressively produces more errors.)

3. Do we have to use getTranslations() to refresh some sort of cache 
before applying new settings ( as seems apparent at 
http://dev.plone.org/plone/changeset/10329 ), or is it just for reading 
translation settings?

4. How do we get error information back from these routines?

5. Is there any documentaion beyond what is in the linguaplone product 
package?

I know this should probably go to the plone users list and I'll send it 
there if that is more appropriate but I just wanted to ask here first 
because I know more people on this list, which makes me braver :-)

Many thanks to anyone who replies :)

sisi

-- 
# sisi nutt # extranet coordinator
# Friends of the Earth International
# PO Box 19199 # 1000 GD Amsterdam # The Netherlands
# Tel 31 20 6221369  # Fax 31 20 6392181  # http://www.foei.org
# email sisi at foei.org # skype foei_sisi




More information about the NGO mailing list