Roresourcemanager – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 306

298
roResourceManager
The roResourceManager is used for managing 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)
Interfaces: ifResourceManager
The interface ifResourceManager provides the following:
•
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
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"