|
|||
|
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Using string as key to localize with C#
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
||||||||||||||||
| Using string as key to localize with C# - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
ambua Member
|
Hello, We have some custom files, which we would like to translate with sisulizer. We have a text file for example: Hello yes We would like to translate it in Sisulizer from English to german: Hello -> Hallo yes -> ja Then we would like to program something like the following: MessageBox.Show(Sisulizer.Translate("Hello")); and expect that when we have set german the show message box would show up "Hallo" (German text). This means the string ("Hello") is the key value for the ressource. Is there a way to do this with Sisulizer and .NET? We would like to do this because we want to build a GUI dynamically at runtime.
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
Hi, Why don't you put these strings into text resources and then access them like this: label1.Text = Original.Properties.Resources.SampleText; ? If you have installed Sisulizer look into your documents folder\Sisulizer 2010 (if you run Vista or newer, else look into the program folder) and open the NET folder. There is a PDF. Search for "Hard Coded Strings" in it to see the above code in context of a sample. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| Current time is 08:26 am | |
| .NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Using string as key to localize with C# | |
Sisulizer software localization tool - Three simple steps to localize