View Single Post
Old 02-27-2010, 11:19 AM   #553
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
localization - a question for the script-gurus

Like surquizu I noticed the localization in the german v1.4 firmware.

see main.xml lines 632ff

Code:
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://www.kinoma.com/fskin/1" href="x-id://model">
	<assets>
        ..
        ..
	</assets>
	<code>
		<function id="changeLanguage" params="lang">
			this.LANG.setLanguage(lang);
		</function>
	</code>
	<clock/>
	<kbookLanguages id="LANG" default="de" width="0" height="0" visible="false">
	<kbookLanguage lang="en" width="0" height="0" visible="false">
		<assets>
			<import href="kbookLanguageAssets_en-US.xml"/>
		</assets>
	</kbookLanguage>
	<kbookLanguage lang="fr" width="0" height="0" visible="false">
		<assets>
			<import href="kbookLanguageAssets_fr-FR.xml"/>
		</assets>
	</kbookLanguage>
	<kbookLanguage lang="de" width="0" height="0" visible="false">
		<assets>
			<import href="kbookLanguageAssets_de-DE.xml"/>
		</assets>
	</kbookLanguage>

	</kbookLanguages>
I'm curious if it is possible to call this "changeLanguage" function from within a prs+ addon?

As old-school pascal/delphi coder, I'm stumbeling with all this objects, and can't figure out how to call the function, or to call it within the right context.

Any ideas are much appreciated.
Mark Nord is offline   Reply With Quote