Re: Override culture/language based on user's profile?

  •  04-20-2009, 8:43 AM

    Re: Override culture/language based on user's profile?

    Hi wolbrink,
     
    Try this way:
     
    1. Open file 'Channel.aspx'(\CuteSoft_Client\CuteChat\Channel.aspx)
     
    2. Find section
    override protected void OnInit(EventArgs args)

     base.OnInit(args);
    }
     
    3. Add the code below into the section above
     
       CommunityServer.Components.User user = CommunityServer.Users.GetUser();
        uteChat.ChatApi.SetConfig("CustomCulture", user.Profile.Language);
       CuteChat.ChatApi.SetConfig("CultureType", "Client");
     
    like:
     
    override protected void OnInit(EventArgs args)
       CommunityServer.Components.User user = CommunityServer.Users.GetUser();
        uteChat.ChatApi.SetConfig("CustomCulture", user.Profile.Language);
       CuteChat.ChatApi.SetConfig("CultureType", "Client");
     base.OnInit(args);
    }
     
     
    Regards,
     
    Ken
View Complete Thread