Common.SetLanguage: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
{{Template:Common.SetLanguage.Cmt}}
{{Template:Common.SetLanguage.Cmt}}


=== Method Syntax===
== Syntax==


{{APIName|SetLanguage(}}
*SetLanguage( {{APIName|language}} {{APIPrefix|As}} [[Language Enumeration]] )
{{APIPrefix|ByVal}}
{{APIName|language}}
{{APIPrefix|As}}
{{APIName|[[Language]])}}


== Parameters ==
Parameters
'''language'''
:''language'': The language to use, from the [[Language]] enumeration.
The language to use, from the [[Language]] enum.


== Usage Example ==
== Usage Example ==
{{APIComment|Set the language to English}}
{{APIComment|Set the language to English}}
         SynthesisAPI.SetLanguage(SynthesisAPI.Language.English)
         SynthesisAPI.SetLanguage(SynthesisAPI.Language.English)

Revision as of 21:54, 5 March 2014


Sets the language for the whole library. It cannot be set separately for different instances of classes.

Syntax

Parameters

language: The language to use, from the Language enumeration.

Usage Example

Set the language to English

       SynthesisAPI.SetLanguage(SynthesisAPI.Language.English)