Re: [Cppcms-users] Question about file path of hello.po in example
Brought to you by:
artyom-beilis
From: 陈抒 <csf...@gm...> - 2011-12-07 15:10:35
|
I changed one line code: dispatcher().assign("^/(en_US|zh_CN)/?$",&hello::say_hello,this,1); and changed config.js like so: "locales" : [ "zh_CN.UTF-8", "en_US.UTF-8" ] Yes,it works now. If I want to support three languages,should I create he and zh folders? 陈抒 Best regards http://blog.csdn.net/sheismylife On Wed, Dec 7, 2011 at 10:55 PM, Artyom Beilis <art...@ya...> wrote: > Because this specific example handles multiple locales in the same process > and has following lines: > > dispatcher().assign("^/(en_US|he_IL)/?$",&hello::say_hello,this,1); > dispatcher().assign("^(.*)$",&hello::redirect,this); > > :-) > > You need to set Chinese locale to use the translation under "/zh/" folder. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.sf.net/ > CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ > > ------------------------------ > *From:* 陈抒 <csf...@gm...> > *To:* cpp...@li... > *Sent:* Wednesday, December 7, 2011 4:28 PM > *Subject:* [Cppcms-users] Question about file path of hello.po in example > > Hello, > I tried localization example tonight,it works. > But I don't know why translator can find the hello.po file in > /local/he/LC_MESSAGES folder. But after I rename the folder he to zh and > modify the Makefile,I can't see אני רוצה לומר in web page. > > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point > of > discussion for anyone considering optimizing the pricing and packaging > model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point > of > discussion for anyone considering optimizing the pricing and packaging > model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |