Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support 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
Re-scanning localised resx files - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Tue Jun 8th, 2010 10:45 am
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
Hi,

I am trying to localise my application (C#, Visual Studio) to Arabic and have got all the strings into the generated .ar.resx files.

The problem I have is the layout. It moves all the positions of controls but does not set the RightToLeft or RightToLeftLayout Properties.

I have made the layout look right by editing the arabic resx file in VS and basically removing all the position stuff and adding these 2 properties. the problem is that Sisulizer does not pick up these changes and when I click build it just overwrites them.

Can you please give me some advice on how to do one of the following:
- Import my changes to the .ar.resx files back into Sisulizer
- Generate my .ar.resx files differently (so they don't need changing)
- Tell Sisulizer not to overwrite my local changes when building.
- Use a completely different system for making my LTR to RTL transition?

Thanks

DOM

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 8th, 2010 11:06 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2115
Status: 
Offline
Hi Dominic,

Only edit your original language files in VS. Edit your localized dialogs only in Sisulizer. If Sisulizer builds the localized versions of your files it will read your original, change the strings and write out the localized version of it. Importing data from localized files should be done once, e.g. if you already have the files created manually or with some other tool and you now want to start using it in Sisulizer.

To let Sisulizer output your forms mirrored you should use Project - Edit Source - <your source> - Options - Mirror forms.

It much more comfortable to haver all translations in one place, only edit one source file and let Sisulizer do the job.

Recommended reading: http://www.sisulizer.com/online-help/ProjectWizardNetProjectFrame.shtml

Markus



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

 Posted: Tue Jun 8th, 2010 11:12 am
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
Hi Markus,

Thanks for that, I was just reading the similar post about re-reading resx files. I would like to just edit the positions in Sisulizer but the problem I have is that they don't appear to be set in Sisulizer but it does generate overrides in the generated arabic resx. The attached picture shows my Visual studio Settings sheet (which does have position values which are roughly mirrors of my original and which were generated by Sisulizer). On top of it you can see the Rows dialog for Sisulizer which has no Arabic settings for label1. So why are these being set?

Now I will read the link you gave me...

DOM

Attachment: Capture.JPG (Downloaded 53 times)

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 8th, 2010 11:31 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2115
Status: 
Offline
Hi,

If you want to edit positions and widths in Sisulizer you have to allow Sisulizer to edit integers.

Use Project - Edit Source - <your source> - Excluded Types and check that Integer number is not checked.

After you changed that use Project - Scan for Changes to let Sisulizer read the properties. Now you can move the dialog design in Sisulizer.

Markus



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

 Posted: Tue Jun 8th, 2010 11:40 am
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
HI Markus,

My point is that Sisulizer _is_ putting new locations into my .ar.resx file whether I edit them there or not. Also whether or not I have Integers turned on or have Set Reading Order or Mirror Forms turned on. As you see above, label1.Location.X has nothing in the Arabic column but in the generated resx it is being set to 295.

My form mostly work well if I remove the overrided values, change a couple of anchors and add the RTL properties. What I would like to get to is something like the following image:

Attachment: Capture.JPG (Downloaded 52 times)

Last edited on Tue Jun 8th, 2010 12:28 pm by dominicporter

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 8th, 2010 11:46 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2115
Status: 
Offline
Hi Dominic,

Sisulizer will use the settings from your original language resources. It will not use the settings from your Arabic resource. You can see the values it uses in the translation grid if you allow Integer Values.

Markus



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

 Posted: Tue Jun 8th, 2010 12:26 pm
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
But as you can see from my first picture, it is generating arabic versions of my label location from somewhere.

There are no translations in Sisulizer but the X location '6' gets converted to '295' somehow.

btw, I meant to say X in my last post, not Z.

Attachment: Capture.JPG (Downloaded 51 times)

Last edited on Tue Jun 8th, 2010 02:16 pm by dominicporter

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 8th, 2010 12:33 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2115
Status: 
Offline
That's odd,

Can you please upload the original files you scan plus the .slp in a ZIP file using private upload.

Please use the "Private Upload" button right above this post. It helps us to keep track of uploads and forums posts.

We will look into it.

Markus




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

 Posted: Tue Jun 8th, 2010 04:03 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 2542
Status: 
Offline
If you have checked "Set reading order property" in "Options" tab of your source properties (available via "Project" menu -> "Edit source -> your source), Sisulizer automatically change layout of all form's controls to RTL in output file, so these values are invisible in translation sheet, unless you import resources from Sisulizer output files. Below is screenshot of example resx file (based on your resx file) with original layout:

Attachment: screen.png (Downloaded 46 times)



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

 Posted: Tue Jun 8th, 2010 04:04 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 2542
Status: 
Offline
... and after translation and build with changed layout (after import from localized file):

Attachment: screen1.png (Downloaded 45 times)



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

 Posted: Tue Jun 8th, 2010 04:06 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 2542
Status: 
Offline
If you would like keep original layout, you need uncheck "Set reading order property" option in source properties. If you uncheck Set reading order property check box you have to set the RightToLeft property of all forms on runtime if the active language is a bi-directional languages.

Best regards,
Janusz



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

 Posted: Tue Jun 8th, 2010 04:27 pm
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
OK, I think I am making some progress so here are some more questions:

- Firstly in my Sisulizer the form does not look like the above image. The Arabic translation is exactly like the English except with arabic text (ie it is not reversed like yours). It does however get reversed when I run my application with Locale set to Arabic. Do I need to turn change a setting in Sisulizer to see it RTL?
- The generated .ar.resx files do not have the RightToLeft Property set. Should they? without this my question marks and ...'s etc appear on the wrong side of text but this may be because I am developing on English WIndows just set to Arabic language.
- Part of the problem I am having is with anchors. In the above control, the labels are set to Anchor Top and Left whereas the text boxes are set to Top, Right and Left (so they stretch as the control is resized). This means that if you reverse their locations as Sisulizer does automatically, The text boxes still grow Right and overlap the text(see pic). Any advice?

Attachment: Capture.JPG (Downloaded 42 times)

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 8th, 2010 07:55 pm
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
I have noticed that if I select my compiled exe file as the source to localise then sisulizer does show the localized values (ie in my picture from post at Tue Jun 8th, 2010 12:26 pm, the columns are set to Auto translated and have values). It also shows the form mirrored as in Janusz last picture. If my source is a .sln then it does not do either of these but it still automatically sets the mirrored values in the .ar.resx files. Changing "Set reading order" seems to make no difference at all.

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jun 9th, 2010 11:49 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2115
Status: 
Offline
Hi Dominic,

Some of your questions are beyond the scope of our first level support. We asked our R&D for some input to these.

Markus



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

 Posted: Mon Jun 14th, 2010 03:47 pm
PM Private Upload Quote Reply
dominicporter
Member
 

Joined: Fri Nov 14th, 2008
Location: United Kingdom
Posts: 10
Status: 
Offline
Hi Guys,

Any word from your R&D on this? I have had to resort to manually editing the .ar.resx files in order to get a working product, although I know that next time I 'build' in Sisulizer it will overwrite my changes. I just could not find anyway to make it not overwrite the locations of controls. Even entirely graphical controls were being mirrored. I would like to find a way of turning this off if possible.

On another note, I got round the anchor reversal issue with a recursive function which looks something like this:

foreach (Control c in cc.Controls)
{
if (c.Dock == DockStyle.None
)
{
if (
(c.Anchor & AnchorStyles.Left) == AnchorStyles.Left &&
(c.Anchor & AnchorStyles.Right) != AnchorStyles.Right
)
{
c.Anchor |= AnchorStyles.Right;
c.Anchor ^= AnchorStyles.Left;
}

else if (
(c.Anchor & AnchorStyles.Left) != AnchorStyles.Left &&
(c.Anchor & AnchorStyles.Right) == AnchorStyles.Right
)
{
c.Anchor ^= AnchorStyles.Right;
c.Anchor |= AnchorStyles.Left;
}
}


Hope this helps.

DOM

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 15th, 2010 11:13 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 2115
Status: 
Offline
Hi Dominic,

In the moment our R&D is busy with other cases. If I see that these are completed I try to point them to this thread.

Markus



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

Current time is 08:38 pm  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Re-scanning localised resx files



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize