Change UserStrings in code
-
huh? explain what you're trying to do please.
-
huh? explain what you're trying to do please.
Thanks for th reply. Firstly I created resourcestrings in Delphi for .Net to keep Strings seperate in the assembly that is available to change with a resource editor. These strings are saved in the .Net Metadata in the assembly under UserStrings. I need to change these values inside the app, not with a external resource editor. Delphi for .Net Code resourcestring StrPlay = 'Lets play' C# code const string StrPlay = 'Lets play' This whole thing is to change the whole app between different languages on the fly. Form changes work 100% on the fly. The problem is the strings that is hard coded in the source files that needs to change between different languages. Hope this explain it better. I can explain in futher detail. Any code examples in any language will help. Thanks for helping!
-
Thanks for th reply. Firstly I created resourcestrings in Delphi for .Net to keep Strings seperate in the assembly that is available to change with a resource editor. These strings are saved in the .Net Metadata in the assembly under UserStrings. I need to change these values inside the app, not with a external resource editor. Delphi for .Net Code resourcestring StrPlay = 'Lets play' C# code const string StrPlay = 'Lets play' This whole thing is to change the whole app between different languages on the fly. Form changes work 100% on the fly. The problem is the strings that is hard coded in the source files that needs to change between different languages. Hope this explain it better. I can explain in futher detail. Any code examples in any language will help. Thanks for helping!
1. you should never hard code strings in the source files if you want to be able to easily do localization and internationalization. 2. create a separate resourcestrings assembly file for each separate language, named appropriately (typically using the standard 2-letter designation for each language). the naming convention is usually something like: .en.dll for english .de.dll for german and so on where is some resonable name 3. unload the current resource string assembly and load the one for the desired language does this help?
-
1. you should never hard code strings in the source files if you want to be able to easily do localization and internationalization. 2. create a separate resourcestrings assembly file for each separate language, named appropriately (typically using the standard 2-letter designation for each language). the naming convention is usually something like: .en.dll for english .de.dll for german and so on where is some resonable name 3. unload the current resource string assembly and load the one for the desired language does this help?