As I have mentioned in my previous post I am new to umbraco. Recieved a project made with umbraco and I try to understand how it works and why is not working :D
My issue now is that when I change language content will not change on a page except for dictionary item in english.
That is the node that I mean. Right click on Hotelopro RO or Hotelopro EN in the tree and select Manage hostnames in the menu. There you can change it.
How to set up Language?
As I have mentioned in my previous post I am new to umbraco. Recieved a project made with umbraco and I try to understand how it works and why is not working :D
My issue now is that when I change language content will not change on a page except for dictionary item in english.
This is where the language changes:
<div id="language_select">
<div id="current_language">
<table>
<tr>
<td class="td_img"> <img src="../css/images/flags/gb.png" /> </td>
<td> English</td>
</tr>
</table>
</div>
<div id="available_languages">
<form id="ro_lang" onclick='change_lang("ro_lang")' action="/hotelopro-ro.aspx" method="get">
<table>
<tr>
<td class="td_img"> <img src="../css/images/flags/ro.png" /> </td>
<td> Romanian</td>
</tr>
</table>
</form>
</div>
I defined a new dictionary item called SignInText for both languages English and Romanian.
and in a controler i used to take language like this(after i referenced umbraco library):
protected void Page_Load(object sender, EventArgs e)
{
hypSignIn.Text = umbraco.library.GetDictionaryItem("SignInText");
hypSignIn.NavigateUrl = "htps://" + HoteloProGenerals.WebAppRootNoScheme + "Login.aspx";
}
On the page content is shown when english is selcted correctly but when in in Romanian it shows still in English.
What do I have to check if everythink is set correct or how can I get current language selected, just to know...?
You can set a language on a node. Go to the top node of the language and add a hostname (/en or something). You can choose a language there.
Jeroen
Is this what you mean?
That is the node that I mean. Right click on Hotelopro RO or Hotelopro EN in the tree and select Manage hostnames in the menu. There you can change it.
Jeroen
This is weird for me. I don't want the domain to change when I change language.
Hmm perhaps it's already used somewhere else. You can also try something like hotelpro.com/en (as long as it isn't used yet) and set the language.
Jeroen
Ok, thanks. It seams that now it is taking the language just as it has to ;)
If you have time please take time to see my other issue in previous post, Regards
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.