[memb_if_lang]
Summary
Enables you to provide multiple language support on your pages.
Shortcode Examples
Display different text to different users depending on their language settings:
[memb_if_lang]
Default text goes here that will be displayed to the visitor if there is no better match
[lang=”cn”]
Chinese text goes here that will be displayed to the visitor if they prefer Chinese
[lang=”es”]
Spanish text goes here that will be displayed to the visitor if they prefer Spanish
[/memb_if_lang]
Shortcode Parameters
capture: Capture the output of the shortcode and route it to a variable for later use. (?)
txtfmt: A comma separated list of text processing functions to be used to post process the contact fields. (?)
Description
This shortcode detects the current visitor’s preferred language and displays the copy and images that are the best match for the viewer’s language needs.
Shortcode Attributes
Additional Information
Language family | ISO 639-1 code | Language variant |
---|---|---|
English | en-GB | British English |
en-US | American English | |
en-CA | Canadian English | |
en-IN | Indian English | |
Spanish | es-ES | Castilian Spanish (as spoken in Central-Northern Spain) |
es-MX | Mexican Spanish | |
es-AR | Argentine Spanish | |
es-CO | Colombian Spanish | |
es-CL | Chilean Spanish | |
Portuguese | pt-PT | European Portuguese (as written and spoken in Portugal) |
pt-BR | Brazilian Portuguese | |
Tamil | ta-IN | Indian Tamil |
ta-LK | Sri Lankan Tamil | |
Kannada | kn | kannada |
kn-IN | Indian Kannada | |
Chinese | zh-CN | Mainland China, simplified characters |
zh-TW | Taiwan, traditional characters | |
zh-HK | Hong Kong, traditional characters |