Try to see this http://uhangout.co.uk/video/fC-Xhj1HnnU epsiode of uHangout, where the creator of the package is explains how the package works, and to configure it.
I have made a very simple language switcher, just for testing.
Damn editor
Here is an image of the code:
This is from the master:
@{
Layout = null;
var root = Model.Content.AncestorOrSelf(2).Children;
var domains = Domain.GetDomains();
var arrDomains = domains as Domain[] ?? domains.ToArray();}
Not cure if you got any answer for this yet, but for anyone who need this just been building my own logic for it so;
1) dropdown list with all languages using umbraco.cms.businesslogic.language.Language.GetAllAsList()
2) set a cookie with the language when this changes
3) get the language from the cookie and get the value from the vorto call with the extra overlaod of the language e.g. Model.Content.GetVortoValue("yourVortoAlias", "cookieLanguage")
just got this last step in my own custom class so that i cna set any defaults if that language has got no values.
Change language
Hi
Thanks for a great project, Vorto, it looks great..
Unbraco version 7.2
One question.. I can not see how to change the language.
I need to have a dropdown list to change the language.
I have been searching for som documentation for this.
Site structure:
Main page
Hostnames set on the main page
UK
DE
US
Is there any who have a hint on how this is managed. Or maybe i´m missing something :-)
/René
Hi René,
Try to see this http://uhangout.co.uk/video/fC-Xhj1HnnU epsiode of uHangout, where the creator of the package is explains how the package works, and to configure it.
Hope this helps,
/Dennis
HI
I have made a very simple language switcher, just for testing.
Damn editor Here is an image of the code:
This is from the master:
@Navigation@
@Language switch@
@RenderBody()
The result:
Not cure if you got any answer for this yet, but for anyone who need this just been building my own logic for it so;
1) dropdown list with all languages using umbraco.cms.businesslogic.language.Language.GetAllAsList()
2) set a cookie with the language when this changes
3) get the language from the cookie and get the value from the vorto call with the extra overlaod of the language e.g. Model.Content.GetVortoValue("yourVortoAlias", "cookieLanguage")
just got this last step in my own custom class so that i cna set any defaults if that language has got no values.
Is there a complete example of this somewhere? I can't seem to figure out how to build a simple language picker for Vorto...
Thanks,
Amir
In case anyone is looking:
HI If anyone can use this.
is working on a reply...