Player APIs (BrightScript & Ja...
...
Object Reference
System Objects

roResourceManager

4min
the roresourcemanager object is used to manage strings in multiple languages object creation the roresourcemanager object is created with a single filename parameter that specifies the name of the file that contains all of the localized resource strings required by the user this file must be in utf 8 format createobject("roresourcemanager", filename as string) ifresourcemanager setlanguage(language identifier as string) as boolean instructs the roresourcemanager object to use the specified language false is returned if there are no resources associated with the specified language getresource(resource identifier as string) as string returns the resource string in the current language for a given resource identifier getfailurereason() as string yields additional useful information if a function return indicates an error getlanguage() as string usage at present, roresourcemanager is primarily used for localizing the roclockwidget the resource file passed in during creation has the following format for each string entry \[resource identifier name goes here] eng "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec" ger "jan|feb|mär|apr|mai|jun|jul|aug|sep|okt|nov|dez" spa "ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic" fre "jan|fév|mar|avr|mai|jun|jul|aou|sep|oct|nov|déc" ita "gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic" dut "jan|feb|mar|apr|mei|jun|jul|aug|sep|okt|nov|dec" swe "jan|feb|mar|apr|maj|jun|jul|aug|sep|okt|nov|dec" the name in square brackets is the resource identifier each line after it is a language identifier followed by the resource string multiple roresourcemanager objects can be created a default "resources txt" file, which contains a range of internationalization values for the clock widget, is available on legacy product resources docid 1c7on8l3z2bgg2tg tgyr