Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-06-2026, 09:50 AM   #271
BeckyEbook
Wizard
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 1,071
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
Here.
Attached Thumbnails
Click image for larger version

Name:	sigil-near.png
Views:	36
Size:	6.1 KB
ID:	226449  
BeckyEbook is offline   Reply With Quote
Old 10-06-2026, 09:51 AM   #272
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Контекст
QObject
Подробности
Размер
1 слово
Вхождения
../../Importers/ImportEPUB.cpp:675
Ресурс
base.ts
Хэш строки
db2af4afe0890fa9ae06dbcbc2a81755
User_Z is offline   Reply With Quote
Old 10-06-2026, 11:28 AM   #273
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Thanks, BeckyEbook.

This is the text in the program window.
Where is the line in Transifex?
User_Z is offline   Reply With Quote
Old 10-06-2026, 11:31 AM   #274
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,136
Karma: 7640000
Join Date: Nov 2009
Device: many
Check out: ../../Importers/ImportEPUB.cpp:675
(ie. Importers/ImportEpub.cpp line 675)

https://github.com/Sigil-Ebook/Sigil...tEPUB.cpp#L675

And the opf error message itself comes from Qt's QXMLStreamReader which is internal to Qt. Since these are error messages from an XMLParser, I would guess they are in English only. There is an error() enum value but that list is short and comes back with CustomErrorMessage which is no help for Translators.

Last edited by KevinH; 10-06-2026 at 12:05 PM.
KevinH is online now   Reply With Quote
Old 10-07-2026, 05:22 AM   #275
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Hello BeckyEbook.

What do I need to do to get a message like the one in your screenshot?

Thanks.
User_Z is offline   Reply With Quote
Old 10-07-2026, 07:38 AM   #276
BeckyEbook
Wizard
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 1,071
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
Outside of Sigil, edit the OPF file and remove the attributes from the metadata tag so that only <metadata> remains.
Attached Files
File Type: zip empty-epub.zip (1.6 KB, 5 views)
BeckyEbook is offline   Reply With Quote
Old 10-07-2026, 02:50 PM   #277
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Hello KevinH.

What do the numbers at the end of the line in the screenshot mean? They represent the position in the OPF file—the line and column.

If so, what does "near" have to do with it?
User_Z is offline   Reply With Quote
Old 10-07-2026, 03:26 PM   #278
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,832
Karma: 212614993
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It means that might not be the exact location of the error. The error is likely near that location.
DiapDealer is online now   Reply With Quote
Old 10-07-2026, 05:06 PM   #279
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,136
Karma: 7640000
Join Date: Nov 2009
Device: many
Remember, the OPF being processed here by the QXmlStreamReader is exactly what the original epub was created with, likely no xml header, possible lead comments, misused prefixes, etc. Sigil normally auto fixes and cleans all of this but then the book was never set as Modified properly (as only the opf was repaired). Now we detect when the opf is malformed on load and alert you. We still auto fix it but now the Modified flag can be properly set since we can now detect a repair was needed.

Line numbers and columns in the QXMLStreamReader may differ slightly now from the fully fixed version now in Sigil, thus the use of the word "near".
KevinH is online now   Reply With Quote
Old 10-08-2026, 02:59 AM   #280
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Quote:
Originally Posted by KevinH View Post
Check out: ../../Importers/ImportEPUB.cpp:675
(ie. Importers/ImportEpub.cpp line 675)

https://github.com/Sigil-Ebook/Sigil...tEPUB.cpp#L675

And the opf error message itself comes from Qt's QXMLStreamReader which is internal to Qt. Since these are error messages from an XMLParser, I would guess they are in English only. There is an error() enum value but that list is short and comes back with CustomErrorMessage which is no help for Translators.

Judging by your code and comment, you are assembling the phrase from various parts. However, the translation would apply to only one word out of the entire—rather long—phrase.
What will the result actually look like?

I searched the Qt source code for the phrase "Namespace prefix opf for scheme on identifier is not defined" and parts of it, but the search yielded no results.

Perhaps the string "opferror.message" or "error_message" in the code could be made more natural?
User_Z is offline   Reply With Quote
Old 10-08-2026, 08:50 AM   #281
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,136
Karma: 7640000
Join Date: Nov 2009
Device: many
You need to talk to Qt about that. As I said we do not create the error message, we just add location info to the end. And there are many different possible OPF parsing error messages created by QXmlStreamReader.
KevinH is online now   Reply With Quote
Old 10-08-2026, 03:47 PM   #282
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
I’ve already spoken to them about updating the current translation in general.
I have never seen a more idiotic localization system—especially for a commercial product.

Some time ago, I mentioned here that I had fully translated Qt into two languages ​​and fixed various errors and inaccuracies (quite a job, let me tell you). I then submitted the complete set of translation files to Qt Gerrit. It turned out, however, that no one but me cared about it. The current localization manager told me that Qt management couldn't care less about localization.

So now, whenever Sigil spits out some nonsense from the standard Qt translation, I replace the `qtbase` file with the one from my own set and use the more accurate translation instead.
User_Z is offline   Reply With Quote
Old 10-08-2026, 06:56 PM   #283
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,832
Karma: 212614993
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm not seeing this particular instance rising to the level of "nonsense". I find it hard to believe there's no suitable substitute for "near" that would fit the context of "near this line:column number" in any language.
DiapDealer is online now   Reply With Quote
Old 10-09-2026, 02:49 AM   #284
User_Z
Zealot
User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'User_Z gives new meaning to the word 'superlative.'
 
Posts: 136
Karma: 150144
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
You misunderstood; please read carefully.

"nonsense" refers to the "standard Qt translation," not to your word "near".
Everything is fine with "near" now; the translation is ready.
User_Z is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Translating KOReader leschek KOReader 107 03-17-2023 04:19 PM
Translating using Calibre P.Jourdan Editor 5 04-29-2021 06:32 PM
Footnotes not translating HowardBrazee Calibre 7 08-14-2015 08:43 AM
Translating my plugin? silentguy Plugins 4 01-19-2011 11:00 AM
Translating MR stories Verencat Lounge 11 05-31-2009 12:00 PM


All times are GMT -4. The time now is 11:36 AM.


MobileRead.com is a privately owned, operated and funded community.