|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| Does Sisulizer support .NET enums? - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
zoot Member
|
One simple question, does Sisulizer support .NET enums? I'm using C#.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
What do you mean? Do you mean if Sisulizer can localize a value in .resx that has been typed as enum? Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
zoot Member
|
Yes, i have a custom control with an enum property on. I'm wondering if this enum-property can be localized, if so how. My control looks like:
Inside of Sisulizer i would like to choose either KMPH or MPH. Can it be done? Last edited on Thu Oct 30th, 2008 10:12 am by zoot |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
Currently Sisulizer does not read custom enum. It only scan those enum that are relevant for WYSIWYG. All custom string properties are scanned. I will implement scanning of custom types (user can defined what items to scan). Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
I implemented this in 274. In order to scan a custom property you have to do following steps: 1) Right click the .NET project or assembly in your project and choose Components 2) Find the component that contains the enum property and double click it 3) Select Properties sheet and click Add 4) Enter the property name, set mode to Included and set type to Enumrated type. 5) Close all dialogs but click OK three times. 6) Rescan the project by choosing Project | Scan for Changes Sisulizer 274 build will come out tomorrow. Jaakko Attachment: Untitled.png (Downloaded 81 times)
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
zoot Member
|
Sweet :D
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
zoot Member
|
I have downloaded and installed the new version but i can't get it to work. My VS2008 project and my sisulizer-file: http://www.cs.umu.se/~oskarl/Sisulizer%20enum-test.rar I want to localize my usercontrol called MyUserControl in the class liberty. I have two properties in it, one called "Speed" and the other is called "SpeedDisplayUnit". Sisulizer can find the Speed-property since it is a float but not the "SpeedDisplayUnit"-property which is a enum. Any ideas why?
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
Thank you for the files. I am working on this. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
I fixed this in 275. It turned out that the enum were stored in different format in binary resource file (.resources) that in source (.resx). The new build will come out in few days. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
zoot Member
|
Any idea when it will be released?
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
I am finishing testing the build. We will release it tomorrow. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
zoot Member
|
Great, I just downloaded it! I can find the enum now, but it says that the value is "0". It should be "KMPH". And if i change it to "MPH" sisulizer won't include the enum in the compiled satellite-file. Can you verify this?
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
Sisulizer show the index of the enum if you are using binary localization and the actual string if you use project localization. You use binary so integer are show stating at 0, 1, .. I know it is a bit difficult to translate but you have to tell the translator or check yourself that 0 = KMPH and 1 = MPH Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
zoot Member
|
Ok, i see. I have set the value to "1" but I still can't get it to work. Somehow the compiled satellite-file(which sisulizer has built) doesn't include the enum, can you test this?
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
You are right. I am sorry. I tested the output file and the localized Enum is there. It it is there when using project (.csproj) localization so I guess I tested wrong assembly (created by project slp) at the first place. Anyway I fixed this in 276. We will release on Monday or Tuesday. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| Current time is 09:56 pm | |
| Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Does Sisulizer support .NET enums? | |
Sisulizer software localization tool - Three simple steps to localize