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: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius
New Topic Reply Printer Friendly
"\n" in strings.xml from android app is incorrect - 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: Wed Jan 3rd, 2018 01:53 pm
PM Private Upload Quote Reply
heikovoss2
Member
 

Joined: Fri Nov 20th, 2015
Location:  
Posts: 16
Status: 
Offline
Hello,
we want to translate entries from string.xml from Android app. Some strings include "\n" which is only shown as "n" in sisulizer.
Eample: "Which tone was\n different?" becomes "Which tone wasn different?"
During import of "string.xml" I have chosen "android value file" (Android-Werte-Datei" in german).
Is there any possibilty that "\n" in these strings is used as it is?

Kind regards
Heiko Voß

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jan 3rd, 2018 02:09 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


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

You need to protect \ in XML with a <![CDATA[ construct. XML is very strict and Sisulizer simply follows these rules.

Hope this helps

Markus



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

 Posted: Wed Jan 3rd, 2018 02:41 pm
PM Private Upload Quote Reply
heikovoss2
Member
 

Joined: Fri Nov 20th, 2015
Location:  
Posts: 16
Status: 
Offline
Hi Markus,
Thanks for fast reply. I imported the file as normal XML-file not as android value file. Now \n is represented correctly.

Kind regards
Heiko

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jan 3rd, 2018 04:27 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 2010
Status: 
Offline
\n is correct encoding in Android XML file and it means new line. We noticed this few weeks ago and implemented the feature. Starting from build 370 Sisulizer correctly scans Android XML files contain \n.

After you use 370 you should let Sisulizer to scan Android values files as Android values files and not XML files. This will make sure that that data gets scanned correctly.

Build 370 will be released this week.

Ilkka



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

 Posted: Thu Jan 25th, 2018 11:38 am
PM Private Upload Quote Reply
heikovoss2
Member
 

Joined: Fri Nov 20th, 2015
Location:  
Posts: 16
Status: 
Offline
Hello Ilkka,
thanks for implementing this feature. Now it is really more comfortable.

regards
Heiko

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 26th, 2018 05:37 pm
PM Private Upload Quote Reply
heikovoss2
Member
 

Joined: Fri Nov 20th, 2015
Location:  
Posts: 16
Status: 
Offline
Hello,
Now I have the following problem: With version 370 I read file as android value file. In the original file the text is protected with CDATA-tag. But in GUI of Sisulizer the tag is not shown and in translated file the CDATA-tag is missing. So when the translated file is used in the android app the "\n" does not work correctly.

I don't want to insert the CDATA-tag manually. Is there any possiblity that is included into the translated files automatically?

Greetings
Heiko

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 26th, 2018 07:59 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 3844
Status: 
Offline
Hello,

Could you send to us your source and SLP file via Private Upload form?

Best regards,
Janusz



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

 Posted: Thu Jun 28th, 2018 04:58 pm
PM Private Upload Quote Reply
heikovoss2
Member
 

Joined: Fri Nov 20th, 2015
Location:  
Posts: 16
Status: 
Offline
I have sent private upload. Hope you can tell me what's wrong.

Greetings
Heiko

Back To Top PM Private Upload Quote Reply

 Posted: Thu Jun 28th, 2018 05:28 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3165
Status: 
Offline
Adding the CDATA-Tag to allow these chars as a workaround was my best shot.
I have to aks R&D if they can add the CDATA-Tag automatically if needed.
Markus



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

 Posted: Fri Jun 29th, 2018 12:35 pm
PM Private Upload Quote Reply
heikovoss2
Member
 

Joined: Fri Nov 20th, 2015
Location:  
Posts: 16
Status: 
Offline
Hello Markus,
I would appreciate the automatic solution in a future build of Sisulizer. I think it would be wise to avoid manual post processing of files in general. I'm used to the advantage of Sisulizer that it translates the translatable contents of the files but leave it otherwise unchanged.

At the moment I have only two languages. But we are planning up to ten different languages and in every file it it's five entries with CDATA.

Greetings
Heiko

Back To Top PM Private Upload Quote Reply

 Posted: Fri Jun 29th, 2018 12:45 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3165
Status: 
Offline
Agreed. Its already in the hands of R&D now.

But we also try to give a workaround that is working for our customers right away. So there is no need to wait for the next build.
Markus



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

Current time is 06:00 am  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > "\n" in strings.xml from android app is incorrect



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

Impress - Privacy statement

Sisulizer software localization tool - Three simple steps to localize