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 04-08-2015, 06:47 AM   #16
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
Maybe I should have mentioned this earlier. All the data blocks concerned with the translation strings start with the sequence 3CB86418CAEF (allready decompressed). Therefore you need only read the first 6 byte to decide whether to continue decompressing this stream or skip to the next stream.
tshering is offline   Reply With Quote
Old 04-09-2015, 07:33 AM   #17
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
AxaRu,

I do not understand anything (I am not computer programmer), but I'm very interested in how to translate the interface. I want my aura H2O in catalan

I will be grateful if reports its progress and if you get it, help to me.

thanks
Hi surquizu,
I got interested in this project. If you like we can start with a small test. Important points are:
  • One has to sacrifice one of the supported languages for the new one.
  • The length of the translation must not be longer than the original expression.
  • There is no guarantee that one can apply the same patch to future firmwares.

I guess for Catalan it would be best to sacrifice Spanish. One reason is that Spanish seems to have rather long expressions. And I think that, as long as not all strings are translated, a mixture of Catalan and Spanish is more convenient as a mixture of Catalan and English or German and so on. If however you think it is better to sacrifice another language, please tell me.

I prepared a file with the Spanish strings. Each line has the following format:
Code:
function_identifier{ref}reference_string{tr}spanish_expression
In order to provide the Catalan translation, one would have to replace spanish_expression by the Catalan translation. For testing purposes, it would be nice if you could provide some sample translations of the main menus or anything that is easy to check (that excludes for instance achievments). If we decide to continue after this test, I will try to provide some tool that helps inputting the translation.

I did a mini test myself. I simply reversed some strings of the German interface (for instance Extras > Sartxe). I attach the image and the patch file as an example.
Attached Thumbnails
Click image for larger version

Name:	screen_20150408_201434.png
Views:	349
Size:	52.3 KB
ID:	137003   Click image for larger version

Name:	screen_20150408_201745.png
Views:	322
Size:	67.1 KB
ID:	137004  
Attached Files
File Type: zip nickel3131_369E5C_translation_es.zip (37.5 KB, 205 views)
File Type: txt home_de_reversed.txt (235 Bytes, 191 views)

Last edited by tshering; 04-09-2015 at 07:55 AM.
tshering is offline   Reply With Quote
Advert
Old 04-09-2015, 09:02 AM   #18
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
Hi tshering,

So Perfect! I will collaborate on the project. It is very important to me if i can to use my language.

I would rather sacrifice another language (Italian for example) so i have in the reader the spanish and the catalan (the two languages in use in Spain), but it is true that it is better to mix with Spanish if there are parts that can not be translated.

I will locate the texts of main menu and translate without increasing the original length.

Thanks

Thanks
surquizu is offline   Reply With Quote
Old 04-09-2015, 06:43 PM   #19
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
Hi Tshering,

Quote:
For testing purposes, it would be nice if you could provide some sample translations of the main menus or anything that is easy to check (that excludes for instance achievments).
Attached file with some sample translations.

Quote:
The length of the translation must not be longer than the original expression.
The limit of the characters is for the total of the translations or for each text string? There are some word in catalan without short translation in Spanish.

Quote:
If we decide to continue after this test, I will try to provide some tool that helps inputting the translation.
I use microsoft excel for count the characters of each text string. Its easy.
Attached Files
File Type: txt testing catalan.txt (5.7 KB, 191 views)
surquizu is offline   Reply With Quote
Old 04-10-2015, 05:28 AM   #20
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
Attached file with some sample translations.
Thank you!

Quote:
Originally Posted by surquizu View Post
The limit of the characters is for the total of the translations or for each text string? There are some word in catalan without short translation in Spanish.
The limit is for each text string. I am not sure whether we can increase the number of characters. I will try a little at the weekend. But I do not have much hope. In some cases you might find other ways. For instance: <p>Pàgina %1 <span style='font-style:italic'>de</span>%2</p>. There you are sacrificing a space after "de". Other possibilities: abbreviate "Pàgina", or you could dispense with the italic style of "de", or maybe shift the style into <p>, so that the whole string is in italics.

Quote:
Originally Posted by surquizu View Post
I use microsoft excel for count the characters of each text string. Its easy.
If this is easy to do, even better.

To try the current result, please use the Bad Eyes package for 3.13.1. Copy nickel_3131_369E5C.translation_es_ct.zlib into the folder 3.13.1_source. In the package, there is also the patch file nickel.txt. It contains only one patch job "<patch>name=overwrite es with ca ... </patch>". You can replace your nickel.txt by the new one (and lose all your other patch jobs), or copy the new patch job to your nickel.txt.
Attached Files
File Type: zip 3.13.1_testing_catalan.zip (144.9 KB, 180 views)
tshering is offline   Reply With Quote
Advert
Old 04-10-2015, 08:51 AM   #21
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
Thank you!

The limit is for each text string. I am not sure whether we can increase the number of characters. I will try a little at the weekend. But I do not have much hope. In some cases you might find other ways. For instance: <p>Pàgina %1 <span style='font-style:italic'>de</span>%2</p>. There you are sacrificing a space after "de". Other possibilities: abbreviate "Pàgina", or you could dispense with the italic style of "de", or maybe shift the style into <p>, so that the whole string is in italics.

I have the problem mainly in three important words of the interface. Is not possible abbreviate:

Books
spanish: Libros
catalan: Llibres

Read
spanish: Leído
catalan: Llegit

Collection
spanish: Colección
catalan: Col·lecció

Quote:
To try the current result, please use the Bad Eyes package for 3.13.1. Copy nickel_3131_369E5C.translation_es_ct.zlib into the folder 3.13.1_source. In the package, there is also the patch file nickel.txt. It contains only one patch job "<patch>name=overwrite es with ca ... </patch>". You can replace your nickel.txt by the new one (and lose all your other patch jobs), or copy the new patch job to your nickel.txt.

Thanks, I will try it on my house later.
surquizu is offline   Reply With Quote
Old 04-10-2015, 09:43 AM   #22
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 have the problem mainly in three important words of the interface.
This is a real problem. In none of the supported languages has the word for books more than six characters.
tshering is offline   Reply With Quote
Old 04-10-2015, 01:12 PM   #23
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
I think the test has worked! :-)

What is the next step?


Quote:
This is a real problem. In none of the supported languages has the word for books more than six characters.
if you can not add more characters, I'll write "eBooks".
Attached Thumbnails
Click image for larger version

Name:	screen_009.png
Views:	317
Size:	143.1 KB
ID:	137068   Click image for larger version

Name:	screen_008.png
Views:	267
Size:	113.3 KB
ID:	137069   Click image for larger version

Name:	screen_007.png
Views:	272
Size:	241.4 KB
ID:	137070  
surquizu is offline   Reply With Quote
Old 04-10-2015, 03:57 PM   #24
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 think the test has worked! :-)

What is the next step?




if you can not add more characters, I'll write "eBooks".
I feel I cannot add more characters!

So the problem of the character limit does not stop you from continuing? With regard to character limitation, it would be better to overwrite the German translation strings (at least this suggest the lists of average word length of different languages that I consulted on the web). But as long as not a real large part is translated into Catalan, the mixture of Catalan and German might not please you. Therefore, we might continue to patch the Spanish translation strings, and you note down those cases that create problems. At the last stage, when you have translated the most part, you can apply the patch to the German translation strings and see how many problems can be solved that way.

For now I would propose you continue translating the list and when you like you post it and I will create the nickel_XXXX_XXXXXX.translation_es_ct.zlib file (this file will have to be created for each new firmware). I will try to provide a tool that helps you creating this file by yourself, but I am not yet ready to do it.

Last edited by tshering; 04-10-2015 at 04:01 PM.
tshering is offline   Reply With Quote
Old 04-10-2015, 05:23 PM   #25
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
Perfect. I'll keep translating the text strings (they are 1950). I'll do with inmaginación. :-)
surquizu is offline   Reply With Quote
Old 04-10-2015, 05:35 PM   #26
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'll do with inmaginación. :-)
This is the best way!

Quote:
Originally Posted by surquizu View Post
Perfect. I'll keep translating the text strings (they are 1950).
If you have finished those, I can provide some more strings. Until now, I have only extracted those shorter than 300 bytes.

Seriously, I would propose you post your translations in regular intervals. So that we see immediately, if there are any problems. It would be sad if you finish the whole translation and it turns out that it does not work.
tshering is offline   Reply With Quote
Old 04-10-2015, 09:36 PM   #27
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
This is the best way!

If you have finished those, I can provide some more strings. Until now, I have only extracted those shorter than 300 bytes.

Seriously, I would propose you post your translations in regular intervals. So that we see immediately, if there are any problems. It would be sad if you finish the whole translation and it turns out that it does not work.
Ok. First part:
Attached Files
File Type: txt part1.txt (59.0 KB, 189 views)
surquizu is offline   Reply With Quote
Old 04-11-2015, 01:11 PM   #28
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
Ok. First part:
Wow, I did not expect you to be so quick.
The only important thing that I noted was that the quotation marks in the {ref} part were deleted in:
Code:
AchievementText{ref}"The harder the battle the sweet of jah victory." - Bob Marley{tr}Com més dura és la batalla, més dolça és la victòria - Bob Marley
Please restore them in your version of the file, otherwise this string will not be handled.

The other thing is that " %" got lost in:
Code:
FTEUpgradeController{ref}0 %{tr}0 %
Therefore, this string also does not get processed, but since there is no change to the translation in this case (or did you delete " %" in the translation on purpose?), it does not really matter. I just mention it to make you aware of it.
Attached Files
File Type: zip 3.13.1translate_es_ct_part01.zip (145.2 KB, 156 views)

Last edited by tshering; 04-11-2015 at 01:46 PM.
tshering is offline   Reply With Quote
Old 04-11-2015, 08:36 PM   #29
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
Wow, I did not expect you to be so quick.


Yesterday I had time.
Quote:
The only important thing that I noted was that the quotation marks in the {ref} part were deleted in:
Code:
AchievementText{ref}"The harder the battle the sweet of jah victory." - Bob Marley{tr}Com més dura és la batalla, més dolça és la victòria - Bob Marley
Please restore them in your version of the file, otherwise this string will not be handled.

The other thing is that " %" got lost in:
Code:
FTEUpgradeController{ref}0 %{tr}0 %
Therefore, this string also does not get processed, but since there is no change to the translation in this case (or did you delete " %" in the translation on purpose?), it does not really matter. I just mention it to make you aware of it.
Excel has changed some format automatically. I'll watch.
surquizu is offline   Reply With Quote
Old 04-12-2015, 06:29 AM   #30
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
Excel has changed some format automatically. I'll watch.
Yes, we have to watch out at this early phase of the project for possible sources of errors. I guess there might also be some problems how I apply the patch. Therefore, if you see some unexpected results, please report them.
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:17 PM.


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