Thanks a lot, Lucie for reading and answering to my posts. for this one, I don't think know it's matter so much I could experiment a little bit more. Ogone will fallback on English if it doesn't speak the preferred language and as far I can see it speaks more languages than I thought furthermore even if the test is not working, the transactions were done in the languages that I expected
I would rather prefer work to be done somewhere else :) I don't know ... the accpeted.pt and cancelled.pt as empty as they are don't serve as example or more documentation on PostProcess I wish I can help... On Fri, Apr 17, 2009 at 5:28 PM, Lucie Lejard <[email protected]> wrote: > > I would try to contact the people that implemented/updated the > getpaid.ogone egg. For example, jefroche worked on it a bit. > > Lucie > -- > S i x F e e t U p , I n c . | http://www.sixfeetup.com > Phone: +1 (317) 861-5948 x605 > ANNOUNCING the first Plone Immersive Training Experience | Sept. 10-11-12, > 2009 > http://www.sixfeetup.com/immerse > > > > On Fri, Apr 17, 2009 at 4:58 AM, danielle davout > <[email protected]> wrote: >> >> With Ogone the language of transaction is defined by : >> >> languages = IUserPreferredLanguages(self.context.REQUEST) >> langs = languages.getPreferredLanguages() >> if langs: >> language = langs[0] >> else: >> plone_props = getToolByName(self.context, 'portal_properties') >> language = plone_props.site_properties.default_language >> language = language.split('-') >> if len(language) == 1: >> language.append(language[0]) >> language = language[:2] >> return "_".join(language) >> So, if I understand well, getpaid.ogone tries to compute the >> transaction language >> from the user preferences and the site ones. >> if the user has set some preferences in his browser, the language >> will be set to his most preferred language. >> If langs is empty, the language is set to the default language of the site. >> But in both cases, it could be that the language is not one of the >> language that Ogone speaks (French, Spanish and English). >> >> I was wondering if the choice should not be left to the user himself, >> on the make-payment form, he would be asked to choose between the >> options allowed by the processor. >> >> Is IGetPaidManagementCheckoutOptions the right place ? >> >> Isn't it a problem encountered with the other processors that should >> be care of in PloneGetPaid itself ? >> >> (by the way the test fails on getLanguage) >> >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---
