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. C# Multilanguage resx

C# Multilanguage resx

Scheduled Pinned Locked Moved C#
csharpdesigntutorialquestion
3 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.
  • K Offline
    K Offline
    Kaare Tragethon
    wrote on last edited by
    #1

    Dear all. I'm a total newbie to programming (I have made som very trivial applications in C#). Right now I'm looking at multilangual programming for the Windows User Interface. Could anyone provide a really (and I mean really) simple code/application which shows how to implement multilangual controls? I have searched both Google and CodeProject, but most of the examples there are a bit too "difficult" for me to understand at this point, and most often the examples contain a lot more than just the language function. I know it has something to do with multiple resx files, but that's about it. Thanks in advance.

    L 1 Reply Last reply
    0
    • K Kaare Tragethon

      Dear all. I'm a total newbie to programming (I have made som very trivial applications in C#). Right now I'm looking at multilangual programming for the Windows User Interface. Could anyone provide a really (and I mean really) simple code/application which shows how to implement multilangual controls? I have searched both Google and CodeProject, but most of the examples there are a bit too "difficult" for me to understand at this point, and most often the examples contain a lot more than just the language function. I know it has something to do with multiple resx files, but that's about it. Thanks in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The easiest way is : 1. Create Resource.resx in Visual Studio and add some text in it, for example : MyText : World 2. Then create Resource.de.resx in Visual Studio and add some text in it, for example : MyText : Welt In your source code, you can call it using : MessageBox.Show(Resource.MyText); The content of Resource.MyText is depend on your CurrentCulture. If your CurrentCulture is English, then you get "World" If your CurrentCulture is German, then you get "Welt"

      K 1 Reply Last reply
      0
      • L Lost User

        The easiest way is : 1. Create Resource.resx in Visual Studio and add some text in it, for example : MyText : World 2. Then create Resource.de.resx in Visual Studio and add some text in it, for example : MyText : Welt In your source code, you can call it using : MessageBox.Show(Resource.MyText); The content of Resource.MyText is depend on your CurrentCulture. If your CurrentCulture is English, then you get "World" If your CurrentCulture is German, then you get "Welt"

        K Offline
        K Offline
        Kaare Tragethon
        wrote on last edited by
        #3

        Thank you very much!

        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