Localizing

16 views
Skip to first unread message

Pete D

unread,
Oct 4, 2012, 10:16:01 AM10/4/12
to we...@googlegroups.com
I read this http://webpy.org/cookbook/runtime-language-switch. and I was able to implement it. Now I have a lot of html I have to edit, I want one function
to serve all html files but I am not sure how to do it.


I want something like 

urls = { '/faq',           static_page,
           /'aboutus,    static_page,
           '/contactus, static_page,
          }

where 

def static_page just figures out which language to use and renders the page. 
Any guidance would be helpful


Reply all
Reply to author
Forward
0 new messages