Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2012, 11:37 AM   #196
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by JustAMan View Post
No problem, just provide some sample output like ixtab has done. I'm not that familiar with UserJS stuff (btw it implies that translator uses Opera, right? hehe, that's good I'm Opera fan)
JSON is easy in Python, you know ("import json" and you're almost there )
With ixtab's plan to remove blacklisted entries from Transifex there will be no need in such a UserJS, so I am recalling my suggestion (but, yes, it would be worked in Opera. And most other browsers.)

Quote:
Originally Posted by ixtab View Post
As to the system locale issue, I'm currently installing a VM with all existing utf8 locales. It's still installing, but I'll post here once I figured out the implications of trying to add the full system locale to each package. Two things are already sure for now:
  • It will bloat each installer package by (roughly) a factor of 10.
  • It seems like there isn't a utf8 system definition for every single territory out there. From memory, all current translations should have an existing corresponding UTF8 locale, but this cannot be guaranteed for all locales.

So, any thoughts or suggestions?
Bloating of update bundle from ~100kB up to ~1-2MB is of no problem, I guess. Isn't it?

And we could distribute just a sources for locale definition: UTF-8 charmap and appropriate locale's input files. Then compile locale sources into a locale definition right at KT
eureka is offline   Reply With Quote
Old 01-29-2012, 12:12 PM   #197
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
@eureka:

Here is the output for all locales.
Spoiler:

46M .
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 aa_DJ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 af_ZA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 an_ES.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_AE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_BH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_DZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_EG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_IQ.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ar_JO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_KW.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ar_LB.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_LY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_MA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_OM.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_QA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_SA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_SD.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ar_SY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_TN.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_YE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 as_IN.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ast_ES.tgz
-rw-r--r-- 1 root root 282K 2012-01-29 17:55 az_AZ.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 be_BY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 bg_BG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 br_FR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 bs_BA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ca_AD.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ca_ES.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 ca_FR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 ca_IT.tgz
-rw-r--r-- 1 root root 67K 2012-01-29 17:56 cs_CZ.tgz
-rw-r--r-- 1 root root 311K 2012-01-29 17:56 cy_GB.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 da_DK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_AT.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_BE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 de_CH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 de_DE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_LI.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_LU.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 el_CY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 el_GR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_AU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_BW.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_CA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_DK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_GB.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_HK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_IE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_NZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_PH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_SG.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_US.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_ZA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_ZW.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:56 eo.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:56 eo_US.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 es_AR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 es_BO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 es_CL.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_CO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_CR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_DO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_EC.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_ES.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_GT.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_HN.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_MX.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_NI.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PY.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_SV.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_US.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_UY.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_VE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 et_EE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 eu_ES.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:57 eu_FR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 fi_FI.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 fo_FO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_BE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_CA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_CH.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_FR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_LU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 ga_IE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 gd_GB.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 gl_ES.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 gv_GB.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 he_IL.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 hr_HR.tgz
-rw-r--r-- 1 root root 314K 2012-01-29 17:57 hsb_DE.tgz
-rw-r--r-- 1 root root 313K 2012-01-29 17:57 hu_HU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 id_ID.tgz
-rw-r--r-- 1 root root 66K 2012-01-29 17:58 is_IS.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 it_CH.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 it_IT.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 iw_IL.tgz
-rw-r--r-- 1 root root 272K 2012-01-29 17:58 ja_JP.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ka_GE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 kk_KZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 kl_GL.tgz
-rw-r--r-- 1 root root 290K 2012-01-29 17:58 ko_KR.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:58 ku_TR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 kw_GB.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 la_AU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 lg_UG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 lt_LT.tgz
-rw-r--r-- 1 root root 66K 2012-01-29 17:58 lv_LV.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 mg_MG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 mi_NZ.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 mk_MK.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ms_MY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 mt_MT.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 nb_NO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 nl_BE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 nl_NL.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 nn_NO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 oc_FR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 om_KE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 pl_PL.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 pt_BR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 pt_PT.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ro_RO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ru_RU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 ru_UA.tgz
-rw-r--r-- 1 root root 67K 2012-01-29 17:58 sk_SK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 sl_SI.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 so_DJ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 so_KE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 so_SO.tgz
-rw-r--r-- 1 root root 311K 2012-01-29 17:59 sq_AL.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 st_ZA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 sv_FI.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:59 sv_SE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 tg_TJ.tgz
-rw-r--r-- 1 root root 50K 2012-01-29 17:59 th_TH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 tl_PH.tgz
-rw-r--r-- 1 root root 283K 2012-01-29 17:59 tr_CY.tgz
-rw-r--r-- 1 root root 282K 2012-01-29 17:59 tr_TR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 tt_RU.tgz
-rw-r--r-- 1 root root 307K 2012-01-29 17:59 uk_UA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 uz_UZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 wa_BE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 xh_ZA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 yi_US.tgz
-rw-r--r-- 1 root root 430K 2012-01-29 17:59 zh_CN.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 zh_HK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:59 zh_SG.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:59 zh_TW.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 zu_ZA.tgz


This would mean that we put 46 MB of locale definitions in the repository (one-time, these files don't change). I have never compiled a locale, but if you say you needed to pull loads of dependencies, then I'm strongly in favor of bundling already compiled files instead of compiling them on the Kindle.

The size is not a terribly big issue, except for the current way of providing localized daily snapshots via ge.tt.

@JustAMan:
The output looks fine, and I'm currently updating the Java stuff with it. One minor suggestion: could you make the output sorted? This is tremendously useful when scanning through it "manually". I'm currently using the little perl program shown below to sort it, but it'd be nice if you could include this in your tool.
Code:
open IN, "blacklist-de.txt" or die $!;

my %V;
my ($k, $v);
while (<IN>) {
	$_ =~ s/[\r\n]+$//;
	next if (/^\s*$/);
	if ($_ =~ /^\s*\/\//) {
		$k = $_;
	} else {
		$v = $_;
	}
	$V{$k} = $v;
}
close IN;

foreach $k(sort keys %V) {
	print "$k\n";
	print $V{$k}."\n";
}
(Yes, I'm still using the de locale, because a) i know it, and b) ru_RU is not at 100%, so does not include all strings).
ixtab is offline   Reply With Quote
Old 01-29-2012, 12:38 PM   #198
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
I don't know Perl and I'm scared by its syntax
So I may only guess what your script does. Am I right that it sorts lexicographically by "file path#property name=property value" string?

Assuming I was right deducing what your script does I reworked my checkit.py output.
Now it does:
1) sorting by folder name (e.g. com.amazon.*)
2) then by file name (e.g. BlogHomeWidget*)
3) then by property name

