Results 1 to 5 of 5

Thread: Translatable, switchable, multilingual application

  1. #1

    Thread Starter
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Translatable, switchable, multilingual application

    I want to distribute my application around the world and allow users to perform their own translations into their native language.

    I want the users to be able to use the (translated) application immediately without waiting for me to release a new version.

    My code is language switchable at run-time and picks up the strings for the selected culture from resource files (e.g. Form1.en.resx).

    As far as I can see the only way I can achieve this is to create .resx files named for every language in the world (but with English text in) and allow the user to edit them (maybe with a custom editor).

    Any ideas on a different approach or a good .resx translation editor?

    I've tried to keep this short, so I'm not sure I've described it fully enough. Please ask for more information if you think you can help.
    This world is not my home. I'm just passing through.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    So you finally found a way to change the culture items at runtime, even to refresh instantiaded components? Did you figure it out from the C# code you metioned in you other post?

    I'd really like to have a look at that code as I have a ML project running as well. If that is ok with you that is.

  3. #3

    Thread Starter
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Yes, I figured it out from the C# code.

    From what I'd heard about VB.NET I was hoping it would be easier to do a run-time switch. I suspect I'm not using the best approach, but that's what happens when you're learning a new language isn't it.

    I'm attaching the prototype code I'm working with. You change language from the Language item on the Tools menu. Don't choose German - I haven't fully implemented it yet.

    Please get back to me with any thoughts, ideas, criticisms.

    Tris.
    Attached Files Attached Files
    This world is not my home. I'm just passing through.

  4. #4
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Thanks alot!

    You're a hat full of flowers!

    You're quite right about learning a new language. I have a couple of times created some code that I've been proud of only to later find out that it could be done with 1/10 of the amount of code.

  5. #5
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    just use txt files..and make this: do a loop when the form begins and loop though all the controls of the form and replace it's captions to their names in the txt like this:

    txt file:

    textBox1=caption1
    commandButton1=button2

    then all u have to make is give the command button the same name of the left side of the string and it will assign to it what u put in the right side of it
    \m/\m/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width