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. is there a way to check if the current input language uses latin letters?

is there a way to check if the current input language uses latin letters?

Scheduled Pinned Locked Moved C#
question
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.
  • X Offline
    X Offline
    xkx32
    wrote on last edited by
    #1

    hi can you please tell me if there's a way to check the current InputLanguage if it's considered a latin language? thank you

    E L 2 Replies Last reply
    0
    • X xkx32

      hi can you please tell me if there's a way to check the current InputLanguage if it's considered a latin language? thank you

      E Offline
      E Offline
      engsrini
      wrote on last edited by
      #2

      use System.Globalization; namesapce and check if(CultureInfo.CurrentCulture.DisplayName=="Latin") //Note Check the exact name of Language it would not be "Latin" in your system to get currently istalled cultures name use CultureInfo.InstalledUICulture.DisplayName -- modified at 2:18 Tuesday 25th July, 2006

      1 Reply Last reply
      0
      • X xkx32

        hi can you please tell me if there's a way to check the current InputLanguage if it's considered a latin language? thank you

        L Offline
        L Offline
        lmoelleb
        wrote on last edited by
        #3

        I do not think there is a direct way. You can go though the CultureInfo's TextInfo property and get the code page (ANSI, OEM or whatever you like) and try to base it on this. It would probably narrow it down to a few codepages you should "include", but to be honest I am afraid you might as well create a manual list and check the major language name. It should not take toooo long. :)

        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