http://www.google.com/support/webmasters/bin/answer.py?answer=66355 ?
No, it can't.
> Can I serve 2 languages on same url?
Yes.
Regards,
Saša Stamenković
On Mon, May 24, 2010 at 10:46 AM, Danny Fröberg <
danny.froberg@foreststar.net> wrote:
> Can this help?
>
>
> http://blog.hackix.com/2010/01/bootstrapping-zend_translate-with-a-langselector-plugin/
>
>
>
>
>
> *Från:* sina miandashti [mailto:miandashti@gmail.com]
> *Skickat:* den 19 maj 2010 14:12
> *Till:* dbenjamin
> *Kopia:* fw-mvc@lists.zend.com
> *Ämne:* Re: [fw-mvc] Re: Language in URL: always a particular case !
>
>
>
> any solution for this pl z...
>
> On Wed, May 19, 2010 at 4:34 PM, dbenjamin <bd.webdev@gmail.com> wrote:
>
> Hello,
>
>
>
> Thank you all for your help, but i think it's definitly not possible with
> Zend to have correct routes with language. I'm really stuck with that :(
>
>
>
> The Zend Cast tutorial has exactly the same issue, because it works only
> with default module, try to follow the tutorial, create a module "admin" for
> example, and then go to the : /en/admin/ or /en/admin/index, it will throw :
> "0: Invalid controller specified (admin)".
>
>
>
> I just can't see any solution here.
>
>
>
>
>
> br,
>
> Benjamin.
>
>
>
>
>
> 2010/5/3 Damián Farina [via Zend Framework Community] <[hidden email]<http://user/SendEmail.jtp?type=node&node=2222707&i=0>
> >
>
> dbenjamin (2010-04-27):
>
>
> > Hi,
> >
> > The same subject again and again. Adding the locale into URL to simulate
> a
> > "one folder per language" structure with MVC.
> >
> > Just like the official Zend website does, but how exactly ? :)
> >
> > It's really complicated to add this behaviour with Zend routes and by
> > browsing forums i never found a viable solution.
> >
> > The solution that comes up most often is :
> > - redefine default routes
> > - a plugin to get lang param and initialize Zend_Locale/Zend_Translate
> >
> > But that's not enough !
> >
> > We need to handle the following cases :
> > - the lang param is not valid
> > - the lang param is missing (ex. http://www.my-website.com/contact has
> to
> > be redirected to http://www.my-website.com/defaultlang/contact)
> >
> > Let's assume an user enter the following url :
> > http://www.my-website.com/dsqdsq, we have to return a 404 error page,
> > handled by the ErrorHandler plugin.
> >
> > But that's not possible, in our plugin we will get "dsqdsq" as the lang
> > param value and throwing manually a 404 error from within a plugin is not
>
> > handled by the ErrorHandler.
> >
> > Plus, we will maybe have to redirect automatically the user to :
> > "http://www.my-website.com/en-gb/dsqdsq", but "dsqdsq" is a module ? a
> > controller ? an action ? Who knows and how to redirect to a good url.
> >
> > In other words, if the first param is not a valid lang, we have to add
> the
> > default language to the url and shift all the parts of the url
> > (complicated).
> >
> > I'm wasting a loooot of precious time with that stuff ! :)
> >
> > Is there a solution that works for all cases ? Maybe with apache rewrite
> > rules ?
> >
> >
> > Thanks. (and sorry if my english is sometimes hard :p)
> >
> > Cdt,
> > Benjamin.
>
>
>
> Hi Benjamin, this (1) screen cast helped me a lot when dealing with
> languages.
> Hope it helps the way it did for me.
>
> (1) http://www.zendcasts.com/introducing-zend_translate/2009/11/
>
>
> Slds!
>
>
> --
> Damián Farina
> XoomCode
>
> ------------------------------
>
> View message @
> http://zend-framework-community.634137.n4.nabble.com/Language-in-URL-always-a-particular-case-tp2067501p2124425.html
> To unsubscribe from Language in URL: always a particular case !, click
> here.
>
>
>
>
>
>
> ------------------------------
>
> View this message in context: Re: Language in URL: always a particular
> case !<http://zend-framework-community.634137.n4.nabble.com/Language-in-URL-always-a-particular-case-tp2067501p2222707.html>
>
>
> Sent from the Zend MVC mailing list archive<http://zend-framework-community.634137.n4.nabble.com/Zend-MVC-f663775.html>at Nabble.com.
>
>
>
>
> --
> ________________
> Sincerely
> Sina Miandashti
> MuSicBasE.ir & InvisionPower.ir Admin
>
没有评论:
发表评论