|
|
Thread Tools | Search this Thread |
04-05-2010, 10:19 AM | #1 |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Change Language with firmware v.1.4.0.23260 and modified PRS+
Surprisingly enough only two small changes in code are necessary to enable PSR+ fully on a non 1.1.0.18040 version. First thing is, that it is not save to write to the title property of an cloned ContainerNode object. So I introduced a new property _mytitle1, which is solely used in ChangeLang.js and can otherwise be omitted. core_ui.js had to be patched at line Code:
135 if (arg.hasOwnProperty("title")) {obj.title = arg.title;} to if (arg.hasOwnProperty("title")) {obj._mytitle1 = arg.title;} //for v1.4 Code:
269 this.title = this.name; changed to this._mytitle1 = this.name; // changed for v1.4 Thus I came to the following addon: ChangLang.js (see attachment) which allows to change the language of the UI on the fly between the tree build in languages, Enlish, French and German. Things to mention:
Last edited by Mark Nord; 04-10-2010 at 10:40 AM. |
04-11-2010, 08:36 AM | #2 |
PRS+ author
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Mark,
could you post the 1.4.0.23260 image file please? |
Advert | |
|
04-11-2010, 09:18 AM | #3 |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
here you go....
As I'm used to modify the firmware with Universal Flasher, the prsp.lnk wasn't working. So the included "FskDocumentViewerAdobe.so" is the "original patched" version, pointing to "\Data\epub\userStyle.css" Code:
This is the File-Compare-Report vs the original firmware: Binary Comparison of <F:\Downloads\sony\cramfs-tools\new_opt_img_1.4> to <F:\Downloads\sony\cramfs-tools\opt_img_v1.4> 64 files in 7 folders 47 files match exactly ---------------------- sony\ebook\application\resources\scripts\kBookAssets.png sony\ebook\application\resources\scripts\kBookDefaultArt.png sony\ebook\application\resources\scripts\kBookDefaultThumbnail.png sony\ebook\application\resources\scripts\kBookDisk.png sony\ebook\application\resources\scripts\kbookLanguageAssets_de-DE.xml sony\ebook\application\resources\scripts\kbookLanguageAssets_en-US.xml sony\ebook\application\resources\scripts\kbookLanguageAssets_fr-FR.xml sony\ebook\application\resources\scripts\mainStorage.xml sony\ebook\application\resources\application.xml sony\ebook\application\resources\storage.xml sony\ebook\application\resources\storageStart.xml sony\ebook\application\resources\switcher.xml sony\ebook\application\application.xsb sony\ebook\application\coreaudiofilters.so sony\ebook\application\drm.xsb sony\ebook\application\drmDocviewer.xsb sony\ebook\application\ebook.so sony\ebook\application\ebookConfig.so sony\ebook\application\fileserialize.so sony\ebook\application\FskBBeBViewer.xso sony\ebook\application\FskCache.xsb sony\ebook\application\FskCore.xsb sony\ebook\application\FskDMF.xsb sony\ebook\application\FskDocumentViewer.so sony\ebook\application\FskDocumentViewerRTF.so sony\ebook\application\FskFhGAACIntDec.so sony\ebook\application\FskFhGMP3IntDec.so sony\ebook\application\FskImage.so sony\ebook\application\Fskin.so sony\ebook\application\FskMediaPlayers.so sony\ebook\application\FskMobileMediaDevice.so sony\ebook\application\FskSecurity.so sony\ebook\application\kbook.so sony\ebook\application\language.xsb sony\ebook\application\libfreetype.so.6.3.10 sony\ebook\application\libtinyhttp.so sony\ebook\application\libuss.so sony\ebook\application\octDocviewer.xsb sony\ebook\application\octopus.xsb sony\ebook\application\storage.xsb sony\ebook\application\switcher.so sony\ebook\application\tinyhttp sony\ebook\application\UCA.so sony\ebook\application\xdbLite.so sony\ebook\bin\deviceid sony\ebook\bin\UsbUpdater sony\ebook\bin\writescreen 12 files don't match -------------------- sony\ebook\application\resources\scripts\kBookIcon.png // nicer icons sony\ebook\application\resources\scripts\kBookLogos.png // folding book sony\ebook\application\resources\scripts\main.xml // Clock, es-ES sony\ebook\application\resources\applicationStart.xml // Startupcode sony\ebook\application\FskDocumentViewerAdobe.so // res:///Data/epub/userStyle.css sony\ebook\application\kconfig.xml // Fonts sony\ebook\application\libfreetype.so.6.lnk // not changed sony\ebook\application\libfreetype.so.lnk // not changed sony\ebook\bin\tinyhttp.sh // call to prsp.sh sony\ebook\FONT\tt0003m_.ttf // from 1.02 installer sony\ebook\FONT\tt0011m_.ttf // from 1.02 installer sony\ebook\FONT\tt0419m_.ttf // from 1.02 installer 4 folders and files only on left -------------------------------- sony\ebook\application\resources\scripts\kbookLanguageAssets_es-ES.xml sony\ebook\application\Latin1toUTF8.so sony\ebook\application\libfskLoad.so sony\ebook\application\prspVM.xml Copy 'n Past from kbook.xs - dump Code:
this.Date.prototype.toLocaleDateString = function () { var split, date; split = this.toDateString().split('/'); date = <global>.kbook.strings['STR_FORMAT_DATE']; date = date.replace('YY', split[0]); date = date.replace('MM', split[1]); date = date.replace('DD', split[2]); return date; }; [Edit] Removed personal info from image [/Edit] Last edited by Mark Nord; 04-11-2010 at 01:43 PM. |
04-11-2010, 10:59 AM | #4 |
PRS+ author
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Mark, does localization also work in "usb connected" mode? (my version of PRSP hangs (I guess because of the new core_lang stuff) so I didn't check it with language switcher) It's clear, that resource file is used, but does it show the right language?
|
04-11-2010, 11:41 AM | #5 |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
No, if connected to USB the messages are all in German.
I think, when connected to USB "storageStart.xml" and "mainStorage.xml" are executed, and "mainStorage.xml" has it's own Code:
<kbookLanguages id="LANG" default="de" width="0" height="0" visible="false"> <kbookLanguage lang="en" width="0" height="0" visible="false"> <assets> .. </kbookLanguages> Eventually Code:
<function id="initialized"> USBDispatcher.doRegister(this.getWindow()) this.getDevice().enableBlueLED(false); </function> For your convenience I add my modified sources, based on the latest code on http://code.google.com/p/prs-plus/. Here is the list of changes: Code:
Binary Comparison of <F:\Downloads\sony\prs-plus\clone> to <F:\Downloads\sony\prs-plus\My_PRSPlus_Scipt\my mod clone loc> 55 files in 11 folders 35 files match exactly ---------------------- 11 files don't match -------------------- addons\BrowseFolders.js // title -> _mytitle1, title for rescan int.mem addons\Clock.js //title addons\EpubUserStyle.js // res:///Data/epub/userStyle.css addons\MenuCaptions.js // faild playing with size, have to wait for soSetValue addons\PageIndex.js // use Sony's Localization for " OF " core\lang\English.js // no Sony: category core\core_lang.js // no change of the Sony UI, iterator for Lang-Files core\core_ui.js // _mytitle1 core\core_zAbout.js // don't show PRS+ fw core\core__log.js // use filemode 3 for logfile PRSPlus.js // use filemode 3 for logfiles 2 folders and files only on left -------------------------------- addons\sandbox_kartu.js addons\TextEncoding.js 8 folders and files only on right --------------------------------- addons\disabled\ addons\disabled\sandbox_kartu.js addons\disabled\TextEncoding.js addons\ChangeLang.js core\lang\German.js core\lang\German.zip core\lang\Spanish-Sample.zip core\lang\Spanish.js Last edited by Mark Nord; 04-11-2010 at 01:45 PM. |
Advert | |
|
10-27-2011, 01:11 PM | #6 |
Junior Member
Posts: 1
Karma: 10
Join Date: Oct 2011
Device: sony prs-t1
|
hi everybody!
I just got Sony PRS-T1 eReader for my mother. She wants to read in Russian. Any ideas what to do? I am very new to this. Thanks |
10-27-2011, 02:12 PM | #7 |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
here,
but check the more recent PRS-T1 threads. As far as I understand the T1 suports cyrillic out of the box. OK not the User Interface, but it is very well capable of displaying any kind of russian texts. (As long as they are encoded in UTF-8) HTH Mark |
10-28-2011, 12:35 PM | #8 |
PRS+ author
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
As Mark said cyrillic is in fonts out of the box.
As far as menu translation goes, neither porkupan (boroda) nor amutin plan to translate it (and it's not as trivial as with previous models). According to amutin Sony plans to release Russian version of the reader anyway. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre language change? | mago55 | Calibre | 8 | 11-16-2020 01:49 AM |
PRS 505 change language | Suzu | Sony Reader Dev Corner | 3 | 02-28-2014 07:45 PM |
Change Language in firmware 1.3.00.22070 | mannukio | Sony Reader Dev Corner | 1 | 09-13-2009 06:32 AM |
Switching the language on firmware 1.4.00.23260 | pupeno | Sony Reader | 15 | 06-17-2009 04:58 PM |
How Do I Change the Language? | PBee | Bookeen | 8 | 03-13-2009 04:56 AM |