Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Localization problem

Localization problem

Scheduled Pinned Locked Moved ASP.NET
comhostinghelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vik20
    wrote on last edited by
    #1

    I have a site which has a domain .eu. All the currency are showing like "230,00 Sk" Instead of "$27.00" In my other hosting which is .com the site is working properly. What do I have to do to show all the currency in dollar format instead of "sk" I am in a hurry. Vikram

    G 1 Reply Last reply
    0
    • V vik20

      I have a site which has a domain .eu. All the currency are showing like "230,00 Sk" Instead of "$27.00" In my other hosting which is .com the site is working properly. What do I have to do to show all the currency in dollar format instead of "sk" I am in a hurry. Vikram

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      It has nothing to do with the domain name. You are relying on the default culture setting of the server, which you have noticed is not very good. Ideally you should specify a CultureInfo or NumberFormatInfo whenever you convert the values to strings. A quick fix until you have had time to go over your code would be to set the CurrentCulture for each thread in global.asax. --- b { font-weight: normal; }

      V 1 Reply Last reply
      0
      • G Guffa

        It has nothing to do with the domain name. You are relying on the default culture setting of the server, which you have noticed is not very good. Ideally you should specify a CultureInfo or NumberFormatInfo whenever you convert the values to strings. A quick fix until you have had time to go over your code would be to set the CurrentCulture for each thread in global.asax. --- b { font-weight: normal; }

        V Offline
        V Offline
        vik20
        wrote on last edited by
        #3

        :)THanks for the help What I did was change the uiCulture culture attribute in the globalization tag in web.config and things worked fine for me. :doh:But I would like to know how do i specify a CultureInfo or NumberFormatInfo whenever you convert the values to strings. Do I use a common function which would be doing the job and pass all the conversion through this function Thanks Vikram Lakhotia

        G 1 Reply Last reply
        0
        • V vik20

          :)THanks for the help What I did was change the uiCulture culture attribute in the globalization tag in web.config and things worked fine for me. :doh:But I would like to know how do i specify a CultureInfo or NumberFormatInfo whenever you convert the values to strings. Do I use a common function which would be doing the job and pass all the conversion through this function Thanks Vikram Lakhotia

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          vik20 wrote:

          But I would like to know how do i specify a CultureInfo or NumberFormatInfo whenever you convert the values to strings. Do I use a common function which would be doing the job and pass all the conversion through this function

          You pass the CultureInfo or NumberFormatInfo to the ToString method. --- b { font-weight: normal; }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups