Permalink
Browse files

[fix] I18n: use string for I18.language, missing change

  • Loading branch information...
1 parent 2536662 commit 724fd3ebfcb413e30991c9b14f6196683f7e2832 @OpaOnWindowsNow OpaOnWindowsNow committed Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 stdlib/core/web/resource/resource_private.opa
@@ -899,7 +899,7 @@ export_resource(external_css_files: list(string),
"This page is exported from a context that doesn't have a valid client thread context. Replacing by random value {result}")
result
page_lang = ServerI18n.page_lang() // TODO by customizer
- page_info = "var page_server = {num_page};var page_lang = \{{page_lang}:\{}};"
+ page_info = "var page_server = {num_page};var page_lang = \"{page_lang}\";"
js_base_url = Option.switch(base -> "var base_url = \"{base}\";", "", base_url)
global_variable = {content_unsafe="<script type=\"text/javascript\">{page_info} {js_base_url}</script>"} : xhtml

0 comments on commit 724fd3e

Please sign in to comment.