FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Multilingual sites

Feed 59 posts, 15 voices

Avatar
486 posts

This is a nice feature, but it seems to me that it would be more appropriate as a plugin.

 
Avatar
541 posts

ok here is the idea I have

someone send me his experimental version of frog with a drop down menu on the page list with all available lang for the website (can be set in the administration setting page)

now my idea (don’t know yet how to implement it but …)

use the 2 chars lang code (en,fr,it,es,…) at the end of the url (only if there is url conflict)

/en
/fr
/

(conflict found, add /lang_code)

/services/en
/services/fr

(without conflict)

/a_propos_de_nous
/about_us

what you think ?

 
Avatar
541 posts

Ok for those that are interested !!

I have a working copy that works now :) but I have change some little thing to make it more search engine optimized

here is the new idea:

  • you can work on infinite alternative language, but your site will always have one default language, the one that you will choose when you install Frog CMS
  • all hierarchical tree will be choose by a simple drop-down on your pages admin.
  • all home page need to have is own slug (default will be set with the code or name (need to be determine) of the language)
  • all sub page of this new alternative language will act like a subpage of the site ( this mean the slug of the alternative home page will not be include in the url of his child, but the child will know by `$this->parent()` that he is a child of this parent )
 
Avatar
27 posts

Why this strange approach “use the 2 chars lang code (en,fr,it,es,…) at the end of the url (only if there is url conflict)” ?

I believe that the classic hierarchy:

/
/services
/fr
/fr/services

it’s a better schema.

 
Avatar
541 posts

well this is for a SEO approach, because you loose on all your page the best place to put some rich keyword about your content !!!

this is why I have turn my head on every side to get this idea working :)

 
Avatar
8 posts

Hoe can i try your branche version? This is just what i need for our latest project.

Started using frog since a week or so. Really like FrogCMS, it’s clear, nice code, easy to use, and very flexibel. You can expect some plugins from my side!

 
Avatar
27 posts

sorry, but i doesn’t think to understand. What do you meen for “loose on all your page the best place to put some rich keyword about your content” ?

For my personal experience, multi language site organized with languages “subdirectories” works fine, and google seems to like it, personally i also add lang attribute on meta tags.

besides the approach /, /fr is imho a “natural flowing hierarchy” that what’s google like ;)

just my 2 cents.

 
Avatar
27 posts

@Luuk

You can try the brech of philippe in svn.

madebyfrogs.googlecode.com/svn/branches/phil

 
Avatar
8 posts

thx did find the google code project, didn’t know how to connect to the branche-version…

 
Avatar
27 posts

@Luuk

Look at the checkout page , you must to substitute trunk whit branches/phil.

 
Avatar
541 posts

And I just update the SQL schemas so now you are suposed to have all what it need to try it !!

well a natural flow will be to simulate static page and directory (imho) exemple:

index.html (/)
accueil.html (french)
contact_us.html
contactez_nous.html
blog/
    first_post.html
    second_post.html
blogue/
    premier_post.html
    deuxieme_post.html
...

I think this is more clean and language is transparent I prefer this way

what you think ?

 
Avatar
8 posts

What will happen if you have the same name in two languages? for example; contact. it’s the same in dutch and english.
Is this correct. if I have set my default language to dutch the name will be:

/contact.html

and in english:

/en/contact.html

is this correct?

 
Avatar
541 posts

well I will add a conflict detector !!

so you will need to set the other one to a other name

in french it is contact too but you can say contact_us for english and contactez_nous for french

… well I know the way I try to do it is not the easiest way but with my SEO experience I’m quit sure this will be the way that will benefit the most :)

[edit] sorry I didn’t answer !! no it is not correct !! cause this is exactly what i try to remove this little language code in url ;)

 
Avatar
27 posts

@Philippe

I understand your idea, but i think that removing the language part from the url, make the url probably a bit better, but it doesn’t so different for search engine, while it could create “problems” for editor… (es, i don’t want to call a page “contact_us” instead of “contact” because i’ve other languages).
Besides in languages different from english, time to time people use english word, because their language doesn’t have a “beautiful”/used translation.

In the example below:

index.html (/)
accueil.html (french)

if think that it’s not so natural, for example i would like to see your french version and i don’t find the link in th site… i can’t write:

/fr/

to see the home page, because i must to know how you call your index page.

I believe that your approach give too consideration to the search engine, loosing user and editor usability.

At the end this is what i prefer (suppose english as default language):

index.html (/)
contact_us.html
blog/
    first_post.html
    second_post.html
/fr/
    accueil.html (french)
    contactez_nous.html
    blogue/
        premier_post.html
        deuxieme_post.html
...

let me know what you think.

 
Avatar
8 posts

There’s a bit to say for both options…In my opinion, a good multilanguage website also has a good number of url’s, for example;

- www.apple.com – www.apple.nl – www.apple.fr

etc. I think, when changing language it will redirect to the correct url, which means you can always have the same name in differente languages. The only problem then is multilanguags countries, such as canada belgium etc. In that case you should add a language tag the URL in my opinion….

 
Avatar
651 posts

actually, the method beres mentioned (adding /fr/ in front) is why we added the drag-to-copy feature.. all we need is some php that detects the browser’s preferred language and redirects the user when necessary.

 
Avatar
541 posts

I’m currently in a big talk about all possible design / concept about multilang website !!

all solution have there goods !! and if I choose one I need to stay with it !!

if I decide to go with the beres solution , then we don’t need a dropdown to manage language and multiple home page.

I’m really curious about this idea !!! need to think more about it I think

by the way @martijn the copy paste fonction you add work very good :) nice job !!

 
Avatar
1493 posts

… the copy paste fonction you add work very good :) nice job !!

Well, Martijn did add it (technically speaking), and he does do nice work! But I think the copy/paste function was tuupola’s contribution — in the true spirit of opensource software! :)

 
Avatar
27 posts

@philippe

While you take time to make the right decision…
consider also to keep the language selector, so people with a lot of pages can manage/view only the desired language tree. I thinks the choices could be Default(show all), English, French, etc …

 
Avatar
541 posts

David you have right !!! this was a tuupola code :D

than thanks tuupola ;)

@beres this is a good idea !! take note of that too :) thanks

 
Avatar
6 posts

Bonjour à tous !

i’ve done a quick workaround with a php session variable and jquery using page parts. It was too easy and i m not sure of its robustness. It simply detects if a “fr” page part exist and test the session variable. It seems to work for me. Can you tell me if there are flaws with this technic ?

the mediatic website (need some little improvements)

 
Avatar
1493 posts

@arnomad – wow! slick. :) Which Frog version is this?

 
Avatar
6 posts

@David

Thanks, it’s the 0.9.4 stable version. I’m playing now with 0.9.5 rc1 for several new projects. The front-end login feature is a good idea.

 
Avatar
541 posts

well why I didn’t use this technic it’s because you can not give a different url for “français” !!

it will always open in english and then you have to change it in “français”

really nice website by the way :) Félicitation

 
Avatar
6 posts

Thank you Philippe, this is the first time that i work with a cms with “pleasure” (and i tried a lot of cms). Félicitations à toi.

I see your point. I dont like cookies too. And SEO is primordial. But it can be a problem to have 2 differents url for the same page too. Hard choice.