Browse Source

Updated according to new policy

master
Artyom Beilis 13 years ago
parent
commit
cc7eaaa9ca
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      examples/localization/config.js
  2. +1
    -1
      examples/localization/hello.cpp

+ 1
- 2
examples/localization/config.js View File

@@ -7,11 +7,10 @@
"script" : "/hello"
},
"localization" : {
"encoding" : "utf-8",
"messages" : {
"paths" : [ "./locale" ],
"domains" : [ "hello" ]
},
"locales" : [ "he_IL", "en_US" ]
"locales" : [ "he_IL.UTF-8", "en_US.UTF-8" ]
}
}

+ 1
- 1
examples/localization/hello.cpp View File

@@ -20,7 +20,7 @@ public:
}
void say_hello(std::string lang)
{
context().locale(lang);
context().locale(lang + ".UTF-8");
content::message c;
c.message=cppcms::locale::translate("Hello World");
render("message",c);


Loading…
Cancel
Save