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
rows in new project messed up - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Thu Mar 1st, 2012 08:41 am
PM Private Upload Quote Reply
Ninke
Member
 

Joined: Mon Dec 12th, 2011
Location:  
Posts: 9
Status: 
Offline
Dear support people,

One of our .properties files in a java project is not handled as we would wish. It's a file with special characters, and reading in a Sisulizer project is not correct. Also the output of the translation, changes the characters.

Here is the text of the file:

key.disp.0=1234567890-\=
key.disp.1=QWERTYUIOP[]\
key.disp.2=`ASDFGHJKL;'
key.disp.3=ZXCVBNM,./
key.shift.0=\!_(at)_\#$%^&*()_+
key.shift.1=QWERTYUIOP{}|
key.shift.2=~ASDFGHJKL\:"
key.shift.3=ZXCVBNM<>?

In the attachment I add an image where you can see how this looks in Sisulizer. The row key.disp.2 is sticked to key.disp.1. And the backslash characters have dissappeared.

In exporting a translation of these strings, the backslash is still disappeared, but we need it in our code.

Is this something you can change? Or should we leave these strings out of our translations?

Best regards,

Ninke

Attachment: codeFile.jpg (Downloaded 19 times)

Back To Top PM Private Upload Quote Reply

 Posted: Thu Mar 1st, 2012 09:24 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1316
Status: 
Offline
I am working on this.

Ilkka



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

 Posted: Thu Mar 1st, 2012 11:56 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1316
Status: 
Offline
Backslash character (\) is used as escape character in .properties file. It means that \= is not \ and = but just =. If you want to have \ character in your string you have to write ti twice \

key.disp.0=1234567890-\=

-> 1234567890-=

but

key.disp.0=1234567890-\\=

-> 1234567890-\=

Also if the last character of any .properties line is \ then the next line is appended to that line. In your file

key.disp.1=QWERTYUIOP[]\
key.disp.2=`ASDFGHJKL;'


Becomes

key.disp.1=QWERTYUIOP[]key.disp.2=`ASDFGHJKL;'

Change it to

key.disp.1=QWERTYUIOP[]\\
key.disp.2=`ASDFGHJKL;'


You can read more about .properties format from

http://en.wikipedia.org/wiki/.properties

Ilkka



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

 Posted: Mon Mar 5th, 2012 07:09 am
PM Private Upload Quote Reply
Ninke
Member
 

Joined: Mon Dec 12th, 2011
Location:  
Posts: 9
Status: 
Offline
Hello Ilkka,

Thanks for your answer. Our software developers are aware of the use of escape characters. Actually we need the functionality in the code. But in some languages it might be necessary to change some characters in our string. It would be nice if we could use Sisulizer for this.

We cannot change our .properties files, because then the source language will behave different from its translations.

If it is not possible to import and export our strings as an exact copy in Sisulizer, we will exclude them from the project and make the changes manually. But if you can provide a better solution, we would be glad to hear.

Best regards,
Ninke

Back To Top PM Private Upload Quote Reply

 Posted: Mon Mar 5th, 2012 08:38 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1316
Status: 
Offline
Ninke wrote: But if you can provide a better solution, we would be glad to hear.


Use text file localization. First you have to map properties extension to text file. Choose Tools | General and see the screen shot.

Now when you have mapped the file every time you select a .properties file Sisulizer ask you what parser to use. Select Text. Sisulizer will detect the format incorretly. Remove the second field. See the second screenshot.

Ilkka

Attachment: Untitled.png (Downloaded 8 times)



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

 Posted: Mon Mar 5th, 2012 08:42 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1316
Status: 
Offline
Wait a moment. There is a problem in this mapping. I will check this.

Ilkka



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

 Posted: Mon Mar 5th, 2012 09:45 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 1316
Status: 
Offline
Here is screenshot about Project Wizard when you have selected .properties file and choosed Text parser.

The problerm with current build is that it does not remember the new map you added and but changes the default mapping of properties to text. I fixed this. The fix will be in the next build (330) that will be released later this week.

Ilkka

Attachment: Untitled.png (Downloaded 7 times)



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

Current time is 05:10 pm  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > rows in new project messed up



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