|
-
Apr 22nd, 2011, 04:55 AM
#1
Thread Starter
Addicted Member
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!
-
Apr 24th, 2011, 08:32 PM
#2
Member
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.
-
Apr 25th, 2011, 10:08 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|