- Start
- License
- Framework
- First steps
- Updates
- XA_Functions
- WApp
- WAutoComplete
- WBasic
- WBasicCheckbox
- WBasicContext
- WBasicDateTime
- WBasicEdit
- WBasicEmail
- WBasicNumber
- WBasicRadio
- WBasicSelect
- WBasicSelectItem
- WBasicStyle
- WBreadcrumb
- WButton
- WCard
- WCarousel
- WCarouselImage
- WCarouselPanel
- WCheckbox
- WChip
- WCmpButtonIcon
- WCmpButtonSpinner
- WCmpNumericKeypad
- WCollapsible
- WCollapsiblePanel
- WCollection
- WCollectionItem
- WColor
- WContainer
- WContext
- WContextHelper
- WControl
- WCookie
- WCss
- WDatePicker
- WDateTime
- WDiv
- WDoc
- WDocSection
- WDropDownItem
- WDropdown
- WDump
- WEdit
- WEmail
- WEngine
- WFetch
- WFieldset
- WFile
- WFlexRow
- WFloatActionButton
- WFloatActionButtonItem
- WFooter
- WForm
- WHeader
- WIconGoogle
- WImage
- WInput
- WInputImage
- WInputMask
- WInputText
- WLabel
- WLink
- WList
- WListItem
- WMain
- WMariaDbDatasource
- WMariaDbQuery
- WMaterialBox
- WMaterializeContext
- WMaterializeHelper
- WMeta
- WModal
- WModalMsgBtn
- WModalObject
- WNav
- WNavbar
- WNavbarItem
- WNavbarLogo
- WNumber
- WPackage
- WPagination
- WPaginationItem
- WParagraph
- WPdf
- WPdfAutoTable
- WPdfAutoTableStyle
- WPdfStyle
- WPhpRunner
- WPostFile
- WPreloader
- WRadio
- WRadioMenu
- WRange
- WRouter
- WScript
- WSelect
- WSelectItem
- WSession
- WSidenav
- WSidenavHeader
- WSidenavItem
- WSimpleContext
- WSlider
- WSliderItem
- WSpan
- WSqliteDatasource
- WSqliteQuery
- WStyle
- WSwitch
- WSyntaxHilite
- WTable
- WTableCell
- WTableColGroup
- WTableRow
- WTableTask
- WTableZone
- WTabs
- WTabsItem
- WTask
- WText
- WTextArea
- WTimePicker
- WTooltip
- WTranslator
- WWaterContext
- WXailerMariaDbDatasource
- WXailerSqliteDatasource
- WXailerWebDatasource
- Function XA_Functions -Translator
-
Parameters
lCheckExists
Parameter optional only for check if the object WTranslator has been instantiated. In the case of w e if includes this parameter, the value of return will be a logical value indicating whether is instantiated.
-
Return value
WTranslator
Object WTranslator | lValue
-
Fichero: zTranslator.prg
This function returns a single instance of the WTranslator class which is responsible for performing translations of any HTML elements. For the HTML system to be used to translate any HTML elements, is necessary that at at least a control HTML has its property lTranslate to true. The class WTranslator included in xaWeb is supported by the use of a DBF file with the same name as the CGI that is located in the data folder from the location of the CGI. Both the folder and the file name can be modified with the properties <cPath> and <cFile> of the own class. However, the user can create his own class of translation, only will have to code a function Translator() that creates the single instance of its own translation class.