Support forum of the software localization tool Sisulizer


Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius
New Topic Reply Printer Friendly
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 ...
AuthorPost
 Posted: Thu Oct 30th, 2008 09:38 am
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
One simple question, does Sisulizer support .NET enums? I'm using C#.

Back To Top PM Quote Reply

 Posted: Thu Oct 30th, 2008 09:43 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
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
Back To Top PM Quote Reply

 Posted: Thu Oct 30th, 2008 10:09 am
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
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:

public enum MyEnom
{
    KMPH,
    MPH
};

public class MyControl : Control
{
...
    [Browsable(true)]
    public MyEnom propertyX
    {
        get;
        set;
    }
...
}


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

Back To Top PM Quote Reply

 Posted: Thu Oct 30th, 2008 10:49 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
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
Back To Top PM Quote Reply

 Posted: Thu Oct 30th, 2008 11:28 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
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
Back To Top PM Quote Reply

 Posted: Thu Oct 30th, 2008 12:26 pm
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
Sweet :D

Back To Top PM Quote Reply

 Posted: Tue Nov 4th, 2008 05:23 pm
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
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?

Back To Top PM Quote Reply

 Posted: Tue Nov 4th, 2008 10:33 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
Thank you for the files. I am working on this.

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Quote Reply

 Posted: Wed Nov 5th, 2008 03:02 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
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
Back To Top PM Quote Reply

 Posted: Thu Nov 20th, 2008 12:21 pm
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
Any idea when it will be released?

Back To Top PM Quote Reply

 Posted: Thu Nov 20th, 2008 12:23 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
I am finishing testing the build. We will release it tomorrow.

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Quote Reply

 Posted: Fri Nov 21st, 2008 02:17 pm
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
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?

Back To Top PM Quote Reply

 Posted: Fri Nov 21st, 2008 02:30 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
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
Back To Top PM Quote Reply

 Posted: Fri Nov 21st, 2008 04:06 pm
PM Quote Reply
zoot
Member
 

Joined: Thu Oct 30th, 2008
Location:  
Posts: 8
Status: 
Offline
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?

Back To Top PM Quote Reply

 Posted: Sat Nov 22nd, 2008 01:34 am
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1641
Status: 
Offline
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
Back To Top PM Quote Reply

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?



WowUltra 1.11 Copyright © 2007 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize