On Sat, 19 Apr 2008, Ricky Zhou wrote: > I'd like to add zh_CN (and a few other languages) to the fedorahosted > site (they're currently listed on the site, but does not work without > these apache conf changes). > > Index: languages.conf > =================================================================== > RCS file: /cvs/puppet/configs/web/fedorahosted.org/languages.conf,v > retrieving revision 1.4 > diff -u -r1.4 languages.conf > --- languages.conf 9 Mar 2008 20:40:18 -0000 1.4 > +++ languages.conf 19 Apr 2008 16:58:31 -0000 > @@ -4,22 +4,29 @@ > AddLanguage de .de > AddLanguage el .el > AddLanguage en .en > +AddLanguage es .es > +AddLanguage hu .hu > +AddLanguage id .id > AddLanguage it .it > AddLanguage pl .pl > +AddLanguage ru .ru > +AddLanguage sr .sr > AddLanguage pt-br .pt_BR > +AddLanguage zh-cn .zh_CN > > LanguagePriority en > ForceLanguagePriority Prefer Fallback > > RewriteEngine on > -RewriteCond %{QUERY_STRING} ^lang=(bal|de|el|en|it|pl|pt_BR)$ > -RewriteRule ^/web(?:/(?:bal|de|el|en|it|pl|pt_BR))?(/.*)$ /web/%1$1? > [R=301] > -AliasMatch ^/web(?:/(?:bal|de|el|en|it|pl|pt_BR))(/.*)?$ > /srv/web/fedorahosted.org$1 > +RewriteCond %{QUERY_STRING} > ^lang=(bal|de|el|en|es|hu|id|it|pl|ru|sr|pt_BR|zh_CN)$ > +RewriteRule > ^/web(?:/(?:bal|de|el|en|es|hu|id|it|pl|ru|sr|pt_BR|zh_CN))?(/.*)$ > /web/%1$1? [R=301] > +AliasMatch > ^/web(?:/(?:bal|de|el|en|es|hu|id|it|pl|ru|sr|pt_BR|zh_CN))(/.*)?$ > /srv/web/fedorahosted.org$1 > > <Directory /srv/web/fedorahosted.org/> > Options MultiViews > > - SetEnvIf Request_URI ^/web/(bal|de|el|en|it|pl)/ prefer-language=$1 > + SetEnvIf Request_URI ^/web/(bal|de|el|en|es|hu|id|it|pl|ru|sr)/ > prefer-language=$1 > SetEnvIf Request_URI ^/web/pt_BR/ prefer-language=pt-br > + SetEnvIf Request_URI ^/web/zh_CN/ prefer-language=zh-cn > </Directory> > +1 to this. -Mike _______________________________________________ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list