Hi, I was trying to translate to my country language the form creating a new item inside the Settings>Languages but after erase one of them the problem starts. I'm a beginner in Umbraco and after see the source code of the project I figured out that the function GetLanguageIdFromNodeId is returning just "0" and there isn't any language in the database with this id (dbo.umbracoLanguage). The xslt was returning the labels and all texts like this: "RV-ContactForm.labels.name" insted of "Name" or my translation.
did you define a host name for your site (go to content tree, right click on the root node and choose "manage hostnames" than map the English language to your domain)
Hi, It works! but I couldn't set the language for the root node, the "Content" folder. When I do the right click over the "Content" folder, the root node, the only options that are showed to me are: create | sort | republish entire site | reload nodes
However the right click over my specif page of the form return the option "manage hostnames" and setting a language over there it works!
It will be better if I could change the code to return the lowest id from the database of languages.
Languages bug
Hi, I was trying to translate to my country language the form creating a new item inside the Settings>Languages but after erase one of them the problem starts. I'm a beginner in Umbraco and after see the source code of the project I figured out that the function GetLanguageIdFromNodeId is returning just "0" and there isn't any language in the database with this id (dbo.umbracoLanguage). The xslt was returning the labels and all texts like this: "RV-ContactForm.labels.name" insted of "Name" or my translation.
I'm using umbraco 4.7.1
How can I fix this?
hi,
not sure if that will help, but try this:
did you define a host name for your site (go to content tree, right click on the root node and choose "manage hostnames" than map the English language to your domain)
Hi, It works! but I couldn't set the language for the root node, the "Content" folder. When I do the right click over the "Content" folder, the root node, the only options that are showed to me are: create | sort | republish entire site | reload nodes
However the right click over my specif page of the form return the option "manage hostnames" and setting a language over there it works!
It will be better if I could change the code to return the lowest id from the database of languages.
Hi,
first of all i'm glad its working and please mark my replay as an answer.
second, the reason that you can see this menu only when you are on the specific page, is that probably your pages is not under the home page.
the right structure is to create the home page as the root node of all the other nodes, and thanm you be able to "map" hostname to the homepage.
this way, you can create several homepages for each language, and define each one of them to be mapped to different language.
third, if you are using dictionary items (like my package is using) - you have to define hostname. its not a trick or work-around. its a must.
Thanks,
Eran.
is working on a reply...