Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

i18n support #4

Open
amleczko opened this issue Jun 20, 2012 · 3 comments
Open

i18n support #4

amleczko opened this issue Jun 20, 2012 · 3 comments

Comments

@amleczko
Copy link
Contributor

I have noticed that standard chamelon i18n support is not working while using pyramid_skins.

<html>
  <body i18n:domain="mydomin">
    <p i18n:translate="">My title</p>
  </body>
</html>

The above example works fine (message is translated) when rendered directly by pyramid.
It doesn't work when I use renderer='skin'.

@malthe
Copy link
Member

malthe commented Jun 20, 2012

Must be that the translation language isn't properly determined. I wonder if the tests pass.

@tomster
Copy link
Member

tomster commented Apr 3, 2013

I have the same issue. using pyramid_skins 1.0 with pyramid 1.4

i have attached the currently active locale as a custom predicate to the request, so i can output it for debugging purposes inside a skin template, and it is correctly set (i.e. de instead of the default en) yet all content is displayed in english.

can you think of anything else i could try?

@malthe
Copy link
Member

malthe commented Apr 4, 2013

Pyramid passes at least a custom translate function to Chameleon, and possibly also target_language. If pyramid_skins does not do the same, then it's a bug I'd say, but I need to take a closer look.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants