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
Order of strings for PO 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: Wed Mar 19th, 2014 10:02 am
PM Private Upload Quote Reply
Olivier_ho
Member
 

Joined: Wed Jul 23rd, 2008
Location: Marseille, France
Posts: 157
Status: 
Offline
Hi,
We have some PO files which contain texts split into several strings. Those strings are in the natural order in the PO file.
However, when we load the file into Sisulizer, the order is not the same, and it becomes very difficult to understand the meaning from sentences in a random order.

Note that this happens only after saving the file. At first, strings are in the right order.
You can use the attached file to try: when adding the file, the 5 strings are in the right order, and after saving, closing the project, opening it again, the last string consistently comes 3rd before last.

Is there a way we could keep the order of the strings as set in the original PO file?

Best regards,

Olivier

Back To Top PM Private Upload Quote Reply

 Posted: Wed Mar 19th, 2014 10:35 am
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 3844
Status: 
Offline
Sisulizer (after SLP saving) do not use original order of PO sources and always sort items in alphabetical order (first A-Z, next a-z) . Thank you for reminding me this issue, because I've annoyed with this solution. Of course, I'll forward this to our R&D.

Janusz



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

 Posted: Wed Mar 19th, 2014 10:50 am
PM Private Upload Quote Reply
Olivier_ho
Member
 

Joined: Wed Jul 23rd, 2008
Location: Marseille, France
Posts: 157
Status: 
Offline
OK, we need to switch to BetterPOEditor for the moment, then.
This project is using PO files for translating our documentation, and it is just impossible not to have the strings in the order of the text: paragraphs, titles etc. are split into separate strings for easier tracking of changes from one version to another.

Back To Top PM Private Upload Quote Reply

 Posted: Fri Mar 21st, 2014 02:10 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 2010
Status: 
Offline
Starting from the next build (344) Sisulizer no longer sorts the items if PO file. This feature affect only for new projects. If you open an exiting project it uses the sorting that is already used in the project.



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

 Posted: Thu Apr 3rd, 2014 09:39 am
PM Private Upload Quote Reply
Olivier_ho
Member
 

Joined: Wed Jul 23rd, 2008
Location: Marseille, France
Posts: 157
Status: 
Offline
It works !
That's really great, now we can use Sisulizer for our documentation projects (about 400 .po files, for 1000 pages of documentation).

Thank you very much for addressing our request so quickly.

Last edited on Thu Apr 3rd, 2014 09:48 am by Olivier_ho

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 24th, 2014 04:31 pm
PM Private Upload Quote Reply
Olivier_ho
Member
 

Joined: Wed Jul 23rd, 2008
Location: Marseille, France
Posts: 157
Status: 
Offline
Hum, I'm sorry, I think there is still an issue...

When I update with changes, all new strings go to the end instead of being inserted properly where they appeared in the original file.

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jun 24th, 2014 05:09 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 3844
Status: 
Offline
You are right, I reproduced this issue.

Janusz



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

 Posted: Sat Jun 28th, 2014 12:46 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 2010
Status: 
Offline
I fixed this. Once scanned the new new items will be in the end but if you close and open the file the order will be same as in PO. The fix will be in the next build (351)

Ilkka



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

 Posted: Fri Jul 4th, 2014 03:20 pm
PM Private Upload Quote Reply
Olivier_ho
Member
 

Joined: Wed Jul 23rd, 2008
Location: Marseille, France
Posts: 157
Status: 
Offline
Thank you ! I'll check that version when it is released.

Back To Top PM Private Upload Quote Reply

 Posted: Mon Jan 23rd, 2017 12:09 pm
PM Private Upload Quote Reply
Notabeniac
Member
 

Joined: Tue Oct 1st, 2013
Location:  
Posts: 7
Status: 
Offline
I have a concern that this issue is still there.
I'm still getting the same behavior and the same problem as Olivier_ho initially described.

I can reproduce it in new projects created from scratch with version 361. (I understand that existing projects will keep the sorting as it is).

The "Natural string sorting" checkbox in Sheet properties and Project options seems to have no effect whether on and off. "No sorting" is selected for both Context and Original columns.

Is there anything specific I should do to keep the original order of strings in PO?

Back To Top PM Private Upload Quote Reply

 Posted: Mon Jan 23rd, 2017 02:01 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 3844
Status: 
Offline
I checked this with my own PO sample and I got following results:
  • After adding PO file to SLP, Sisulizer keeps original sorting of items.
  • After adding new strings to PO file and using "Scan for changes" feature in the Sisulizer, new strings are added at the end of sheet, and natural sorting doesn't work.
  • After saving and re-opening updated SLP, new items re correctly sorted (items are matched with original sorting).
I'll forward this to our developer. If you got identical behavior, please use workaround with saving and re-opening your SLP.

Best regards,
Janusz



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

 Posted: Mon Jan 23rd, 2017 04:46 pm
PM Private Upload Quote Reply
Notabeniac
Member
 

Joined: Tue Oct 1st, 2013
Location:  
Posts: 7
Status: 
Offline
Janusz, thank you for your quick reply.

I investigated further trying to understand why my results are different from yours and I think a have a clue.

We usually have quite a lot of PO files in a project and therefore add them as a directory (using "Localize all similar files in a directory" option).
When I tried to create a project adding some files one by one, the slp file had the original sorting.
To exclude other possible reasons behind the difference in sorting behavior, I did a clean test, creating 2 slp files: one with files added one by one, and the other with files in a directory.
I used a few sample files that have the strings in order:
msgid "First string"
msgstr ""

msgid "Second string"
msgstr ""

msgid "Third string"
msgstr ""

msgid "Fourth string"
msgstr ""

msgid "Fifth string"
msgstr ""


The slp file created with "Localize all similar files in a directory" option has strings sorted in alphabetical order:
    Fifth string
    First string
    Fourth string
    Second string
    Third string
I uploaded the archived files using the form.

I understand that adding source files one by one might be a temporary workaround, but it doesn't look like a solution to the sorting issue with dozens of files per project.

Back To Top PM Private Upload Quote Reply

 Posted: Mon Jan 23rd, 2017 05:36 pm
PM Private Upload Quote Reply
Janusz Grzybek
Super Moderator


Joined: Fri Dec 1st, 2006
Location: Zabrze, Poland
Posts: 3844
Status: 
Offline
The slp file created with "Localize all similar files in a directory" option has strings sorted in alphabetical order:
You are right, for files added as directory Sisulizer uses alphabetical order. I'll forward this to our CTO.

Best regards,
Janusz



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

Current time is 10:59 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 > Order of strings for PO files



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