Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-11-2015, 12:21 PM   #91
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by tshering View Post
Look, there is a small difference: "a %1 dictionary" against "an %1 dictionary". I think the Catalan translation can remain the same in both cases. Right? I will inserted this string, and upload the zlib file in the evening when I am back home.
yes, the translation is ok.
surquizu is offline   Reply With Quote
Old 05-11-2015, 03:44 PM   #92
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Let us see whether it works!
Attached Files
File Type: zip KBPatcher12_3.15.0translate_es_cat_20150507_05011.zip (4.38 MB, 196 views)
tshering is offline   Reply With Quote
Advert
Old 05-11-2015, 05:57 PM   #93
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by tshering View Post
Let us see whether it works!
It works well !
surquizu is offline   Reply With Quote
Old 06-11-2015, 08:12 AM   #94
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by surquizu View Post
It works well !
I am not sure whether you are interested in updating the Catalan patch for FW 3.16.0. Anyway, I am providing here some materials.
I explain shortly what I did:
  • I run the last translation file (I took it from this post) against nickel 3.16.0 in order to see which strings are getting refused. You can find the information in errors_ca3150_against_nickel3160.txt.
  • I extracted the Spanish translation strings from nickel 3.16.0. You can find them in nickel_18C978.tr.es_export01_grt.txt and nickel_18C978.tr.es_export02_grt.txt.
  • I run the Spanish translitation strings agains nickel 3.15.0 to see which strings are getting refused. You can find the information in errors_es3160_against_nickel3150.txt

By comparing those four files you can identify the changes that have to be done.

4) I prepared a patcher for replacing the Spanish translation strings with numbers.
Attached Files
File Type: zip prepare_3.16.0translate_es_cat_201506011.zip (687.5 KB, 238 views)
tshering is offline   Reply With Quote
Old 06-11-2015, 03:09 PM   #95
george.talusan
Kobo Developer Intern
george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.
 
george.talusan's Avatar
 
Posts: 84
Karma: 253043
Join Date: Apr 2010
Location: Toronto, ON
Device: Kobo Touch, Kobo Mini, Kobo Glo
Here's some friendly advice if you guys are this deep into hex editing the binaries:

You should be able to extract these files into Qt's .TS format. You can run lrelease on the file to convert it into a .qm file.

If you've run strace on nickel, you've seen that it attempts to sideload from /usr/local/Kobo/translations/trans_*.qm and then it'll fallback onto extracting the resource from libnickel.
george.talusan is offline   Reply With Quote
Advert
Old 06-11-2015, 03:28 PM   #96
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by george.talusan View Post
Here's some friendly advice if you guys are this deep into hex editing the binaries:

You should be able to extract these files into Qt's .TS format. You can run lrelease on the file to convert it into a .qm file.

If you've run strace on nickel, you've seen that it attempts to sideload from /usr/local/Kobo/translations/trans_*.qm and then it'll fallback onto extracting the resource from libnickel.
Thank your for the advice! I did not even know that there is something like lrelease.
tshering is offline   Reply With Quote
Old 06-11-2015, 04:58 PM   #97
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by tshering View Post
I am not sure whether you are interested in updating the Catalan patch for FW 3.16.0. Anyway, I am providing here some materials.
I explain shortly what I did:
  • I run the last translation file (I took it from this post) against nickel 3.16.0 in order to see which strings are getting refused. You can find the information in errors_ca3150_against_nickel3160.txt.
  • I extracted the Spanish translation strings from nickel 3.16.0. You can find them in nickel_18C978.tr.es_export01_grt.txt and nickel_18C978.tr.es_export02_grt.txt.
  • I run the Spanish translitation strings agains nickel 3.15.0 to see which strings are getting refused. You can find the information in errors_es3160_against_nickel3150.txt

By comparing those four files you can identify the changes that have to be done.

4) I prepared a patcher for replacing the Spanish translation strings with numbers.

I am very interested in translating the catalan for each new version. I was expecting your tools to learn. I want to study it to see if I can translate it myself .

