a long time ago (don't remember how long) I used this code to solve the issue.
Added html head webart to master page with this code:
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (this.StopProcessing)
{
// Do nothing
}
else
{
string css1 = "<link type=\"text/css\" rel=\"stylesheet\" href=\"/CMSPages/GetCSS.aspx?stylesheetname=mysiteHeb\"/>";
string css2 = "<link type=\"text/css\" rel=\"stylesheet\" href=\"/CMSPages/GetCSS.aspx?stylesheetname=mysite\"/>";
if (CMS.CMSHelper.CMSContext.CurrentPageInfo.DocumentCulture.ToString() == "he-IL")
{
this.Page.Header.Controls.Add(new LiteralControl(css1));
}
else if (CMS.CMSHelper.CMSContext.CurrentPageInfo.DocumentCulture.ToString() == "en-US")
{
this.Page.Header.Controls.Add(new LiteralControl(css2));
}
else
{
this.Page.Header.Controls.Add(new LiteralControl("ERROR"));
}
}
}
Is there any better way to do this?
my 5.5 has it built-in?