Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Cassiano Tartari 4 posts 24 karma points
    Jan 18, 2012 @ 20:05
    Cassiano Tartari
    0

    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?

  • Eran 292 posts 436 karma points
    Jan 19, 2012 @ 00:12
    Eran
    0

    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)

  • Cassiano Tartari 4 posts 24 karma points
    Jan 19, 2012 @ 12:13
    Cassiano Tartari
    0

    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.

  • Eran 292 posts 436 karma points
    Jan 19, 2012 @ 14:52
    Eran
    0

    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. 

Please Sign in or register to post replies

Write your reply to:

Draft