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 template: <p><a href="/${request.locale_name}/${products}"><img src="products.jpg" alt="" /></a></p> That template should render the link depending on the user locale setting ("request.locale_name" is a variable where I save the locale name and "products" is a translation string), ie: For "en" locale --> <p><a href="/en/products"><img src="products.jpg" alt="" /></a></p> For "es" locale --> <p><a href="/es/productos"><img src="products.jpg" alt="" /></a></p> For "ca" locale --> <p><a href="/ca/productes"><img src="products.jpg" alt="" /></a></p> However, what I get is: NameError: products - Expression: "/${request.locale_name}/${products}" - Filename: ... ate/templates/products.pt - Location: (line 10: col 30) - Source: ... <p><a href="/${request.locale_name}/${products}"><img ... Reading the page "http://docs.pylonsproject.org/projects/pyramid/en/1.0-branch/narr/i18n.html#chameleon-template-support-for-translation-strings" I get he feeling that what I'm trying to achieve is possible. What do I'm doing wrong? Thanks in advance, -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.