Copied to clipboard

Flag this post as spam?

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


  • jamal 4 posts 71 karma points
    Mar 27, 2016 @ 21:40
    jamal
    0

    How to change language and Direction?

    how to stop cookie in this?


    @functions{
    public string PageDirection(IPublishedContent page)
    {
        var lang = page.GetCulture().TwoLetterISOLanguageName.ToLower();
    
        if (lang == "ar")
        {
    
            return "rtl";
        }
    
        return "ltr";
    }
    
    public string GetLangauge(IPublishedContent page)
    {
        return page.GetCulture().TwoLetterISOLanguageName.ToLower();
    }
    
  • 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.

Please Sign in or register to post replies