Re: [Cppcms-users] Question about file path of hello.po in example
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2011-12-07 15:22:06
|
you should add different folders for different languages and regions. F.e. en_US en_AU ..... Of course you can use the same tranlation for different languages. Read http://www.gnu.org/s/gettext/ for further infos. Am 07.12.2011 16:10, schrieb ??: > 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... > <mailto: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... <mailto:csf...@gm...>> > *To:* cpp...@li... > <mailto: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... > <mailto: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... > <mailto: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 |