Roku Object Reference - imaginArt
Roku Object Reference - imaginArt
Roku Object Reference - imaginArt
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
oResourceManager ()<br />
The roResourceManager is used for managing strings in multiple languages.<br />
<strong>Object</strong> creation:<br />
• Create<strong>Object</strong>("roResourceManager", filename As String)<br />
o filename = the name of the file that contains all of the localized resource strings required<br />
by the user. This file must be in UTF-8 format.<br />
The interface includes:<br />
• SetLanguage(language_identifier As String) As Boolean<br />
o Instructs the roResourceManager object to use the specified language. False is returned if<br />
there are no resources associated with the specified language.<br />
• GetResource(resource_identifier As String) As String<br />
o Returns the resource string in the current language for a given resource identifier.<br />
At present, the main use for the roResourceManager is for localizing the roClockWidget.<br />
The resource file passed in on creation has the following format for each string entry:<br />
[RESOURCE_IDENTIFIER_NAME_GOES_HERE]<br />
eng "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec"<br />
ger "Jan|Feb|Mär|Apr|Mai|Jun|Jul|Aug|Sep|Okt|Nov|Dez"<br />
spa "Ene|Feb|Mar|Abr|May|Jun|Jul|Ago|Sep|Oct|Nov|Dic"<br />
fre "Jan|Fév|Mar|Avr|Mai|Jun|Jul|Aou|Sep|Oct|Nov|Déc"<br />
ita "Gen|Feb|Mar|Apr|Mag|Giu|Lug|Ago|Set|Ott|Nov|Dic"<br />
dut "Jan|Feb|Mar|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec"<br />
swe "Jan|Feb|Mar|Apr|Maj|Jun|Jul|Aug|Sep|Okt|Nov|Dec"<br />
The name in the square brackets is the resource identifier. Each line after it is a language identifier followed<br />
by the resource string. Multiple roResourceManagers can be created.<br />
A default “resources.txt” file is available from <strong>Roku</strong>’s website.<br />
46