I also tried making the output better human-readable. Give it a try, I've just pushed it to bitbucket.

Quote:
(Yes, I'm still using the de locale, because a) i know it, and b) ru_RU is not at 100%, so does not include all strings).
Then you must be extra-cautious as you've already pointed out there's some stuff in de_DE locale that is translated, but still equal to en_US. For example some button labels which state "OK".
JustAMan is offline   Reply With Quote
Old 01-29-2012, 12:48 PM   #199
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
@eureka:

Here is the output for all locales.
Spoiler:

46M .
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 aa_DJ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 af_ZA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 an_ES.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_AE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_BH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_DZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_EG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_IQ.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ar_JO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_KW.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ar_LB.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_LY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_MA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_OM.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_QA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_SA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_SD.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ar_SY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_TN.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 ar_YE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 as_IN.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ast_ES.tgz
-rw-r--r-- 1 root root 282K 2012-01-29 17:55 az_AZ.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 be_BY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 bg_BG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 br_FR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:55 bs_BA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ca_AD.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:55 ca_ES.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 ca_FR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 ca_IT.tgz
-rw-r--r-- 1 root root 67K 2012-01-29 17:56 cs_CZ.tgz
-rw-r--r-- 1 root root 311K 2012-01-29 17:56 cy_GB.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 da_DK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_AT.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_BE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 de_CH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 de_DE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_LI.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 de_LU.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 el_CY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 el_GR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_AU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_BW.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_CA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_DK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_GB.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_HK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_IE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_NZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_PH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_SG.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_US.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:56 en_ZA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 en_ZW.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:56 eo.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:56 eo_US.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 es_AR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 es_BO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:56 es_CL.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_CO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_CR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_DO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_EC.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_ES.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_GT.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_HN.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_MX.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_NI.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_PY.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_SV.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 es_US.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_UY.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 es_VE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 et_EE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 eu_ES.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:57 eu_FR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 fi_FI.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 fo_FO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_BE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_CA.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_CH.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_FR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 fr_LU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 ga_IE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 gd_GB.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 gl_ES.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 gv_GB.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:57 he_IL.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:57 hr_HR.tgz
-rw-r--r-- 1 root root 314K 2012-01-29 17:57 hsb_DE.tgz
-rw-r--r-- 1 root root 313K 2012-01-29 17:57 hu_HU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 id_ID.tgz
-rw-r--r-- 1 root root 66K 2012-01-29 17:58 is_IS.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 it_CH.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 it_IT.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 iw_IL.tgz
-rw-r--r-- 1 root root 272K 2012-01-29 17:58 ja_JP.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ka_GE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 kk_KZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 kl_GL.tgz
-rw-r--r-- 1 root root 290K 2012-01-29 17:58 ko_KR.tgz
-rw-r--r-- 1 root root 305K 2012-01-29 17:58 ku_TR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 kw_GB.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 la_AU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 lg_UG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 lt_LT.tgz
-rw-r--r-- 1 root root 66K 2012-01-29 17:58 lv_LV.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 mg_MG.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 mi_NZ.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 mk_MK.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ms_MY.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 mt_MT.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 nb_NO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 nl_BE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 nl_NL.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 nn_NO.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 oc_FR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 om_KE.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 pl_PL.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 pt_BR.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 pt_PT.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ro_RO.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:58 ru_RU.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 ru_UA.tgz
-rw-r--r-- 1 root root 67K 2012-01-29 17:58 sk_SK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:58 sl_SI.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 so_DJ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 so_KE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 so_SO.tgz
-rw-r--r-- 1 root root 311K 2012-01-29 17:59 sq_AL.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 st_ZA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 sv_FI.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:59 sv_SE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 tg_TJ.tgz
-rw-r--r-- 1 root root 50K 2012-01-29 17:59 th_TH.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 tl_PH.tgz
-rw-r--r-- 1 root root 283K 2012-01-29 17:59 tr_CY.tgz
-rw-r--r-- 1 root root 282K 2012-01-29 17:59 tr_TR.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 tt_RU.tgz
-rw-r--r-- 1 root root 307K 2012-01-29 17:59 uk_UA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 uz_UZ.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 wa_BE.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 xh_ZA.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 yi_US.tgz
-rw-r--r-- 1 root root 430K 2012-01-29 17:59 zh_CN.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 zh_HK.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:59 zh_SG.tgz
-rw-r--r-- 1 root root 309K 2012-01-29 17:59 zh_TW.tgz
-rw-r--r-- 1 root root 310K 2012-01-29 17:59 zu_ZA.tgz


This would mean that we put 46 MB of locale definitions in the repository (one-time, these files don't change). I have never compiled a locale, but if you say you needed to pull loads of dependencies, then I'm strongly in favor of bundling already compiled files instead of compiling them on the Kindle.

The size is not a terribly big issue, except for the current way of providing localized daily snapshots via ge.tt.
Wow, 46 MB is a lot! So I've downloaded glibc-2.14 source and took a look at overall size of input files and UTF-8 charmap:
Spoiler:
input files:
Code:
6.3M    .
-rwxr-xr-x 1 a bit smaller    8419 May 31  2011 POSIX
-rwxr-xr-x 1 a bit smaller    7705 May 31  2011 aa_DJ
-rwxr-xr-x 1 a bit smaller    6528 May 31  2011 aa_ER
-rwxr-xr-x 1 a bit smaller    5941 May 31  2011 aa_ER@saaho
-rwxr-xr-x 1 a bit smaller    6647 May 31  2011 aa_ET
-rwxr-xr-x 1 a bit smaller    9603 May 31  2011 af_ZA
-rwxr-xr-x 1 a bit smaller   45653 May 31  2011 am_ET
-rwxr-xr-x 1 a bit smaller    3644 May 31  2011 an_ES
-rwxr-xr-x 1 a bit smaller    5917 May 31  2011 ar_AE
-rwxr-xr-x 1 a bit smaller    5994 May 31  2011 ar_BH
-rwxr-xr-x 1 a bit smaller    6000 May 31  2011 ar_DZ
-rwxr-xr-x 1 a bit smaller    6241 May 31  2011 ar_EG
-rwxr-xr-x 1 a bit smaller    5300 May 31  2011 ar_IN
-rwxr-xr-x 1 a bit smaller    5962 May 31  2011 ar_IQ
-rwxr-xr-x 1 a bit smaller    6803 May 31  2011 ar_JO
-rwxr-xr-x 1 a bit smaller    5968 May 31  2011 ar_KW
-rwxr-xr-x 1 a bit smaller    6805 May 31  2011 ar_LB
-rwxr-xr-x 1 a bit smaller    6016 May 31  2011 ar_LY
-rwxr-xr-x 1 a bit smaller    5971 May 31  2011 ar_MA
-rwxr-xr-x 1 a bit smaller    5962 May 31  2011 ar_OM
-rwxr-xr-x 1 a bit smaller    5965 May 31  2011 ar_QA
-rwxr-xr-x 1 a bit smaller    8531 May 31  2011 ar_SA
-rwxr-xr-x 1 a bit smaller    5965 May 31  2011 ar_SD
-rwxr-xr-x 1 a bit smaller    6845 May 31  2011 ar_SY
-rwxr-xr-x 1 a bit smaller    5971 May 31  2011 ar_TN
-rwxr-xr-x 1 a bit smaller    5965 May 31  2011 ar_YE
-rwxr-xr-x 1 a bit smaller    5644 May 31  2011 as_IN
-rwxr-xr-x 1 a bit smaller    3911 May 31  2011 ast_ES
-rwxr-xr-x 1 a bit smaller    7403 May 31  2011 az_AZ
-rwxr-xr-x 1 a bit smaller    5366 May 31  2011 be_BY
-rwxr-xr-x 1 a bit smaller    4348 May 31  2011 be_BY@latin
-rwxr-xr-x 1 a bit smaller    5727 May 31  2011 bem_ZM
-rwxr-xr-x 1 a bit smaller    7756 May 31  2011 ber_DZ
-rwxr-xr-x 1 a bit smaller    6319 May 31  2011 ber_MA
-rwxr-xr-x 1 a bit smaller    8614 May 31  2011 bg_BG
-rwxr-xr-x 1 a bit smaller    6562 May 31  2011 bn_BD
-rwxr-xr-x 1 a bit smaller    6353 May 31  2011 bn_IN
-rwxr-xr-x 1 a bit smaller    5416 May 31  2011 bo_CN
-rwxr-xr-x 1 a bit smaller    1594 May 31  2011 bo_IN
-rwxr-xr-x 1 a bit smaller    4647 May 31  2011 br_FR
-rwxr-xr-x 1 a bit smaller    1511 May 31  2011 br_FR@euro
-rwxr-xr-x 1 a bit smaller    6845 May 31  2011 bs_BA
-rwxr-xr-x 1 a bit smaller    5780 May 31  2011 byn_ER
-rwxr-xr-x 1 a bit smaller    1835 May 31  2011 ca_AD
-rwxr-xr-x 1 a bit smaller    4934 May 31  2011 ca_ES
-rwxr-xr-x 1 a bit smaller    1523 May 31  2011 ca_ES@euro
-rwxr-xr-x 1 a bit smaller    1351 May 31  2011 ca_FR
-rwxr-xr-x 1 a bit smaller    1381 May 31  2011 ca_IT
-rwxr-xr-x 1 a bit smaller    6553 May 31  2011 crh_UA
-rwxr-xr-x 1 a bit smaller   91464 May 31  2011 cs_CZ
-rwxr-xr-x 1 a bit smaller    5470 May 31  2011 csb_PL
-rwxr-xr-x 1 a bit smaller    5491 May 31  2011 cv_RU
-rwxr-xr-x 1 a bit smaller    7864 May 31  2011 cy_GB
-rwxr-xr-x 1 a bit smaller    7625 May 31  2011 da_DK
-rwxr-xr-x 1 a bit smaller    5088 May 31  2011 de_AT
-rwxr-xr-x 1 a bit smaller    1693 May 31  2011 de_AT@euro
-rwxr-xr-x 1 a bit smaller    4646 May 31  2011 de_BE
-rwxr-xr-x 1 a bit smaller    1489 May 31  2011 de_BE@euro
-rwxr-xr-x 1 a bit smaller    4761 May 31  2011 de_CH
-rwxr-xr-x 1 a bit smaller    6498 May 31  2011 de_DE
-rwxr-xr-x 1 a bit smaller    1409 May 31  2011 de_DE@euro
-rwxr-xr-x 1 a bit smaller    4802 May 31  2011 de_LU
-rwxr-xr-x 1 a bit smaller    1495 May 31  2011 de_LU@euro
-rwxr-xr-x 1 a bit smaller    5798 May 31  2011 dv_MV
-rwxr-xr-x 1 a bit smaller   33158 May 31  2011 dz_BT
-rwxr-xr-x 1 a bit smaller    2403 May 31  2011 el_CY
-rwxr-xr-x 1 a bit smaller    5661 May 31  2011 el_GR
-rwxr-xr-x 1 a bit smaller    1308 May 31  2011 el_GR@euro
-rwxr-xr-x 1 a bit smaller    2244 May 31  2011 en_AG
-rwxr-xr-x 1 a bit smaller    5237 May 31  2011 en_AU
-rwxr-xr-x 1 a bit smaller    2574 May 31  2011 en_BW
-rwxr-xr-x 1 a bit smaller    5755 May 31  2011 en_CA
-rwxr-xr-x 1 a bit smaller    4852 May 31  2011 en_DK
-rwxr-xr-x 1 a bit smaller    5214 May 31  2011 en_GB
-rwxr-xr-x 1 a bit smaller    6896 May 31  2011 en_HK
-rwxr-xr-x 1 a bit smaller    4910 May 31  2011 en_IE
-rwxr-xr-x 1 a bit smaller    1492 May 31  2011 en_IE@euro
-rwxr-xr-x 1 a bit smaller    6305 May 31  2011 en_IN
-rwxr-xr-x 1 a bit smaller    8772 May 31  2011 en_NG
-rwxr-xr-x 1 a bit smaller    5203 May 31  2011 en_NZ
-rwxr-xr-x 1 a bit smaller    6846 May 31  2011 en_PH
-rwxr-xr-x 1 a bit smaller    6598 May 31  2011 en_SG
-rwxr-xr-x 1 a bit smaller    5577 May 31  2011 en_US
-rwxr-xr-x 1 a bit smaller   11062 May 31  2011 en_ZA
-rwxr-xr-x 1 a bit smaller    1855 May 31  2011 en_ZM
-rwxr-xr-x 1 a bit smaller    2548 May 31  2011 en_ZW
-rwxr-xr-x 1 a bit smaller    4951 May 31  2011 es_AR
-rwxr-xr-x 1 a bit smaller    4952 May 31  2011 es_BO
-rwxr-xr-x 1 a bit smaller    4916 May 31  2011 es_CL
-rwxr-xr-x 1 a bit smaller    5079 May 31  2011 es_CO
-rwxr-xr-x 1 a bit smaller    5528 May 31  2011 es_CR
-rwxr-xr-x 1 a bit smaller    4992 May 31  2011 es_DO
-rwxr-xr-x 1 a bit smaller    4945 May 31  2011 es_EC
-rwxr-xr-x 1 a bit smaller    5046 May 31  2011 es_ES
-rwxr-xr-x 1 a bit smaller    1486 May 31  2011 es_ES@euro
-rwxr-xr-x 1 a bit smaller    4731 May 31  2011 es_GT
-rwxr-xr-x 1 a bit smaller    4955 May 31  2011 es_HN
-rwxr-xr-x 1 a bit smaller    4887 May 31  2011 es_MX
-rwxr-xr-x 1 a bit smaller    4646 May 31  2011 es_NI
-rwxr-xr-x 1 a bit smaller    4901 May 31  2011 es_PA
-rwxr-xr-x 1 a bit smaller    5009 May 31  2011 es_PE
-rwxr-xr-x 1 a bit smaller    4698 May 31  2011 es_PR
-rwxr-xr-x 1 a bit smaller    4930 May 31  2011 es_PY
-rwxr-xr-x 1 a bit smaller    4766 May 31  2011 es_SV
-rwxr-xr-x 1 a bit smaller    6093 May 31  2011 es_US
-rwxr-xr-x 1 a bit smaller    4913 May 31  2011 es_UY
-rwxr-xr-x 1 a bit smaller    5017 May 31  2011 es_VE
-rwxr-xr-x 1 a bit smaller   82859 May 31  2011 et_EE
-rwxr-xr-x 1 a bit smaller    5285 May 31  2011 eu_ES
-rwxr-xr-x 1 a bit smaller    1911 May 31  2011 eu_ES@euro
-rwxr-xr-x 1 a bit smaller   16455 May 31  2011 fa_IR
-rwxr-xr-x 1 a bit smaller    5544 May 31  2011 ff_SN
-rwxr-xr-x 1 a bit smaller    7864 May 31  2011 fi_FI
-rwxr-xr-x 1 a bit smaller    1505 May 31  2011 fi_FI@euro
-rwxr-xr-x 1 a bit smaller    5243 May 31  2011 fil_PH
-rwxr-xr-x 1 a bit smaller    4656 May 31  2011 fo_FO
-rwxr-xr-x 1 a bit smaller    4858 May 31  2011 fr_BE
-rwxr-xr-x 1 a bit smaller    1489 May 31  2011 fr_BE@euro
-rwxr-xr-x 1 a bit smaller    4960 May 31  2011 fr_CA
-rwxr-xr-x 1 a bit smaller    4525 May 31  2011 fr_CH
-rwxr-xr-x 1 a bit smaller    5422 May 31  2011 fr_FR
-rwxr-xr-x 1 a bit smaller    1511 May 31  2011 fr_FR@euro
-rwxr-xr-x 1 a bit smaller    4925 May 31  2011 fr_LU
-rwxr-xr-x 1 a bit smaller    1495 May 31  2011 fr_LU@euro
-rwxr-xr-x 1 a bit smaller    3712 May 31  2011 fur_IT
-rwxr-xr-x 1 a bit smaller    4100 May 31  2011 fy_DE
-rwxr-xr-x 1 a bit smaller    4152 May 31  2011 fy_NL
-rwxr-xr-x 1 a bit smaller    5505 May 31  2011 ga_IE
-rwxr-xr-x 1 a bit smaller    1485 May 31  2011 ga_IE@euro
-rwxr-xr-x 1 a bit smaller    4602 May 31  2011 gd_GB
-rwxr-xr-x 1 a bit smaller    5372 May 31  2011 gez_ER
-rwxr-xr-x 1 a bit smaller    2688 May 31  2011 gez_ER@abegede
-rwxr-xr-x 1 a bit smaller    5516 May 31  2011 gez_ET
-rwxr-xr-x 1 a bit smaller    2337 May 31  2011 gez_ET@abegede
-rwxr-xr-x 1 a bit smaller    4858 May 31  2011 gl_ES
-rwxr-xr-x 1 a bit smaller    1506 May 31  2011 gl_ES@euro
-rwxr-xr-x 1 a bit smaller    6214 May 31  2011 gu_IN
-rwxr-xr-x 1 a bit smaller    6036 May 31  2011 gv_GB
-rwxr-xr-x 1 a bit smaller    8742 May 31  2011 ha_NG
-rwxr-xr-x 1 a bit smaller    4949 May 31  2011 he_IL
-rwxr-xr-x 1 a bit smaller    7319 May 31  2011 hi_IN
-rwxr-xr-x 1 a bit smaller    5394 May 31  2011 hne_IN
-rwxr-xr-x 1 a bit smaller   83269 May 31  2011 hr_HR
-rwxr-xr-x 1 a bit smaller   82242 May 31  2011 hsb_DE
-rwxr-xr-x 1 a bit smaller    5221 May 31  2011 ht_HT
-rwxr-xr-x 1 a bit smaller   21276 May 31  2011 hu_HU
-rwxr-xr-x 1 a bit smaller    6779 May 31  2011 hy_AM
-rwxr-xr-x 1 a bit smaller  115232 May 31  2011 i18n
-rwxr-xr-x 1 a bit smaller    4981 May 31  2011 id_ID
-rwxr-xr-x 1 a bit smaller   16208 May 31  2011 ig_NG
-rwxr-xr-x 1 a bit smaller    7473 May 31  2011 ik_CA
-rwxr-xr-x 1 a bit smaller   83557 May 31  2011 is_IS
-rwxr-xr-x 1 a bit smaller     242 May 31  2011 iso14651_t1
-rwxr-xr-x 1 a bit smaller  433219 May 31  2011 iso14651_t1_common
-rwxr-xr-x 1 a bit smaller 1111201 May 31  2011 iso14651_t1_pinyin
-rwxr-xr-x 1 a bit smaller    4227 May 31  2011 it_CH
-rwxr-xr-x 1 a bit smaller    4906 May 31  2011 it_IT
-rwxr-xr-x 1 a bit smaller    1486 May 31  2011 it_IT@euro
-rwxr-xr-x 1 a bit smaller    3841 May 31  2011 iu_CA
-rwxr-xr-x 1 a bit smaller    4934 May 31  2011 iw_IL
-rwxr-xr-x 1 a bit smaller  222115 May 31  2011 ja_JP
-rwxr-xr-x 1 a bit smaller    4672 May 31  2011 ka_GE
-rwxr-xr-x 1 a bit smaller    7043 May 31  2011 kk_KZ
-rwxr-xr-x 1 a bit smaller    4981 May 31  2011 kl_GL
-rwxr-xr-x 1 a bit smaller   50714 May 31  2011 km_KH
-rwxr-xr-x 1 a bit smaller    6292 May 31  2011 kn_IN
-rwxr-xr-x 1 a bit smaller   54927 May 31  2011 ko_KR
-rwxr-xr-x 1 a bit smaller    6720 May 31  2011 kok_IN
-rwxr-xr-x 1 a bit smaller    6244 May 31  2011 ks_IN
-rwxr-xr-x 1 a bit smaller    5340 May 31  2011 ks_IN@devanagari
-rwxr-xr-x 1 a bit smaller    5733 May 31  2011 ku_TR
-rwxr-xr-x 1 a bit smaller    5594 May 31  2011 kw_GB
-rwxr-xr-x 1 a bit smaller    5976 May 31  2011 ky_KG
-rwxr-xr-x 1 a bit smaller    6040 May 31  2011 lb_LU
-rwxr-xr-x 1 a bit smaller   10561 May 31  2011 lg_UG
-rwxr-xr-x 1 a bit smaller    4057 May 31  2011 li_BE
-rwxr-xr-x 1 a bit smaller    4084 May 31  2011 li_NL
-rwxr-xr-x 1 a bit smaller    3934 May 31  2011 lij_IT
-rwxr-xr-x 1 a bit smaller   33533 May 31  2011 lo_LA
-rwxr-xr-x 1 a bit smaller   82794 May 31  2011 lt_LT
-rwxr-xr-x 1 a bit smaller   82306 May 31  2011 lv_LV
-rwxr-xr-x 1 a bit smaller    1383 May 31  2011 mai_IN
-rwxr-xr-x 1 a bit smaller    5787 May 31  2011 mg_MG
-rwxr-xr-x 1 a bit smaller    4720 May 31  2011 mhr_RU
-rwxr-xr-x 1 a bit smaller    5222 May 31  2011 mi_NZ
-rwxr-xr-x 1 a bit smaller    5372 May 31  2011 mk_MK
-rwxr-xr-x 1 a bit smaller    6735 May 31  2011 ml_IN
-rwxr-xr-x 1 a bit smaller    8226 May 31  2011 mn_MN
-rwxr-xr-x 1 a bit smaller    7198 May 31  2011 mr_IN
-rwxr-xr-x 1 a bit smaller    7033 May 31  2011 ms_MY
-rwxr-xr-x 1 a bit smaller    9068 May 31  2011 mt_MT
-rwxr-xr-x 1 a bit smaller    9271 May 31  2011 my_MM
-rwxr-xr-x 1 a bit smaller    5764 May 31  2011 nan_TW@latin
-rwxr-xr-x 1 a bit smaller    7459 May 31  2011 nb_NO
-rwxr-xr-x 1 a bit smaller    4219 May 31  2011 nds_DE
-rwxr-xr-x 1 a bit smaller    4106 May 31  2011 nds_NL
-rwxr-xr-x 1 a bit smaller    6598 May 31  2011 ne_NP
-rwxr-xr-x 1 a bit smaller    2240 May 31  2011 nl_AW
-rwxr-xr-x 1 a bit smaller    4147 May 31  2011 nl_BE
-rwxr-xr-x 1 a bit smaller    1491 May 31  2011 nl_BE@euro
-rwxr-xr-x 1 a bit smaller    5056 May 31  2011 nl_NL
-rwxr-xr-x 1 a bit smaller    1506 May 31  2011 nl_NL@euro
-rwxr-xr-x 1 a bit smaller    4946 May 31  2011 nn_NO
-rwxr-xr-x 1 a bit smaller    9427 May 31  2011 nr_ZA
-rwxr-xr-x 1 a bit smaller    9202 May 31  2011 nso_ZA
-rwxr-xr-x 1 a bit smaller    4022 May 31  2011 oc_FR
-rwxr-xr-x 1 a bit smaller    6734 May 31  2011 om_ET
-rwxr-xr-x 1 a bit smaller    9351 May 31  2011 om_KE
-rwxr-xr-x 1 a bit smaller   23135 May 31  2011 or_IN
-rwxr-xr-x 1 a bit smaller    4289 May 31  2011 os_RU
-rwxr-xr-x 1 a bit smaller    6271 May 31  2011 pa_IN
-rwxr-xr-x 1 a bit smaller    5249 May 31  2011 pa_PK
-rwxr-xr-x 1 a bit smaller    4815 May 31  2011 pap_AN
-rwxr-xr-x 1 a bit smaller   82609 May 31  2011 pl_PL
-rwxr-xr-x 1 a bit smaller    7665 May 31  2011 ps_AF
-rwxr-xr-x 1 a bit smaller    4799 May 31  2011 pt_BR
-rwxr-xr-x 1 a bit smaller    5019 May 31  2011 pt_PT
-rwxr-xr-x 1 a bit smaller    1504 May 31  2011 pt_PT@euro
-rwxr-xr-x 1 a bit smaller   12328 May 31  2011 ro_RO
-rwxr-xr-x 1 a bit smaller    5453 May 31  2011 ru_RU
-rwxr-xr-x 1 a bit smaller    5150 May 31  2011 ru_UA
-rwxr-xr-x 1 a bit smaller    5382 May 31  2011 rw_RW
-rwxr-xr-x 1 a bit smaller    8181 May 31  2011 sa_IN
-rwxr-xr-x 1 a bit smaller    3836 May 31  2011 sc_IT
-rwxr-xr-x 1 a bit smaller    5873 May 31  2011 sd_IN
-rwxr-xr-x 1 a bit smaller    6439 May 31  2011 sd_IN@devanagari
-rwxr-xr-x 1 a bit smaller    9291 May 31  2011 se_NO
-rwxr-xr-x 1 a bit smaller    6003 May 31  2011 shs_CA
-rwxr-xr-x 1 a bit smaller    6575 May 31  2011 si_LK
-rwxr-xr-x 1 a bit smaller    6293 May 31  2011 sid_ET
-rwxr-xr-x 1 a bit smaller    5646 May 31  2011 sk_SK
-rwxr-xr-x 1 a bit smaller   82173 May 31  2011 sl_SI
-rwxr-xr-x 1 a bit smaller    6802 May 31  2011 so_DJ
-rwxr-xr-x 1 a bit smaller    6739 May 31  2011 so_ET
-rwxr-xr-x 1 a bit smaller    6697 May 31  2011 so_KE
-rwxr-xr-x 1 a bit smaller    8224 May 31  2011 so_SO
-rwxr-xr-x 1 a bit smaller   10632 May 31  2011 sq_AL
-rwxr-xr-x 1 a bit smaller    2032 May 31  2011 sq_MK
-rwxr-xr-x 1 a bit smaller    4940 May 31  2011 sr_ME
-rwxr-xr-x 1 a bit smaller    9856 May 31  2011 sr_RS
-rwxr-xr-x 1 a bit smaller    5465 May 31  2011 sr_RS@latin
-rwxr-xr-x 1 a bit smaller    9634 May 31  2011 ss_ZA
-rwxr-xr-x 1 a bit smaller    9198 May 31  2011 st_ZA
-rwxr-xr-x 1 a bit smaller    4283 May 31  2011 sv_FI
-rwxr-xr-x 1 a bit smaller    1491 May 31  2011 sv_FI@euro
-rwxr-xr-x 1 a bit smaller    6741 May 31  2011 sv_SE
-rwxr-xr-x 1 a bit smaller    5173 May 31  2011 sw_KE
-rwxr-xr-x 1 a bit smaller    2597 May 31  2011 sw_TZ
-rwxr-xr-x 1 a bit smaller    6827 May 31  2011 ta_IN
-rwxr-xr-x 1 a bit smaller    7693 May 31  2011 te_IN
-rwxr-xr-x 1 a bit smaller    6377 May 31  2011 tg_TJ
-rwxr-xr-x 1 a bit smaller   46080 May 31  2011 th_TH
-rwxr-xr-x 1 a bit smaller    6922 May 31  2011 ti_ER
-rwxr-xr-x 1 a bit smaller   30360 May 31  2011 ti_ET
-rwxr-xr-x 1 a bit smaller    5639 May 31  2011 tig_ER
-rwxr-xr-x 1 a bit smaller   12825 May 31  2011 tk_TM
-rwxr-xr-x 1 a bit smaller    4952 May 31  2011 tl_PH
-rwxr-xr-x 1 a bit smaller    9692 May 31  2011 tn_ZA
-rwxr-xr-x 1 a bit smaller    2358 May 31  2011 tr_CY
-rwxr-xr-x 1 a bit smaller  163742 May 31  2011 tr_TR
-rwxr-xr-x 1 a bit smaller   14116 May 31  2011 translit_circle
-rwxr-xr-x 1 a bit smaller   59104 May 31  2011 translit_cjk_compat
-rwxr-xr-x 1 a bit smaller  162441 May 31  2011 translit_cjk_variants
-rwxr-xr-x 1 a bit smaller   60475 May 31  2011 translit_combining
-rwxr-xr-x 1 a bit smaller   34361 May 31  2011 translit_compat
-rwxr-xr-x 1 a bit smaller   58986 May 31  2011 translit_font
-rwxr-xr-x 1 a bit smaller    2380 May 31  2011 translit_fraction
-rwxr-xr-x 1 a bit smaller  618836 May 31  2011 translit_hangul
-rwxr-xr-x 1 a bit smaller    6210 May 31  2011 translit_narrow
-rwxr-xr-x 1 a bit smaller    7454 May 31  2011 translit_neutral
-rwxr-xr-x 1 a bit smaller    3088 May 31  2011 translit_small
-rwxr-xr-x 1 a bit smaller    5030 May 31  2011 translit_wide
-rwxr-xr-x 1 a bit smaller    9501 May 31  2011 ts_ZA
-rwxr-xr-x 1 a bit smaller    7883 May 31  2011 tt_RU
-rwxr-xr-x 1 a bit smaller    5790 May 31  2011 tt_RU@iqtelif
-rwxr-xr-x 1 a bit smaller    8974 May 31  2011 ug_CN
-rwxr-xr-x 1 a bit smaller   46415 May 31  2011 uk_UA
-rwxr-xr-x 1 a bit smaller    5057 May 31  2011 ur_IN
-rwxr-xr-x 1 a bit smaller    5464 May 31  2011 ur_PK
-rwxr-xr-x 1 a bit smaller   10197 May 31  2011 uz_UZ
-rwxr-xr-x 1 a bit smaller    9885 May 31  2011 uz_UZ@cyrillic
-rwxr-xr-x 1 a bit smaller    9839 May 31  2011 ve_ZA
-rwxr-xr-x 1 a bit smaller   10331 May 31  2011 vi_VN
-rwxr-xr-x 1 a bit smaller    5375 May 31  2011 wa_BE
-rwxr-xr-x 1 a bit smaller    1491 May 31  2011 wa_BE@euro
-rwxr-xr-x 1 a bit smaller    7633 May 31  2011 wae_CH
-rwxr-xr-x 1 a bit smaller    5901 May 31  2011 wal_ET
-rwxr-xr-x 1 a bit smaller    5520 May 31  2011 wo_SN
-rwxr-xr-x 1 a bit smaller    9520 May 31  2011 xh_ZA
-rwxr-xr-x 1 a bit smaller    6309 May 31  2011 yi_US
-rwxr-xr-x 1 a bit smaller   17855 May 31  2011 yo_NG
-rwxr-xr-x 1 a bit smaller    4403 May 31  2011 yue_HK
-rwxr-xr-x 1 a bit smaller    5625 May 31  2011 zh_CN
-rwxr-xr-x 1 a bit smaller    5853 May 31  2011 zh_HK
-rwxr-xr-x 1 a bit smaller    6104 May 31  2011 zh_SG
-rwxr-xr-x 1 a bit smaller    5626 May 31  2011 zh_TW
-rwxr-xr-x 1 a bit smaller    9710 May 31  2011 zu_ZA
charmap:
Code:
-rwxr-xr-x 1 a bit smaller 1951778 May 31  2011 UTF-8

9 MB.

Only some of input files (with required UTF-8 charmap) should go into specific update bunldle with localization (specific locale input file and it's dependencies). And "dependencies" aren't abstract dependencies, it's just other input files from provided list. Dependency tree could be computed once by recursive searching of copy directive in input file.

Last edited by eureka; 01-29-2012 at 12:49 PM. Reason: typo
eureka is offline   Reply With Quote
Old 01-29-2012, 12:56 PM   #200
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
I don't get the issue... This 46 MB stuff is all locales, right? And a bundle should contain only one locale, that is approx. 300-400 KB in ixtab's list... So why don't just include it in the update.bin?
JustAMan is offline   Reply With Quote
Old 01-29-2012, 01:00 PM   #201
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by JustAMan View Post
I don't get the issue... This 46 MB stuff is all locales, right? And a bundle should contain only one locale, that is approx. 300-400 KB in ixtab's list... So why don't just include it in the update.bin?
46 MB should be included in Git repo, that's the point. You've just mentally skipped this step.

But specific update bundle, of course, will include only needed locale definition picked from this 46MB stuff.
eureka is offline   Reply With Quote
Old 01-29-2012, 01:01 PM   #202
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
@eureka: I probably didn't make this clear enough. The 46 MB is what would only be required on the computer which produces the (Kindle) locale bundles. The advantage of having everything there in this manner are
  • The hosting ("package-producing") computer doesn't need to have all locales installed
  • The package-producing doesn't need to worry about how to compile individual locales, or dependencies
  • The Kindle doesn't need to compile anything, where it's unsure whether dependencies are satisfied or not
  • The locale bundle (produced by the package-producing computer) would simply include the relevant locale .tgz for the Kindle to use.
ixtab is offline   Reply With Quote
Old 01-29-2012, 01:22 PM   #203
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by JustAMan View Post
I don't know Perl and I'm scared by its syntax
So I may only guess what your script does. Am I right that it sorts lexicographically by "file path#property name=property value" string?

Assuming I was right deducing what your script does I reworked my checkit.py output.
Now it does:
1) sorting by folder name (e.g. com.amazon.*)
2) then by file name (e.g. BlogHomeWidget*)
3) then by property name

