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
C1FlexGrid - 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: Fri Oct 3rd, 2008 01:33 pm
PM Quote Reply
ryardley
Member
 

Joined: Fri Sep 26th, 2008
Location:  
Posts: 4
Status: 
Offline
Hi, I am fairly new to Sisulizer, trying to map a C1.Win.C1FlexGrid.C1FlexGrid component. would like to translate just the column headers.

Column headers are contained in a (composite string) ColumnInfo property, the number of columns can vary according to the design also C1 only specifies UI properties that have been changed from the default. Each occurence of the Caption element needs to translate its text. Here are some examples, taken from the forms resx file, the caption properties that interest us are in green.

Two columns with captions "First Name" and "Last Name".

<
data name="c1FlexGrid1.ColumnInfo" xml:space="preserve">

<
value>2,0,0,0,0,85,Columns:0{Width:125;Name:"FirstName";Caption:"First Name";Style:"DataType:System.String;TextAlign:LeftCenter;";} 1{Width:74;Name:"LastName";Caption:"Last Name";Style:"DataType:System.String;Font:Microsoft Sans Serif, 8.25pt;Margins:1, 0, 0, 0;TextAlign:LeftCenter;TextEffect:Raised;TextDirection:Normal;Trimming:Character;";} </value>

</
data>

The same two columns on the same grid but with other properties changed.

<
data name="c1FlexGrid1.ColumnInfo" xml:space="preserve">

<
value>2,0,0,0,0,85,Columns:0{Width:125;Name:"FirstName";Caption:"First Name";AllowResizing:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 1{Width:74;AllowSorting:False;Name:"LastName";Caption:"Last Name";AllowDragging:False;AllowResizing:False;Style:"DataType:System.String;Font:Microsoft Sans Serif, 8.25pt;Margins:1, 0, 0, 0;TextAlign:LeftCenter;TextEffect:Raised;TextDirection:Normal;Trimming:Character;";} </value>

</
data>

Is it possible to map properties of this type, My workaround at the moment is to map the headers seperately in a resource file, then inject within code. Not ideal.

Will it be possible to make this control Right to Left for Arabic translations? We would expect to see the column positions reversed.

best regards

Bob

Back To Top PM Quote Reply

 Posted: Sat Oct 4th, 2008 08:23 pm
PM Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 449
Status: 
Online
Hello Bob,
Could you send some sample project to us on support (at) sisulizer.fi?
Janusz



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

 Posted: Mon Oct 6th, 2008 01:19 pm
PM Quote Reply
ryardley
Member
 

Joined: Fri Sep 26th, 2008
Location:  
Posts: 4
Status: 
Offline
Hi Janusz,

Not sure what the email address is (sisulizer.fi?) so have attached a zip file containing a simple solution together with the slp project file.

thanks

Bob

Attachment: SampleC1Grid.zip (Downloaded 3 times)

Back To Top PM Quote Reply

 Posted: Mon Oct 6th, 2008 02:51 pm
PM Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 449
Status: 
Online
Hello Bob,
Thank you for file. We use " (at) ", because we would like to avoid capture our support email address by spam robots.
Janusz



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

 Posted: Wed Oct 15th, 2008 12:28 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1540
Status: 
Offline
Hi Bob,

Mapping does not help here. The problem is that the value in the resource file is very structural and only one part of the data needs to be translated. Take a look at this screen shot. Currently Sisulizer shows both ColumnInfo and StyleInfo as raw string data. It is a nightmare for a translator to translate and most likely the translated value is not valid any more (missing data or invalid data).

I have marked with green box the data that should be visible on Sisulizer screen. StyleInfo should be completely hidden.

It is possible to give regular expression during mapping. The expression would define the combined data. However in this case the fomat is too complex for regular expression. This is why I will hard code to Sisulizer scanning logic that it will only scan the Caption propertis inside the ColumnInfo and will show each Caption property as separate row in Sisulizer project.

I try to get this to Friday's build (273).

Thank you for the sample.

Jaakko

Attachment: Untitled.png (Downloaded 9 times)



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

 Posted: Wed Oct 15th, 2008 12:54 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1540
Status: 
Offline
I implemented this in 273 (will come out on Friday).

Grid is mapped such what that Sisulizer ignores StyleInfo property and Sisulizer uses special scanning logic for ColumnInfo property. Now it is much easier and safer to translate.

Jaakko

Attachment: Untitled.png (Downloaded 9 times)



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

Current time is 12:17 am  
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 > C1FlexGrid



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