Results 1 to 3 of 3

Thread: string localization

  1. #1

    Thread Starter
    Addicted Member Lectere's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    222

    Post string localization

    LS,

    I've successfully made my GUI totally localizable. If you select an other language, all the controls totally adapt. That goes file.

    I only need to know where I can store my messagebox string etc.

    Code:
    msgbox(CType(resources.GetObject("Str1"), System.String))
    I've tried;
    -In the solution explorer, display all files, then in the form1.fr.resx for example, add the strings you need. But since these resx files are automaticly created, all manual additions, disappear.

    -With my resources, add a file from template; 'string.resx' But it's not picking up the changes.

    Thanks in advance!

  2. #2
    Member
    Join Date
    Mar 2011
    Posts
    55

    Re: string localization

    I used an INI file for my app, all strings are pulled from the INI. I'm sure there are more efficient ways, though.

    I read the INI value into a variable, then call the message box with that variable as the message.

  3. #3
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: string localization

    Solution Explorer > My Project > Resources > Strings > Start Typing

Tags for this Thread

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