I also tried making the output better human-readable. Give it a try, I've just pushed it to bitbucket.
Yeah, I know, Perl is scary initially, and sometimes considered a "write-only" language.

Nevertheless, because of the incredibly powerful regular expression support, it allows to very quickly write programs to transform text input from one format to another. In this case, I simply took the output from your tool, treated every line starting with "//" as a key, and every other line as a value, put the entire thing into a hashmap, and dumped the entire hashmap sorted by keys.

"The only language that looks the same before and after RSA encryption is Perl."

If you really want to be scared and blown away at the same time, look at http://perlgolf.sourceforge.net/

Anyway, your output is fine now (though I admit I liked the previous one with only one comment line better. The new one adds too much noise IMO). Just look at the big,big green chunk in the code that I just checked in, and you'll probably get what I mean.

Quote:
Originally Posted by JustAMan View Post
Then you must be extra-cautious as you've already pointed out there's some stuff in de_DE locale that is translated, but still equal to en_US. For example some button labels which state "OK".
I know But at least I'm sure that I'm looking at everything, not just a subset (plus, I'm very familiar with the translation, because I've already seen every single entry before).
ixtab is offline   Reply With Quote
Old 01-29-2012, 01:22 PM   #204
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
@eureka: I probably didn't make this clear enough. The 46 MB is what would only be required on the computer which produces the (Kindle) locale bundles. The advantage of having everything there in this manner are
  • The hosting ("package-producing") computer doesn't need to have all locales installed
  • The package-producing doesn't need to worry about how to compile individual locales, or dependencies
  • The Kindle doesn't need to compile anything, where it's unsure whether dependencies are satisfied or not
  • The locale bundle (produced by the package-producing computer) would simply include the relevant locale .tgz for the Kindle to use.
