Undefined

talk talk about Umbraco, .NET

My way of building Umbraco sites in different languages

,

It's a very flexible way to do multi-languages in Umbraco but it's not a 1-on-1 relation. So i could have pages that exist for example in the English version of my site, but not in the French version. This said, let's start.

First, let's create some more languages! Go to the settings section of your Umbraco installation. Right click on "Languages" and hit "create", add the languages you would like to use in your multi-language site. I added "French (Belgium)" and "Dutch (Belgium)" on top of the "English (United States)".

Second, go to the Content section and create nodes in the root of your site. I created 3, 1 for my Dutch site "NL", 1 for the French names "FR" and 1 for the English one "EN".

Next, right click a node and hit "manage hostnames" (it can be a fake one...) f.e. i added dummy.be and choose "Dutch (Belgium)" for my "NL" node. Now do the same for the other ones... smile

!! If you are doing like me and adding the nodes in the root of your site and adding fake hostnames you should disable "hidetoplevelnodefrompath" in the web.config, just saying wink

Now off you go, in the templates attached to your document types you can now use dictionary items to add content that is not likely to change often, all other content you can just grab off of the current document.

What'll not work out of the box with this approach is f.e. when you're on the Dutch version of a page and want to change languages but stay on the same page. You can however make a nice solution for this with the relationship API, more info here smile

Updating xslt macro content on postback .net usercontrol

Comments

Unregistered user Wednesday, July 14, 2010 3:37:39 AM

Daniel Bardi writes: That's exactly how I did my last multi lingual site. I needed to get the node "relationships" working fast. So I bypassed the relationship API and did a quick work-around (note: only works when sites have the same pages in the same order) not the best solution, but it's only temporary until I get to work on a package project that should resolve everything. Here's the link the work-around: http://our.umbraco.org/forum/developers/api-questions/10603-How-to-relate-pages-in-a-multi-language-site?p=0#comment38753

Unregistered user Friday, August 6, 2010 6:33:54 PM

Анонімний writes: Different people in all countries receive the personal loans in different creditors, just because that's easy.

Unregistered user Sunday, August 8, 2010 8:00:26 PM

Аноним writes: If you are willing to buy a house, you will have to get the mortgage loans . Furthermore, my brother all the time uses a consolidation loan, which supposes to be the most firm.

Unregistered user Saturday, August 28, 2010 1:47:01 AM

Анонімний writes: This is cool that we can take the business loans moreover, that opens new possibilities.

Unregistered user Saturday, September 25, 2010 10:41:23 PM

Анонімний writes: Have no a lot of cash to buy a house? You not have to worry, just because this is achievable to get the mortgage loans to solve all the problems. Thence get a small business loan to buy all you need.

Unregistered user Thursday, October 13, 2011 11:31:05 AM

Anonymous writes: It's amazing, watching the time and effort you put into your blog and detailed information that you provide. I'll check your blog and visit every week to your new message. shears

Write a comment

New comments have been disabled for this post.