Brightsign Object Reference Manual (FW 5.1) Manuel d'utilisateur Page 306

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 341
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 305
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"
Vue de la page 305
1 2 ... 301 302 303 304 305 306 307 308 309 310 311 ... 340 341

Commentaires sur ces manuels

Pas de commentaire