Hi,

I'm having a little trouble getting this to work. I want to re utilize
the FE validator messages in a i18n context. Which isn't exactly i18n
it's just that my application is currently in a non-english language,
and given it's scope it's probably going to stay there.

First of all I'm not sure if I did the right thing setting the lang.
Acording to #1 I had to set lang = "es" in my development.ini under
app:main, this gave no effect to the FE messages. I keep digging [2]
and I found out that a call in __before__ or __call__ to set_lang
should fix this and I try that too but didn't succeed.

Them I found that ticket #296 had a way to make it work but I applied
the patch (it cleanly applied to 0.9.6.1, except the test.) but I'm
still getting the english message.

I should note that I'm using toscawidgets @validate but I have double
check that it's doing the right thing because it just passes the state
over to FE so it shouldn't be an issue.

Last but not least I do agree with Alberto that neither of the
solutions (duplication of the FE message or #296) is the best one.
Maybe there should be some cascating of catalogs instead of
translators.

but right now what I really want is to find out why this isn't working.

[1] 
http://wiki.pylonshq.com/display/pylonsdocs/Internationalization+and+Localization
[2] 
http://groups.google.com/group/toscawidgets-discuss/browse_thread/thread/dca25cbeae704652
[3] http://pylonshq.com/project/pylonshq/ticket/296

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to