Jump to content

Demo Site Pw 20 - with Multilingual


drilonb
 Share

Recommended Posts

Here i like to share with you site demo made with PW 2.0 in 2 language without tree sort, everything is made with fields, search works fine when you are in English language search will searching only English terms , and same for other language!

i try to translate every word in site, maybe i forget any :D

http://www.sherbimeonline.com/

Thanks to Ryan and Adamkiss,,

Link to comment
Share on other sites

Very cool, it looks like the 2 languages work beautifully in this example. This is the first time I've seen such a solution in place, nice work. I also like that the language-switching links stay on the current page, so that hopefully Google will index the whole thing in both languages (using the url segments).

My only concern would be about whether this might confuse Google (or other search engines)–I suppose that would only confuse Google if GoogleBot maintained session cookies… and I don't know if it does.  But if it does, you might be better off requiring a form POST before setting the session cookie to change the language, setting the cookie with Javascript, or forcing the language URL segment to always be on the URL for one of the languages. The last solution mentioned there would be the best but also be a little harder to implement. If you are interested, I can describe how to do it. But if potential confusion to the search engines is not a concern, then you don't need to worry about any of these as the site appears to function beautifully for the user.

Link to comment
Share on other sites

Thanks Ryan , for website i am making google or other search engine is not a problem but if you have a solution for this yes you can describe maybe this will help for others and me too to work more with search engine,

Thanks for feedback and your help,

Link to comment
Share on other sites

  • 1 month later...

I'm not sure how you would do this, but the other way would be to have the URL be yoursite.com/language/page-name which is something you see on other websites.

I guess in that case you could just have the languages as pages under the site root, then have fields so that when you create a page in a specific language you can pick the corresponding page from the other language sections.

You could then even run a custom module on page save so that it updates those pages in other languages to make sure they also associate with the page you're editing as well.

That would then be a pretty easy way to check if there is a page for a given language as well, and also gives you the option of having language-specific page URLs, titles and content.

Just another suggestion for a way of doing it, though this suggestion would require some additional coding in order to work. I do like the way that with only a few minutes thought about it I know that what I've just written is both possible in PW and also technically not very difficult to do :)

Link to comment
Share on other sites

I'm not sure how you would do this, but the other way would be to have the URL be yoursite.com/language/page-name which is something you see on other websites.

I guess in that case you could just have the languages as pages under the site root, then have fields so that when you create a page in a specific language you can pick the corresponding page from the other language sections.

You could then even run a custom module on page save so that it updates those pages in other languages to make sure they also associate with the page you're editing as well.

*snip*

Don't know if you've seen this: http://codeordie.posterous.com/multi-lingual-sites-with-the-processwire-cms I think this is a pretty good way of approaching multi-lang in the front-end.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...