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();
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft