Ye Ol' π Shack
Empowering makers everywhere!
This website works better with JavaScript.
Repositories
Help
Sign In
Ye_Ol_Pi_Shack
/
CppCMS
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1
Wiki
Activity
Browse Source
Updated according to new policy
master
Artyom Beilis
13 years ago
parent
9c5c080c7e
commit
cc7eaaa9ca
2 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
examples/localization/config.js
+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);
Write
Preview
Loading…
Cancel
Save