English And Arabic RRS feed

  • Question

  • User1239365568 posted

    Hello All,

    I want to Clubesite would change to arabic when user click arabic link.

    how can i do this.please help me and what is the best possible way to create  multilingual website.


    thanking you in advance.

    take care 

    Saturday, April 11, 2009 11:02 AM

All replies

  • User-1540984348 posted

     Hello Rizwan Ansari,

    look if you want to change languange of the page you are in by clicking on a button to change Interface language , you hould 

    1- set the UICulture in your page <%@ Page UICulture="en" Culture="en-US" %>

    2- then in page load of this page you check on the current language then change it

    1     protected void Page_Load(object sender, EventArgs e)
    2 {
    4 // Current Cluture
    5 Response.Write(Thread.CurrentThread.CurrentCulture);
    6 Response.Write("&lt;br/>");
    7 if (Page.UICulture.Contains("English"))
    8 {
    10 // Change Current Cluture
    11 Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-eg", false);
    12 Response.Write(Thread.CurrentThread.CurrentCulture);
    13 }
    14 }

     and here is a link from MSDN




    Saturday, April 11, 2009 12:53 PM
  • User1239365568 posted

     Thanking you for reply.


    if suppose i am using usercontrol and want to change the text according to click event of button like English/Arabic.

    and also i want to change the text coming from database accordingly.can you please help me for this.


    thanking you.

    Sunday, April 12, 2009 6:41 AM
  • User-319574463 posted

     Look at http://www.guysmithferrier.com/ and in particular at Guy Smith's book ISBN 0321341384. The book is available online at Safari books at http://safari.oreilly.com/0321341384

    Also his presentation http://www.guysmithferrier.com/downloads/teni18n.pdf

     Have a look at the video "Create a Multi-Lingual Site with Localization?" at http://www.asp.net/learn/videos/video-40.aspx

    This shows you how to set up localisation.

      >change the text according to click event of button like English/Arabic

    Normally sites switch from language to language by picking up the language of the user's browser, however at http://forums.asp.net/t/1230134.aspx is an example of the user changing language by selection on the form.

    Sunday, April 12, 2009 11:34 AM