gloablization

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satyabhaskar
    New Member
    • Dec 2008
    • 32

    gloablization

    hi all,
    Im creating a web page in which i want put a option for the user to select the language he want to display the strings on the control..... I got the solution for a single page (localization) but i want the same option for all the pages in my project....i want to globalize.... how can i do it can any one plz solve my problem...

    thanks
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Part of the solution you will find by setting up globalization through your web config. The rest you will find by searching MSDN.

    Comment

    • satyabhaskar
      New Member
      • Dec 2008
      • 32

      #3
      hi boss thanks for ur reply and... can i plz get the url of msdn where i get by problem solved

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        How can I find a very popular site called MSDN? Hmmm, hey haven't they got search engines to help find websites. The question is how do you find a search engine if you don't know any search engines....

        Comment

        • rvarshney
          New Member
          • Feb 2009
          • 10

          #5
          What I understand from your problem is, "You want to display UI to change Globalisation settings on any page of your website."

          If such is the case, you can create a user-control and put it on every page. This is simple but stupid solution and should be ok if you have lesser no. of pages.
          Another solution is to employ Base controller pattern where you can generate the correspoding UI before rendering your page.

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Have you looked into using .resx files to hold the resources required for each language/culture that you'd like your software to support?

            It is easy to create and use these resources ASP.NET applications.

            If you are looking to use the same resources in multiple pages or user controls, consider using global resources as well as local ones. You would create a .resx file to be used as a global resource, create a class that accesses and retrieves the resources from this file (that implements a Singleton pattern), initialize that class in your Global.asax Application_Sta rt event, and consume it where ever you need to access a resource stored in your global resx file. The ResourceManager class is used to retrieve and store resources in a resx file.

            Comment

            • satyabhaskar
              New Member
              • Dec 2008
              • 32

              #7
              hey thanks boss i got solved my solution.... i did the same what u told.... thanks boss

              Comment

              Working...