No, you was clear enough. And almost all your points are provided by solution with source files:
  • Yes, The hosting ("package-producing") computer doesn't need to have all locales installed
  • Yes, The package-producing doesn't need to worry about how to compile individual locales, but package-producing program should know how to parse dependency tree and should add dependencies for specific locale code to package
  • But, The Kindle will need to compile something, but with certainly satisfied dependencies
  • Yes, The locale bundle (produced by the package-producing computer) would simply include the relevant locale input files and charmap for the localedef on Kindle to compile (and instead of cp command there will be localedef command)

Cons of source files solution: dependency tree should be computed (or pre-computed only once and then it will be stored in repo). Dependency tree is required but only for package-producing computer.

Pros of source files solution: Git repo will be smaller in size (9 additional MBs against 46 additional MBs)
eureka is offline   Reply With Quote
Old 01-29-2012, 01:38 PM   #205
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Looking at my last commit, I'm not so sure if keeping source code and translations in the same place is the best idea. I'm sure there is a way out using git branches, but it seems like I'm too stupid to actually use them correctly.

I admit I'm a total noob at git, and just don't get what effects "git checkout", "git branch" etc have, especially concerning how it relates to keeping local and remote versions synchronized over parallel branches.

I repeatedly got errors while trying to commit on "master" which said something about fast-forward, and I figured I needed to "git checkout js-tool; git pull; git checkout master" to get it working again. While this worked, I still don't know WHY it worked.

Can someone make this clearer, or is there a "git for idiots" page somewhere?
ixtab is offline   Reply With Quote
Old 01-29-2012, 02:00 PM   #206
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
@eureka: feel free to modify the sources for the "let the kindle compile things" approach, or at least to provide exact instructions for how it could be achieved.

Your suggestions are certainly very welcome and have been useful more than once. I'm also fine with putting (actually a lot of) effort into this. But I honestly don't want to figure out everything on my own again, if you already know how to do it.
ixtab is offline   Reply With Quote
Old 01-29-2012, 02:01 PM   #207
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
I repeatedly got errors while trying to commit on "master" which said something about fast-forward, and I figured I needed to "git checkout js-tool; git pull; git checkout master" to get it working again. While this worked, I still don't know WHY it worked.

Can someone make this clearer, or is there a "git for idiots" page somewhere?
I have the same errors about master branch (as I'm working on js-tool branch). Relax, there are no reasons to worry (for this concrete case with js-tool branch). Your solution is valid. You could also just skip these error messages about non-forward to other branch, if you didn't made any commits to it (as I do). If you want to push only master branch you should do git push origin master.

Honestly, I am understanding it no so much too I can suggest http://progit.org/ book (especially http://progit.org/book/ch9-0.html which is describing internals of Git pretty well and easy to read. And internals of Git are simple and awesome).
eureka is offline   Reply With Quote
Old 01-29-2012, 02:28 PM   #208
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
@eureka: feel free to modify the sources for the "let the kindle compile things" approach, or at least to provide exact instructions for how it could be achieved.

Your suggestions are certainly very welcome and have been useful more than once. I'm also fine with putting (actually a lot of) effort into this. But I honestly don't want to figure out everything on my own again, if you already know how to do it.
Man, why are you giving me an attractive task while I didn't finished JS tool yet? OK, I'll try to implement it (but how soon? ) (Typing of detailed instructions will be a bit boring for me compared with programming.)
eureka is offline   Reply With Quote
Old 01-29-2012, 02:30 PM   #209
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Concerning the "translations on git" issue, I see 3 possibilities:
  1. git does not include ANY translations
  2. git only includes source (en_US) translations
  3. git includes ALL translations

Option 1) would ensure that only code is in the git repository.
Option 2) would only include "base" translations (en_US as extracted from the device).
Option 3) would make sure that everything localized so far is in the repository.

