Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2023, 06:54 AM   #211
BeckyEbook
Guru
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: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Quote:
Originally Posted by User_Z View Post
In this case, the entire translation system may be broken.
Now the sigil_uk file is translated by 27% and sigil_uk_UA by 100%.
What if first you completely removed sigil_uk, and then sigil_uk_UA changed to sigil_uk?

Since the 27%-version is unfinished (no one updates it on a regular basis?) maybe this is not such a bad solution.

Only it would have to be done by someone with authority in Transifex.
BeckyEbook is online now   Reply With Quote
Old 07-13-2023, 07:00 AM   #212
User_Z
Zealot
User_Z began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
In general, it is not clear why this is a duplication of languages (uk and uk_UA).
I don't think anyone will do the same job twice.
Therefore, one file was started and abandoned, and everyone switched to another, where there were more translations.
User_Z is offline   Reply With Quote
Advert
Old 07-13-2023, 12:23 PM   #213
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: 7,705
Karma: 5444398
Join Date: Nov 2009
Device: many
We (Sigil) have no control over the choice of languages and their region specific variations on Transifex.

When both exist, we choose the one with the most complete translation (that meets the minimum of 70% - 75% of the translation complete). If both exist and are duplicates (or nearly so) we use the broader language only (no region) version.

That said, once we get the Transifex .ts files into Sigil, we could in theory adjust them to be just language only (ie take "uk_UA" and make it "uk") before making our release builds.

Would that help?

KevinH
KevinH is offline   Reply With Quote
Old 07-13-2023, 01:16 PM   #214
BeckyEbook
Guru
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: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Quote:
Originally Posted by KevinH View Post
Would that help?
If this renaming (sigil_uk_UA to sigil_uk) is done right after downloading the translations from Transifex then it should work.
A later procedure from cmake will recognize that you will need the qtbase_uk file.
I'm of good cheer.
BeckyEbook is online now   Reply With Quote
Old 07-13-2023, 03:09 PM   #215
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: 27,583
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm not at all opposed, but it WILL be a manual process to be remembered for every release. We also might want to consider renaming it in the source tree unless we want to remember to keep changing it back (or risk making pointless rename commits to the tree over and over again).

EDIT: Nevermind. We can't rename the .ts file in the source tree since that's what's uploaded to Transifex. We'd just need to rename the .ts file before the .qm file is generated, and then rename it back before the next commit.

Last edited by DiapDealer; 07-13-2023 at 03:23 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 07-13-2023, 03:19 PM   #216
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: 7,705
Karma: 5444398
Join Date: Nov 2009
Device: many
I already have to rename many of the ts files downloaded from Transifex to be used in PageEdit. Renaming one for Sigil before committing it should be no biggie.

He said hopefully!
KevinH is offline   Reply With Quote
Old 07-13-2023, 03:28 PM   #217
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: 27,583
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Is it as simple as renaming the ts file? There is a language identifier in the xml content of the ts file I expect would need to be changed as well, no?
DiapDealer is offline   Reply With Quote
Old 07-13-2023, 03:38 PM   #218
BeckyEbook
Guru
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: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Inside XML (TS) file is full language <TS version="2.1" language="uk_UA"> and we are not changing that.
However, Sigil's mechanisms recognize by file name, so changing the file name should be enough.
BeckyEbook is online now   Reply With Quote
Old 07-13-2023, 03:46 PM   #219
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: 27,583
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BeckyEbook View Post
Inside XML (TS) file is full language <TS version="2.1" language="uk_UA"> and we are not changing that.
However, Sigil's mechanisms recognize by file name, so changing the file name should be enough.
Sigil, yes. But I'm wondering about Qt itself. With lconvert and then QTranslator trying to use both Sigil_uk.qm and and qtbase_uk.qm when there are mismatched full language identifiers inside. It may work just fine. I'm no expert in this regard. Just trying to dot all the Is and cross the all the Ts.

Last edited by DiapDealer; 07-13-2023 at 03:53 PM.
DiapDealer is offline   Reply With Quote
Old 07-15-2023, 11:16 AM   #220
User_Z
Zealot
User_Z began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Hello.

For a temporary solution to the problem, I place the file qtbase_uk_UA.qm
Just put it in "C:\Program Files\Sigil\translations\" directory.
Attached Files
File Type: zip qtbase_uk_UA_qm.zip (2.2 KB, 29 views)
User_Z is offline   Reply With Quote
Old 07-18-2023, 12:20 PM   #221
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: 7,705
Karma: 5444398
Join Date: Nov 2009
Device: many
So what was the final conclusion from the discussion here?

For the upcoming release, should I rename the uk_UA ts file to just be just uk or are people in Ukraine going to use User_Z's qtbase_uk_UA.qm file and just add it to their own builds, or what? ...

I need to know what people want before the next release which will hopefully happen sometime in early to mid August depending on schedules.

Last edited by KevinH; 07-18-2023 at 12:23 PM.
KevinH is offline   Reply With Quote
Old 07-18-2023, 12:44 PM   #222
BeckyEbook
Guru
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: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
I my opinion – yes. Rename uk_UA ts file to uk should be OK.

A later check that the correct qtbase_uk file exists should add the appropriate file and everything should "play".

What do you think @User_Z?
BeckyEbook is online now   Reply With Quote
Old 07-18-2023, 03:04 PM   #223
User_Z
Zealot
User_Z began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
Hello.

It looks like we're thinking for three.


I think the file needs to be renamed.
Leave one file for the main language. Delete everything else.
The most important thing is that the translations do not disappear (make a backup copy, just in case).

Am sure that correct and high-quality translation is important for users, and not how many files are on Transifex.
User_Z is offline   Reply With Quote
Old 07-18-2023, 03:40 PM   #224
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: 7,705
Karma: 5444398
Join Date: Nov 2009
Device: many
To be clear ... I have *no* control or ability to change any files on Transifex itself. Only the team of translators with access to that language do.

I can just download the latest uk_UA ts file from Transifex and rename it just before committing it to Sigil master for use in Release builds.

That is what I am asking if you want me to do that.

To change things on Transifex you would have to identify the team leader for that language and contact him or her directly and ask.
KevinH is offline   Reply With Quote
Old 07-18-2023, 03:43 PM   #225
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: 7,705
Karma: 5444398
Join Date: Nov 2009
Device: many
Alternatively, I do have the ability to approve new translators for Sigil transifex projects who apply on Transifex. That person could easily make the uk_UA and uk ts files match. Sigil would then default to using the uk only file if both are equal.
KevinH is offline   Reply With Quote
Reply


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 03:14 AM.


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