multilanguagh 1:1 site with subdir lang choose method? Options
psiho
Posted: Monday, October 06, 2008 10:47:56 PM
Rank: Newbie

Joined: 9/21/2008
Posts: 22
I'm forced to post this in here as "Misc" topic is not working ok...


Here is a great tutorial how to build 1:1 multilanguage site: http://www.umbraco.org/documentation/books/multilingual-11-sites

... but I need it a bit different. In this tutorial language is being changed by QueryString parameter like;
www.example.com/somepage.aspx?lang=en

What I would like is to have language selection by subdirs like:
www.example.com/en/somepage.aspx

Anybody did this? The reason I choose 1:1 method is that I'm building accommodatio catalog website and each accommodation unit is described by 95% numeric data and only 5% language specific data. It would be a huge work to retype all this for every langugage.

The reason I would like subdir to choose language is SEO.
psiho
Posted: Tuesday, October 07, 2008 11:15:04 PM
Rank: Newbie

Joined: 9/21/2008
Posts: 22
Wierd forum behaviour as I cannot see this reply in this thread but I found it using search for "1:1" !?

Quote:
Hi psiho,

Add another url rewrite rule that redirects the www.example.com/en/somepage.aspx to www.example.com/somepage.aspx?lang=en, meaning you don't have to change anything to the existing setup.

Hope that helps.

Regards,
/Dirk


Anyway, thx Dirk. I discovered UrlRewrite config yesterday after posting. But I cannot find any documentation of it. I have experaince with linux mod-rewrite but not with this one.

I played with it and managed to redirect myweb.com/EN/something.aspx to myweb.com/something.aspx?lang=EN
All this works, but all links on my site now are completely "unaware" of this. I can fix navigation to build ok, but what about internal links inserted from rich text editors into content? I don't think I can tell my clients to type links manually instead of choosing the page from the browser.
Dirk
Posted: Tuesday, October 07, 2008 11:22:51 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi psiho,

You're right, and I realised that after posting... Are you getting it... I deleted the reply... just for that! Nevermind.

Documentation for url rewriting can be found on the website

How about a custom 'not found handler' that checks the url and redirects if required. Or a custom Http handler. Just thinking out loud here.

Greetz,
/Dirk



level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
psiho
Posted: Tuesday, October 07, 2008 11:45:00 PM
Rank: Newbie

Joined: 9/21/2008
Posts: 22
custom "not found handler" seems like one more redirect and "wrong" links on the site which is not so good for SEO I belive.

Hmmm, I'm beginning to worry that this first case study of mine is not going to work with Umbraco :( And it is really not an option for me to go to multiple language trees as I would need to retype huge amounts of repetitive numeric data for 5-10 languages!

But I'm sure this flexible and good product DOES have solution for multilanguage sites - I mean those with repetitive non-language data like accommodation catalogues, product catalogues, photo galleries, etc.

Can this huge non-text/numeric/photo data (like accommodation unit in my case study) be stored in separate (but single) branch and then somehow be accessed through separated lang branches... like this:
--
|--EN
|
|--DE
|
|--DATA

I'm a noob in Umbraco, please help this case study to work.
Dirk
Posted: Wednesday, October 08, 2008 6:27:35 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi psiho,

Other option: It is possible to copy a complete node tree to another. Just right-click the node and select 'Copy' from the submenu. Enter the destination and the tree should get copied.

Hope that helps.

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
Adz
Posted: Wednesday, October 08, 2008 10:13:11 AM

Rank: Aficionado

Joined: 6/5/2008
Posts: 148
Location: United Kingdom
psiho wrote:


Can this huge non-text/numeric/photo data (like accommodation unit in my case study) be stored in separate (but single) branch and then somehow be accessed through separated lang branches... like this:
--
|--EN
|
|--DE
|
|--DATA



Hi,

I've been doing a lot of work on a multi-lingual site and I spent some time investigating these options as well!

The structure you have suggested above is similar to what I have come up with. So put language-neutral information in your "data" section, and refer to it using XSLT (or in Umbraco v4 you can use <umbraco:Item NodeId="xxx" field="fff" runat="server" /> if you prefer).

As Dirk said, once you have set up one language you can use "Copy" to create another.

You will be able to re-use Templates and make use of the Umbraco Dictionary as well.

For images/photo galleries, you can use the "Media" Section of umbraco to store these in one place.
If you need to add fields to these, (e.g. one field per language for an "alt" description) you can edit these. Go to the Settings tab, select the media folder, select the Image node, and edit it in the same way as you would a document type.

You may want to consider a root website node, for example;

Code:

  --- MyWebsite
   |         |
   |         |
   |         |------- EN
   |         |
   |         |------- DE
   |         
  --- DATA


You can still use elements of the 1:1 language pattern: The accommodation data you place in the 'DATA' section could still have one tab per language.

Adam Perry (blog, twitter), developing Umbraco based websites and applications for ConnectDigital.
psiho
Posted: Thursday, October 09, 2008 11:35:42 AM
Rank: Newbie

Joined: 9/21/2008
Posts: 22
Dirk wrote:
Other option: It is possible to copy a complete node tree to another.


Thx, Dirk! Haven't tried this. Small thing but huge help! Still not ideal, but much better.
psiho
Posted: Thursday, October 09, 2008 11:42:32 AM
Rank: Newbie

Joined: 9/21/2008
Posts: 22
Thx Adz. I'm glad somebody is thinking the same way as I do :)

But I'm curius... how do you link nodes from "mywebsite" part to "data" site?

I guess you create node for each item (accommodation unit) in "mywebsite" and put language-dependant fields there. Then you create it also in "data" and put all language-independant fields there. Then you put some kind of "node picker" in "mywebsite" part that links the two nodes and is usable in templates to merge all those fields?

This seems the only way to keep URLs correct. Downside is that each item needs to be edited on two different places but it is not too bad.

But now when I'm thinking of it... if the above method works for you... why "data" couldn't be stored inside "default" langugage!? So all fields are in EN tree, and DE tree contains only language-dependant fields... we find a way to connect those and that is it?

Something like this

Code:
EN (default lang, all fields including data)
|
|- EN node 1
|- EN node 2
|- EN node 3
|- ...
|
|-DE (only lang-specific data)
   |
   |- DE node 1
   |- DE node 1
   |- DE node 1
   |- ...



samirvarteji
Posted: Wednesday, November 12, 2008 10:40:39 AM

Rank: Newbie

Joined: 10/27/2008
Posts: 2
Location: India
Hi,

I am new to Umbraco. I want to prepare one web site with Multi Country and with in each country there is multi language.

I have prepared tree structure for each country and user will redirected to home page based on selected country.

Now my problem is how to implement multi lingual functionality with in each country Brick wall .


Can any one help me please..

I will be very thank full to him...
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.