![]() |
#226 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
I just did all of what I announced, checked in the sources, and updated the first post. Interestingly enough, the binary packages even end up being a bit smaller than expected:
Code:
$ zipinfo locales-5.0.0-20120131-NEW.zip Archive: locales-5.0.0-20120131-NEW.zip Zip file size: 1684941 bytes, number of entries: 23 -rw-r--r-- 3.0 unx 988 tx defX 12-Jan-31 21:31 README.txt -rw-r--r-- 3.0 unx 83769 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-cs_install.bin -rw-r--r-- 3.0 unx 1223 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-cs_uninstall.bin -rw-r--r-- 3.0 unx 189264 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-de_install.bin -rw-r--r-- 3.0 unx 1214 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-de_uninstall.bin -rw-r--r-- 3.0 unx 150892 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-es_install.bin -rw-r--r-- 3.0 unx 1217 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-es_uninstall.bin -rw-r--r-- 3.0 unx 144047 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-et_install.bin -rw-r--r-- 3.0 unx 1218 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-et_uninstall.bin -rw-r--r-- 3.0 unx 168216 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-eu_install.bin -rw-r--r-- 3.0 unx 1216 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-eu_uninstall.bin -rw-r--r-- 3.0 unx 156262 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-hr_HR_install.bin -rw-r--r-- 3.0 unx 1213 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-hr_HR_uninstall.bin -rw-r--r-- 3.0 unx 193219 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-hu_install.bin -rw-r--r-- 3.0 unx 1213 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-hu_uninstall.bin -rw-r--r-- 3.0 unx 182627 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-it_install.bin -rw-r--r-- 3.0 unx 1213 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-it_uninstall.bin -rw-r--r-- 3.0 unx 157173 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-pl_install.bin -rw-r--r-- 3.0 unx 1220 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-pl_uninstall.bin -rw-r--r-- 3.0 unx 199203 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-ru_RU_install.bin -rw-r--r-- 3.0 unx 1219 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-ru_RU_uninstall.bin -rw-r--r-- 3.0 unx 44141 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-th_install.bin -rw-r--r-- 3.0 unx 1215 bx defX 12-Jan-31 21:31 update_5.0.0-20120131-th_uninstall.bin 23 files, 1683182 bytes uncompressed, 1680303 bytes compressed: 0.2% ![]() Automatic bundling will start using the new method on the next run, bit if you're impatient, I've created a locales-5.0.0-20120131-NEW.zip bundle. Quote:
|
|
![]() |
![]() |
![]() |
#227 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
In the mean time, I dared to make "the big move": I installed the 5.0.3 update on my device.
Much to my surprise, there wasn't a single complaint. The update simply got installed without any problems, so I'm on 5.0.3 now ![]() After a bit of caretaking, I looked into the parts relating to localization.
The changes concerning Java properties are: Code:
$ diff -burN /tmp/kt/501/ /tmp/kt/503/ diff -burN /tmp/kt/501/com/amazon/ebook/booklet/reader/resources/ReaderResources.properties /tmp/kt/503/com/amazon/ebook/booklet/reader/resources/ReaderResources.properties --- /tmp/kt/501/com/amazon/ebook/booklet/reader/resources/ReaderResources.properties 2012-01-31 22:25:57.062290769 +0100 +++ /tmp/kt/503/com/amazon/ebook/booklet/reader/resources/ReaderResources.properties 2012-01-31 22:26:21.642326813 +0100 @@ -17,6 +17,12 @@ font.menu.label.wordsperline=Words Per Line\: font.menu.text=Aa font.menu.title=Fonts +font.menu.typeface.altlist[0]=alternate1 +font.menu.typeface.altlist[1]=alternate2 +font.menu.typeface.altlist[2]=alternate3 +font.menu.typeface.display.altlist[0]=Font A +font.menu.typeface.display.altlist[1]=Font B +font.menu.typeface.display.altlist[2]=Font C font.menu.typeface.display.list[0]=regular font.menu.typeface.display.list[1]=condensed font.menu.typeface.display.list[2]=sans serif In summary this means that our current translation state ("5.0.0") will work perfectly well with all Kindle Touch versions, including 5.0.3. I do not see a need to create a new release/tag/version/whatever at this moment. I'm actually in favor of including ("backporting") these resources into the "5.0.0" release: their presence will not do any harm to older firmwares, and we spare ourselves from needless branching/versioning and user confusion ("What? I have a device that says 'Kindle Touch', and I want it in my language. Which freaking package do I have to download?!"). Just my opinion though, so I didn't commit anything yet and I'm open to other proposals. Last edited by ixtab; 01-31-2012 at 05:43 PM. Reason: typo |
![]() |
![]() |
Advert | |
|
![]() |
#228 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
ixtab,
I support the idea of backporting the changes if it won't break current translation. As for newer versions of firmware, I think we can create a script that would install appropriate version of localization based on firmware if we include all of them. That, of course, would be needed only if we won't be able to backport upcoming changes as well. eureka, I can give your script a try on my KT. |
![]() |
![]() |
![]() |
#229 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
@JustAMan: did you try to run the Java tool again? (git pull etc. before, of course). Do you still get errors, and if so, which ones?
|
![]() |
![]() |
![]() |
#230 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Nah, didn't get to my computer this evening. I'm writing this post from my smartphone before I go sleep :-)
|
![]() |
![]() |
Advert | |
|
![]() |
#231 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
I am fully supporting idea of having unified update bundle for all firmware versions (as long as it's possible). And I have a mixed feelings (and a deep misgivings) about the idea to not separate resources from different firmware versions in Git repo and Transifex.net just because of introduced changes are small and could be easily backported. I'd like to see src/5.0.0/framework/... as-is and create src/5.0.3/framework/.../ReaderResources.properties But your solution is the simplest working. So the label "5.0.0" at Git repo and Transifex.net (as a sub-directory in repo, part of slug/name of resource at Transifex) will be turned into misleading. It will be not the 5.0.0 anymore. We have to:
It's on js-tool branch at tool/js_resources. There is a README there. |
|
![]() |
![]() |
![]() |
#232 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 396
Karma: 33660
Join Date: Jul 2011
Device: Kindle 3, Kindle 4, Kindle PW, Nexus7 3G
|
I am running the translation since weeks on my 5.0.3 ... could have told you ;-)
|
![]() |
![]() |
![]() |
#233 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Hmm, what if we make separate 5.0.3 branch that would contain only changes from 5.0.0, and change bundling so it would first get resources for 5.0.0, pack 5.0.0 .tar.gz, then take changes for 5.0.3, pack them to another .tar.gz and so on. That way we would have several .jar/whatever files for each locale numbered by framework version.
The script that is inside install.bin should install the one that is related to current firmware version. |
![]() |
![]() |
![]() |
#234 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Besides, I like idea about placing resources from different firmware versions in separate Git branches. This way 5.0.3 could be branched from 5.0.0. It is appealing for me somehow, though I can't say for sure, why... I'll try to consider it carefully. |
|
![]() |
![]() |
![]() |
#235 |
Groupie
![]() ![]() Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
No, what I'm saying is, currently we have, say, locale-ru_RU.jar in update-blala-ru_RU-install.bin
I propose having locale-5.0.0-ru_RU.jar, locale-5.0.3-ru_RU.jar, etc. That would bloat a bit the size of updates but it would let us stop worrying about incompatible (i.e. those we'd be unable to backport) changes in the properties. If you object having different, but compatible, .jars, then we can still use different .jars for incompatible changes, like having locale-5.0.0-5.0.3-ru_RU.jar and locale-5.0.4-5.x.x-ru_RU.jar (this is named pretending 5.0.4 breaks backward compatibility). I still think we should put different .properties to different Git branches, however that probably implies we'd have to have full copies of source properties there, not only differences (I dunno if it's possible in git to "checkout" in the same folder two branches at the same time). Last edited by JustAMan; 02-01-2012 at 08:24 AM. Reason: added stuff |
![]() |
![]() |
![]() |
#236 | ||
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
I'm thinking that what I'm saying is pretty obvious for you. So we're arguing about obvious things ![]() (Though, I can't speak for ixtab for sure. I can't read his mind ![]() What matters for now (for me) is how to place that single changed file at Git repo and Transifex. Should we just replace the same file in 5.0.0 sub-directory with file from 5.0.3 firmware as ixtab proposed (and I've agreed because it's simple working solution)? Or should we introduce new 5.0.3 sub-directory and place new file there (as I'd like it to be because it provides sensible separation of files from different firmwares)? Quote:
|
||
![]() |
![]() |
![]() |
#237 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
OK, I'm jumping back in and admit I actually did clean up both in git and on Transifex
![]() Revision https://bitbucket.org/katey_hack/kin...t/0814057c2c36 is the last one based purely on 5.0.0, later revisions involve removal of some resources (containing only blacklisted entries), as well as inclusion of the single update there. In other words: I completely agree with eureka, and suggest to tag 0814057c2c36 as 5.0.0, and continue the new one as 5.0.3. About the naming: IMO your second proposal (src/5.0.3/{framework,locale,pillow,waf}) is best. Since you're the "master of slug-naming tools" ![]() Thanks! |
![]() |
![]() |
![]() |
#238 | ||
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#239 |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Yupp!
![]() |
![]() |
![]() |
![]() |
#240 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |