Re: [pylons-discuss] Localized URL schema using chameleon

2014-08-21 Thread Wichert Akkerman
On 21 Aug 2014, at 01:29, Kamal Gill designbyka...@gmail.com wrote: Oscar, It's probably safer to pass the translated string as a template variable from the view callable, since Pyramid's i18n machinery only picks up translation strings marked via i18n:translate and i18n:attributes in

[pylons-discuss] Localized URL schema using chameleon

2014-08-20 Thread Oscar Curero
Hi, I'm building my first application using pyramid and chameleon and I'm having problems with the localized URL schema. It's something like this: /en/products /es/productos /ca/productes The problem starts when I need to make the HTML templates. For example, I want to make the following

Re: [pylons-discuss] Localized URL schema using chameleon

2014-08-20 Thread Wichert Akkerman
On 20 Aug 2014, at 19:21, Oscar Curero flext...@gmail.com wrote: Hi, I'm building my first application using pyramid and chameleon and I'm having problems with the localized URL schema. It's something like this: /en/products /es/productos /ca/productes The problem starts when I

Re: [pylons-discuss] Localized URL schema using chameleon

2014-08-20 Thread Oscar Curero
On Wednesday, August 20, 2014 7:28:28 PM UTC+2, Wichert Akkerman wrote: On 20 Aug 2014, at 19:21, Oscar Curero flex...@gmail.com javascript: wrote: Hi, I'm building my first application using pyramid and chameleon and I'm having problems with the localized URL schema. It's

Re: [pylons-discuss] Localized URL schema using chameleon

2014-08-20 Thread Kamal Gill
Oscar, It's probably safer to pass the translated string as a template variable from the view callable, since Pyramid's i18n machinery only picks up translation strings marked via i18n:translate and i18n:attributes in .pt files IIRC. Basically, you would pass products as a string marked for