12-28-2011, 05:15 AM | #16 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Alright folks, here it comes: my attempt to make localization of the Java part of the KT easy. The idea is to have a single file containing all localizable strings, and to generate a single JAR from it. I have successfully tested the approach by translating a few strings and exporting the result to the Kindle, and it works. It's still a bit rough around the edges, but hey, this is a tool meant for hacking...
I guess that everyone seriously interested in translating can use this to base their work on. If you're on Linux, it should work out of the box. I haven't tested it on Windows, but in principle a working Perl installation (e.g. ActiveState Perl) and a standards-compliant zip executable should do. Be sure to read the included README! Ready... set... go! |
12-28-2011, 05:21 AM | #17 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
@diba:
Yes, I have checked, re-checked and verified this: The internal organization of the Kindle 4 is substantially different from the Kindle Touch one, so it is generally not possible to re-use files between devices. I was also speculating about it, but it just isn't possible. |
Advert | |
|
12-28-2011, 09:15 AM | #18 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
@ixtab: nice work - makes things really easier
I still suggest to organize translation work - it would be dissipated time if more than one person is creating translation strings for same device, language and ID. So I suggest that people who wants to translate for a certain language and device should say this here and work together... I'd help by translating in German BTW, which encoding is needed for the "translation.txt"? Would UTF-8 be sufficient? |
12-28-2011, 10:44 AM | #19 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
AAAAAARRRGGGGLLL!
I think I bricked my KT device That's what I did: I copied the above mentioned file "locale-base.jar" to "/opt/amazon/ebook/lib/" and restarted the device. The showed International settings where there and I was able to change my keyboard to "German" (other International settings still only contained US English). Then I copied the file "default.properties" to "de.properties" in "/opt/amazon/ebook/config/locales/" and edited it (directly on the device with "vi"). Then I went to my PC, created a "translate_de_DE.txt" as suggested in the README.txt: Code:
3-join.pl de_DE KindleTouch > translate_de_DE.txt Code:
4-create.pl de_DE translate_de_DE.txt locale-de_DE.jar zip Now it happened: it hangs at the "tree image" and does not continue Any ideas what's going on and above all to make it boot again? EDIT: USB connection still works - I currently tried to edit the runme.sh script and remove the locale-de_DE.jar file. But it still does not show me any changes at screen Here's the content of my runme.sh: Code:
mntroot rw touch /mnt/us/rmlog.txt rm /opt/amazon/ebook/lib/locale-de_DE.jar >> /mnt/us/rmlog.txt 2>&1 mntroot ro Last edited by MatzeMatz; 12-28-2011 at 11:00 AM. Reason: More information |
12-28-2011, 10:44 AM | #20 | |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Sticking with the thought of github, it may well make sense to provide facilities for other localizations as well. I doubt that everyone wants their Kindle in german But since we're at it, I guess that providing some kind of "central" would benefit others as well. Errrmmm... good question. It depends on the target locale of course, but for all "standard" languages UTF-8 should do. Non-standard, by the previous blunt definition, includes RTL languages such as arabic or hebrew, or many asian languages. I have no idea about how the Kindle handles these. |
|
Advert | |
|
12-28-2011, 10:57 AM | #21 | |
Addict
Posts: 396
Karma: 33660
Join Date: Jul 2011
Device: Kindle 3, Kindle 4, Kindle PW, Nexus7 3G
|
Quote:
Enter to "Recovery Mode" by holding "HOME" button for a couple of seconds while restarting (exactly while the screen flashes from black to white before "Amazon Kindle" logo appearance), then you get this message: Zitat: Type ‘RESET’ to reset to factory defaults Type it then the system reset has been done successfully, and you have ability to use the Kindle normally again. For more details about recovery mode: http://blogkindle.com/2009/03/kindle-2-recovery-mode/ |
|
12-28-2011, 11:14 AM | #22 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Ouch.
I swear that all the modifications I suggested did no harm to my device and should have been safe to apply on yours. Anyway, you may want to try cold-booting the device (Holding the power button for a veeeeeeeery long time, like 30s). Maybe that helps. Otherwise, https://www.mobileread.com/forums/sho...d.php?t=161806 might be useful. Hope you get it working again. |
12-28-2011, 11:16 AM | #23 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
@diba: Hmm - the procedure for the recovey mode is for Kindle2.
Should it also work for Kindle Touch? At least it does not work here The screen does not change at all - it stays at the "Kindle" image with the tree. And it does not flash. When I disconnect the device from PC and then hold the On-/Off button, the LED next to it flashes green an then went off - I suppose the device switches off then? I'm not sure with that because it reappears really fast again as drive when I plug it in my PC again. (and it does not matter if I press the home button or not while pressing the on-/off switch) Last edited by MatzeMatz; 12-28-2011 at 11:17 AM. Reason: Additional information |
12-28-2011, 11:28 AM | #24 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
@ixtab: I now pressed the power button a loooong time, about 40s
Nothin happens. After holding the power button such a long time, releasing it and pressing it again, the screen flashes - but still no change in behaviour (and the image with the tree is still present after flashing)... |
12-28-2011, 11:38 AM | #25 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Does the device exhibit any behavior at all? Like connecting as a USB drive to your computer?
|
12-28-2011, 11:51 AM | #26 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
I've also played with localization, but it was before ixtab announced his practical success, so I've moved on my own way. Before the "brick" I've placed additional files at /opt/amazon/ebook/config/locales, tried to change default.properties (with discarding all the changes before "hard reset") and also tried to debug blanket process with breakpoint at langpicker.so. I think there are two possible ways for recovery:
Now, the second method requires further investigation with deep knowledge in Linux and it's booting (and I don't know whether someone moves in this way), so only the first method is ready for "easy" use. But maybe you'll discover another way to recover. I'll be very glad if you will. |
|
12-28-2011, 11:57 AM | #27 |
Enthusiast
Posts: 27
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
|
It does connect as a massstorage device via USB.
But it doesn't seem to call the runme.sh script which I put there and it also doesn't react on an ENABLE_DIAGS file which I put on the device. WiFi is also not working - and therefore I'm also unable to ssh via the WLAN-IP Does anybody know at which stage it stops working? What does the screen flashing (and restopping at Kindle image) mean? |
12-28-2011, 12:24 PM | #28 | |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
I don't know for sure, but I assume that it is *before* the framework starts to work (i.e. before java even starts). Thus, the locale-de_DE.jar would not matter in your case at all, because it wouldn't even be considered. This is all speculation, but it *may* be blanket choking on the locale definitions. I saw it acting awkward when /usr/share/locale/de did not contain all the files contained in /usr/share/locale/en. Therefore, if you have any chance of mofiying the internal filesystem, I'd suggest to either "cp -r /usr/share/locale/en /usr/share/locale/de", or to reset the /var/local/java/prefs/com.amazon.ebook.framework/prefs locale value to "en_US". The only problem is how to do this with the limited access that you currently have. Honestly, I don't know |
|
12-28-2011, 12:28 PM | #29 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
|
|
12-28-2011, 12:39 PM | #30 | |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
The problem is that in this particular case, it's not necessarily enough to only know the string that you must translate. Rather, it's much more helpful to also have some context around it (even if that's just comments). In the end, it seems to me that a classical source control system would do better at this task. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 3 localization | JirkaS | Kindle Developer's Corner | 287 | 05-20-2018 10:08 AM |
[K3] Physical keyboard localization | Sir Alex | Kindle Developer's Corner | 112 | 05-19-2018 11:23 PM |
Kindle 4 (no touch) GUI Localization | Sir Alex | Kindle Developer's Corner | 43 | 09-13-2013 07:19 AM |
Keyboard localization (hack) | Sir Alex | Kindle Developer's Corner | 72 | 04-16-2013 03:05 PM |
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch | jbcohen | Which one should I buy? | 4 | 06-18-2011 07:58 PM |