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. General Programming
  3. C#
  4. Change system locale

Change system locale

Scheduled Pinned Locked Moved C#
csharpjsonquestion
3 Posts 3 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.
  • M Offline
    M Offline
    Mahesh Varma
    wrote on last edited by
    #1

    Hi all, Is there any API to change the system locale ? I need to write a C# application which takes LCID as input, and based on the LCID it should change the system locale. Thanks Mahesh

    H E 2 Replies Last reply
    0
    • M Mahesh Varma

      Hi all, Is there any API to change the system locale ? I need to write a C# application which takes LCID as input, and based on the LCID it should change the system locale. Thanks Mahesh

      H Offline
      H Offline
      hooray
      wrote on last edited by
      #2

      how about putting this into the main CultureInfo ci = new CultureInfo("De-de"); Application.CurrentCulture = ci; the constructor of the cultureinfo accepts both - a string for the region or the code as int

      1 Reply Last reply
      0
      • M Mahesh Varma

        Hi all, Is there any API to change the system locale ? I need to write a C# application which takes LCID as input, and based on the LCID it should change the system locale. Thanks Mahesh

        E Offline
        E Offline
        elizas
        wrote on last edited by
        #3

        SharePoint provides options to create sites with different types of locales available out of the box. Suppose we have a SharePoint site built using the English locale and we want to change the existing site to some other locale then this can be achieved using the following piece of code. Changing the locale of the site helps display the date and number formats with their respective decimal and group separators. http://www.mindfiresolutions.com/Changing-SharePoint-site-locale-programmatically-834.php[^]

        Cheers, Eliza

        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