Regardless of which option is selected, a "tx pull -a -s" can restore all translation files (including the sources).

- "tx pull -a -s" might interfere with git operation using options 2 and 3 ("git pull" refusing to overwrite untracked files).

- "tx pull -s" might interfere with git operations using option 2 in (very) rare circumstances.

- none of the transifex commands would interfere with git using option 1 (quite simply, because none of the files touched by transifex would be known to git).

I have a slight preference for option 2), because
  • Translations change frequently, and the current state can always be pulled from transifex without interfering with git.
  • Source translations (en_US) do not change frequently, and serve as input to transifex. I see source translations at the same "level" as .tx/config, actually.

What do you guys think?

Last edited by ixtab; 01-29-2012 at 02:38 PM. Reason: bugfix.
ixtab is offline   Reply With Quote
Old 01-29-2012, 02:45 PM   #210
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
@ixtab, what is a problem? Interspersing of tool changes with translation changes in single commit?

UPD: ah, I see. But adding or changing of files (even untracked) shouldn't a problem for Git. Could you be a bit concrete in Git error messages?

Anyway, I'm sticking with 3. git includes ALL translations. Resources (source and translations) are the main content of Git repo. Tools aren't. (no offence assumed, it's not about quality or unnecessity).

Last edited by eureka; 01-29-2012 at 02:49 PM. Reason: ah, I see the problem
eureka is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:31 PM.


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