01-23-2012, 04:02 PM | #136 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
just a short reply: this *may* all be caused by translating *too much* (see the updated very first post in this thread). I have experienced crashes caused by incorrect translation of "north","east" etc. strings for de locale as well. It's definitely not a good idea to localize parts which were not meant for localization. The trick is to find out what the "do not translate" policy actually applies to ;-)
However, the one thing that is really curious is that ru_RU worked for me without a problem. I admit I only tried pressing menu and going back to settings->international, but that *did* work. |
01-23-2012, 06:26 PM | #137 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
beta "100%" german translation
In the last 6 hours, I have updated the german translation on transifex. The "locale" (=blanket) and "framework" (=java) parts are now both at 100%, and should be internally consistent. I have tested this locale, and it works perfectly on my device. This means two (well, three) things:
(UPDATE: See a few posts down for a snapshot containing *all* locales) Last edited by ixtab; 01-24-2012 at 10:41 AM. |
Advert | |
|
01-23-2012, 07:49 PM | #138 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
... so, just another hint, or thought, or whatever. I have tried again to completely wipe the russian locale, then installed it via a .bin archive.
The basic installation looks normal (i.e. I get NO white screen on reboot, but the standard, "podoshtiytes poshaluysta..." screen while rebooting.) Afterwards, the home screen looks normal as well. What I can confirm is the crash when selecting "Archived Items", for example. But this is most probably caused by "over-localized" locales, as previously pointed out. I'm still intrigued why you folks get a white blanket screen. This shouldn't be happening, and I can't reproduce it here. ... any clues? Last edited by ixtab; 01-23-2012 at 07:54 PM. Reason: typo |
01-23-2012, 10:53 PM | #139 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
BTW, tip about USB charging screen. I've also got almost blank USB charging screen (after installing of ru_RU localization bundle). There was no text, just an USB plug image. It is just a translator's error (or laziness, or something non-understandable). Strings in blanket.po with ids usb.screen.header, usb.screen.message, usb.screen.message_nc are left empty. But they should contain appropriate messages. Also, Kindle's locale must be set to ru_RU.UTF-8. Not just ru.UTF-8. I.e. /var/local/system/locale should contain: Code:
LANG=ru_RU.UTF-8 LC_ALL=ru_RU.UTF-8 |
|
01-23-2012, 11:31 PM | #140 | |||
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
I was assuming white meant "white", wherever it comes from... BTW, tip about USB charging screen. Quote:
Quote:
Hmmm... after only installing the ru_RU install package (and doing nothing else), my Kindle gives: Code:
[root@kindle root]# cat /var/local/system/locale LANG=ru_RU.utf8 LC_ALL=ru_RU.utf8 |
|||
Advert | |
|
01-24-2012, 01:14 AM | #141 | ||
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
It looks like creating of sub-directory at /usr/share/locale and setting of appropriate environment variables (by filling of /var/local/system/locale) aren't enough for using localized messages. The locale by itself must be introduced. Known locales are contained at /usr/lib/locale/locale-archive. On my KT, I am seeing there strings en_US.utf8, de_DE.utf8, ru_RU.utf8 and some others, but there is no pl_PL.utf8. Locale could be added to locale archive by localedef utility (which is available on KT), but I didn't investigate further... ..oh, output of strings /usr/lib/locale/locale-archive | grep utf8 and localedef --list-archive is identical. Just a note. Quote:
|
||
01-24-2012, 10:28 AM | #142 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Thanks a ton for pointing this out! This was indeed the problem. I have now built in automatic localedef commands in the installer and uninstaller. A snapshot of all locales (translation state as of 10 minutes ago) is available here: (update: file removed ecause these used a rather dangerous way to update the system locales; see below) -- blanket now seems to work correctly for all locales!
There have been a few bugfixes in the tool; the current version is checked in. If you want to update to the newest version (in particular those of you who use the appliance: Code:
cd kindle-touch-l10n git pull cd ~ Last edited by ixtab; 01-24-2012 at 01:18 PM. |
01-24-2012, 11:12 AM | #143 |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
I'll be able to test stuff in an hour when I'll get back home.
I can test all locales if need be. ixtab, Do you think I'd better reproduce the "white home page" error with old bundle first or go test new bundle straight away? The error I had was on Kindle 5.0.0 (more details via PM if needed). eureka, No problem, man, just let me know if you need some tech help BTW, when we discovered that Kindle tool cannot extract homebrew updates (I think this might be related to certificate or whatever... didn't investigate, though), would you mind sharing kbd sources so kbd can be tweaked? |
01-24-2012, 11:35 AM | #144 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
forget about the old bundles, they are buggy anyway ;-)
So yes, just try it with the new ones. Also please try out the polish one to see if USB mode display works correctly. Of course, you're free to try out others as well For me, all locales I tested worked correctly -- at least the home and settings screens, and blanket stuff (startup/shutdown/USB display). ru_RU still crashes on accessing the archive... |
01-24-2012, 11:41 AM | #145 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
@ixtab, thanks.
localedef --add-to-archive changes Amazon-provided file. This is not so good. It could prevents future updating to new original firmware. Instead, directory with locale definition could just be copied to /usr/lib/locale. It works. It will be also good to add appropriate locale definitions, not the copy of en_US.utf8. I've tried to copy ru_RU locale definition file and UTF-8 character map (both from glibc Git repo: see locales and charmaps) to KT and compile them there with Code:
localedef -f charmap_file -i locale_file --no-archive /tmp/ru_RU.utf8 Last edited by eureka; 01-24-2012 at 11:45 AM. Reason: typo |
01-24-2012, 11:55 AM | #146 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Hmm... yes, then it may be better to create directories instead.
You're probably also right about providing "correct" definitions, but this will be a hell of a lot of work, and I honestly don't see the point in it. It's not like users will need a localized root shell But feel free to convince me of the opposite. |
01-24-2012, 12:11 PM | #147 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Ha, much simpler alternative.
Code:
[root@kindle locale]# ls -la drwxrwxr-x 3 root root 1024 Jan 24 17:03 . drwxr-xr-x 27 root root 16384 Nov 10 09:25 .. drwxr-xr-x 3 root root 1024 Jan 24 17:02 en_US.utf8 -rw-r--r-- 1 root root 8318256 Jan 24 17:02 locale-archive lrwxrwxrwx 1 root root 26 Jan 24 17:03 th_TH.utf8 -> /usr/lib/locale/en_US.utf8 Also don't forget that space on the device is rather limited. I don't like the idea of having > 1 MB of locale stuff which concerns only the console, per language. UPDATE: Ah what the heck, I just did it. The very first post has been updated with a link to the new locales snapshot. NOTE: You have to install version 2 of the locale-base for these packages to work (also linked in first post). If you're using some of the locales from the first snapshot today, make sure to uninstall them with the *old* uninstaller, then install the new version. Last edited by ixtab; 01-24-2012 at 01:17 PM. |
01-24-2012, 01:23 PM | #148 |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
ixtab,
Hmm, tried ru_RU from latest bundle you've provided... (before your very last post) Still got white home screen (attached screenshot, slightly edited to mask my device name ). Then invoked international menu from ssh-over-usb, selected English back and got "error while updating: error 3" after reboot, then it rebooted again and was in English. German localization works fine (I don't understand German but I see that home Menu is translated and some other locations are translated, too). BTW, when scanning showlog output for some clues I saw a lot of errors like Code:
E lipc:dbuserr:name=org.freedesktop.DBus.Error.ServiceUnknown:Receive Dbus error message (DBUS_MESSAGE_TYPE_ERROR): The name com.lab126.wan was not provided by any .service files Some parts of logs also attached (stripped off the part that was before I installed ru_RU locale). ru-install.txt ru-select.txt P.S. I think there's a need to invent ways to provide ability to localize Yifan's Launcher menus, too P.P.S. Just came to my mind... I don't install anything except locale .bin update, I invoke "International" menu via "lipc-set-proc" method (wrote my extension for the Launcher). Last edited by JustAMan; 01-24-2012 at 01:34 PM. |
01-24-2012, 01:33 PM | #149 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
You can ignore the com.lab126.wan thing. I'm also constantly getting it (probably because the device doesn't have 3G).
I have to admit I'm totally clueless, and probably can't be of much help because I can't reproduce this. Unfortunately, the logs aren't terribly helpful either... Maybe eureka can look into this, if he's having the same issue. For the launcher, you can easily localize the launcher itself, but not the individual items. They are plain text strings in files... |
01-24-2012, 01:36 PM | #150 | |
Groupie
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
|
Quote:
What I thought of was combine yours efforts with Yifan to provide some mechanism for items to localize themselves... At least, say, a way to specify menus in config.xml to be shown on specific languages. P.S. Read my addition to my previous post, it occurred that I edited it after you replied P.P.S. There're a lot of errors in DBUS that don't concert wan, too... that's what bugging me. |
|
|
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 |