|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| 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 ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
ryardley Member
|
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
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Janusz Grzybek Super Moderator
|
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 |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
ryardley Member
|
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)
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Janusz Grzybek Super Moderator
|
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 |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
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 |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
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 |
|||||||||||||
| ||||||||||||||
Sisulizer software localization tool - Three simple steps to localize