01-24-2012, 02:13 PM | #151 | ||
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Code:
import array, os, sys def dm(s): arr = array.array('B',s) for i in xrange(len(arr)): b = arr[i] ^ 0x7A arr[i] = (b >> 4 | b << 4) & 0xFF return arr.tostring() def extract(binname): f = open(binname, "rb") f.seek(254) open(os.path.splitext(binname)[0] + ".tar.gz", "wb").write(dm(f.read())) extract(sys.argv[1]) Quote:
But if you are sure that locale definitions affects only console (and no other aspect), then I have no objections for using of en_US. Even if you are not sure, I have no objections at all. I understand that it will be a lot of work with unlikely noticeable effect. And I can compile and install ru_RU by myself Also, if you are decided to refactor locale stuff in separate bundle, please don't add it to bundle with JAR that override Amazon interface. Make it really separate bundle. I understand that installing that JAR is safe but it should be optional. What if Amazon will update UI so that JAR should be uninstalled? Then I'll (as user) apply bundle for JAR uninstalling, but, oops, it will be uninstalled with locale stuff. Symlinks will be broken |
||
01-24-2012, 02:38 PM | #152 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Deleting of /opt/amazon/ebook/lib/locale-ru_RU.jar resolves the problem with white screen and not reacting to Menu clicking. I've used method with data.tar.gz and RUNME.sh to delete JAR. (As I've mentioned hard reset worked fine and Kindle could be seen as USB disk.) |
|
Advert | |
|
01-24-2012, 03:22 PM | #153 |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
What did you mean by "helped", returned his Kindle to en_US locale or what?..
Hmm, I've figured almost something myself here, but I thought offset should be 64 and I didn't get that it was .tar.gz file Thanks. Would you also mind posting a link on where I can get tools to sign files? I mean to produce .sig files, they seem to depend on file contents (like hash or CRC or whatever) Last edited by JustAMan; 01-24-2012 at 03:42 PM. |
01-24-2012, 04:08 PM | #154 | ||
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Quote:
|
||
01-24-2012, 07:14 PM | #155 |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Hmm, took a look into locale-ru_RU.jar and locale-de.jar and found that property
Code:
com.amazon.agui.swing.resources In German it has 31 line, in Russian only 22! I don't think it should differ that way... E.g. in particular Russian file lacks line "action.switch_app.home.target=com.lab126.booklet. home", that seems definitely wrong to me. Whole list of things Russian .properties file lacks: Code:
HeaderBar.separator action.switch_app.store.target PendingContentItemView.stateTemplate action.switch_app.settings.target action.switch_app.ad.target action.switch_app.reader.target HeaderBar.primary.format Header.number.template action.switch_app.home.target Last edited by JustAMan; 01-24-2012 at 07:29 PM. |
Advert | |
|
01-25-2012, 01:13 PM | #156 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
@eureka: point taken. I updated the locale-base-v2.zip to include several installers/uninstallers.
@JustAMan: *missing* entries in a locale file should normally not be an issue (because they will be taken from the default entry then). However, *wrongly translated* ones are probably the cause of all this weirdness. I don't have the time to do it, but try to write a script which finds entries where - the german "translation" is the *same* as the original en_US one - and the russian one is *different* from the original. These are likely to cause problems. Update: This task will probably be much simpler if you work on the source .properties files ("tx pull -a" first, then look around the files). I'm only referring to the de translation as the "reference implementation" because it seems to be working correctly for everyone, and it's 100% complete. Last edited by ixtab; 01-25-2012 at 01:24 PM. |
01-25-2012, 06:17 PM | #157 |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Okay, I'll try doing this.
Strange though that this ru_RU update works on your device and eureka's, but not on mine... |
01-25-2012, 06:29 PM | #158 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
I agree that it's strange indeed, however I guess that both eureka and I have modded our devices to a degree where they hardly resemble stock Kindles anymore. In fact, I'm afraid of applying any update because I'm pretty sure that it'll break, and wondering about how to get it back into a "factory-fresh" state. I did make backups of all partitions, but only after already tampering around with some files (If anyone could provide me with as-pristine-as-possible dd dumps of mmcblk0p{1,2,3,4} for 5.0.1, I'd be more than grateful!).
That said, I thought that eureka was also experiencing the white home screen issue? Last edited by ixtab; 01-25-2012 at 06:45 PM. Reason: typo |
01-25-2012, 06:41 PM | #159 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
It was another user (not me and not JustAMan) who (like JustAMan) got white home screen from the start and even hard reset didn't helped him. |
|
01-25-2012, 06:47 PM | #160 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Eheee... eureka, what's the status of the JS localization part?
|
01-25-2012, 07:05 PM | #161 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
As usual... Do you want me to beg more time? OK, if you are sure you can't wait, then you can make .properties and upload them on Transifex. Metadata is neccessary only for compiling. And while I'll be working on implementation of metadata extracting and compiling, translators will translate... But remember, it's only emergency plan, be wise.
|
01-25-2012, 07:16 PM | #162 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
|
|
01-25-2012, 07:36 PM | #163 | |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Quote:
* jailbreak * launcher * russian keyboard * ru_RU and de localizations * simple screensaver (by yifan) * usb network It's 5.0.0 btw. Interested? |
|
01-25-2012, 07:41 PM | #164 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Let us go away from this cursed topic (Until I finish the tool. Soon.). Did you thought about transferring bundling infrastructure to some web-server? I can suggest dotcloud.com. It has free plan with 2 services (say, frontend and database), many available frontend stacks (Java and Python included), SSH access, cron and much more... Well, I wanted to setup it by myself... But seems like it could take up to year or so for me...
|
01-25-2012, 08:21 PM | #165 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Why so? |
|
|
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 |