#include <mobu-python-api.h>
Language manager. The class FBMultiLangManager indicates the supported languages and allows to query and change the current language. The support for localization is done using conversion tables from internal names to language specific names, so that they can be used in the GUI and other human readable contexts.
The following sample code lists the names of the supported languages: Python sample code:
from pyfbsdk import * lManager = FBMultiLangManager() print 'Current localization language: ', lManager.GetCurrentLanguage() print 'Supported languages:' for lLanguage in lManager.Languages: print ' ', lLanguage
C++ sample code:
FBMultiLangManager lManager; FBTrace( "Current localization language: %s\n", lManager.GetCurrentLanguage()); FBTrace( "Supported languages:\n" ); int lIdx = 0; while( lIdx < lManager.Languages.GetCount()) { FBTrace( " %s\n", lManager.Languages[lIdx++] ); }
Public Member Functions |
|
def | __reduce__ () |
def | __init__ () |
def | GetCurrentLanguage () |
def | SetCurrentLanguage () |
Public Attributes |
|
FBStringList | Languages |
def __reduce__ | ( | ) |
def __init__ | ( | ) |
Python Docstring:
__init__( (object)arg1) -> None
C++ Constructors:
The reference documentation for the following C++ symbols may
contain additional relevant information.
def GetCurrentLanguage | ( | ) |
Python Docstring:
GetCurrentLanguage( (FBMultiLangManager)arg1) -> str
C++ Signature:
const char * GetCurrentLanguage()
Obtain the current language. Query the current language used for the GUI.
def SetCurrentLanguage | ( | ) |
Python Docstring:
SetCurrentLanguage( (FBMultiLangManager)arg1, (str)arg2) -> bool
C++ Signature:
bool SetCurrentLanguage(const char * pLanguage)
Set the current language. Change the current language to another available language.
pLanguage | The string corresponding to the desired language, as defined in property Languages. |
List of available languages.