thank you very much

Last edited by surquizu; 06-11-2015 at 05:01 PM.
surquizu is offline   Reply With Quote
Old 06-11-2015, 05:09 PM   #98
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by surquizu View Post
I am very interested in translating the catalan for each new version. I was expecting your tools to learn. I want to study it to see if I can translate it myself .

thank you very much
I did not find the time to finish my tools. Anyway, I will follow george.talusan's friendly advice. I just looked a little into lrelease, and it seems promising. I will do some tests tomorrow or at the weekend. With this approach, the length of the translation strings will not be restricted to the length of the original translations.
tshering is offline   Reply With Quote
Old 06-12-2015, 04:22 AM   #99
mietek81
Connoisseur
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 83
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
Oh man, that would be great news if string length would be no more of a problem! I gave up a bit on translating UI to polish as I found that to many strings would have to be shortened to much. And that kind of makes no sense..
mietek81 is offline   Reply With Quote
Old 06-12-2015, 10:07 AM   #100
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by mietek81 View Post
Oh man, that would be great news if string length would be no more of a problem! I gave up a bit on translating UI to polish as I found that to many strings would have to be shortened to much. And that kind of makes no sense..
It seems it works.
Attached Thumbnails
Click image for larger version

Name:	screen_003.png
Views:	305
Size:	59.8 KB
ID:	139226  
tshering is offline   Reply With Quote
Old 06-15-2015, 04:28 AM   #101
mietek81
Connoisseur
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 83
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
Quote:
Originally Posted by tshering View Post
It seems it works.
Nice! So can I ask you for a file with translation strings from firmware version 3.15.
mietek81 is offline   Reply With Quote
Old 06-15-2015, 04:52 AM   #102
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by mietek81 View Post
Nice! So can I ask you for a file with translation strings from firmware version 3.15.
Why not 3.16.0? There have been several changes.
tshering is offline   Reply With Quote
Old 06-15-2015, 05:52 AM   #103
mietek81
Connoisseur
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 83
Karma: 5414
Join Date: Mar 2013
Location: CK, Poland
Device: Kobo Glo, H2O
Well, I thought that 3.16 is only for Glo HD and Touch so most people are still using 3.15. But if there is a way to build translation for 3.16 and 3.15 without much work then I can do it this way. I wonder when 3.16 for other devices can be expected. Or is it safe to use 3.16 on other then those two mentioned readers?
mietek81 is offline   Reply With Quote
Old 06-15-2015, 06:23 AM   #104
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by mietek81 View Post
Well, I thought that 3.16 is only for Glo HD and Touch so most people are still using 3.15. But if there is a way to build translation for 3.16 and 3.15 without much work then I can do it this way. I wonder when 3.16 for other devices can be expected. Or is it safe to use 3.16 on other then those two mentioned readers?
There are several differences in the translation strings of 3.15 and 3.16. Therefore it would require some effort to update a translation file from 3.15 to 3.16 (or to "downdate" from 3.16 to 3.15). One will have to update the translation files for some future firmwares too. But since the necessary changes that needed to be done for the Touch to use the same style as the other supported models seem to be finished by now, I do not expect great changes in the near future.
It should be safe to use FW 3.16.0 on all models. Cf. the discussion in the Direct Links to Kobo Firmware thread.
I will upload the translation file sometime during this day.

Last edited by tshering; 06-15-2015 at 06:27 AM.
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T3 Update firmware,to change interface LANGUAGE sbwtxj Sony Reader 51 05-26-2015 04:56 PM
Hanvon C18: how do you set the interface language? Heba More E-Book Readers 1 05-18-2014 05:26 AM
User Interface Language - Preference item missing! jjenkov Sigil 5 07-06-2012 07:27 AM
Interface language Obywatelpw Calibre 7 05-20-2012 08:48 AM
MR interface language changed kovidgoyal Feedback 7 10-07-2011 10:39 PM


All times are GMT -4. The time now is 08:23 PM.


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