Quick Examples
Translate "/about-us/location" to English:
{exp:trans_struct url="/about-us/location" lang="en"}
Auto-detect the current URL and translate to English
{exp:trans_struct lang="en"}
Detect the current URL and language. Add language-specific prefixes for French and German (ie. /fr/ or /de/). Don't for English. Other language prefixes will be auto-detected in Transcribe:
{exp:trans_struct add_prefixes="fr|de" drop_prefixes="en"}
Parse the enclosed text. Replace {translated_url}, and do not prefix it with the language (despite the Transcribe settings dictating to do so):
{exp:trans_struct url="/about-us/" parse="inward" prefix="no"}
{translated_url}
{/exp:trans_struct}
Tag Parameters
url=
This is what the entire plugin is centered around: your URL.
Default: The current URL
lang=
Specify which language to output the URL for.
Values: Any language prefix you defined in Transcribe
Default: The current language
prefix=
If you specify "no" here, no language prefixes (ie: /en/, /fr/) will be added to the beginning of the URL. "yes" will auto-detect Transcribe's settings.
Values: yes, no
Default: yes
drop_prefixes=
Use this to override Transcribe's URL prefix settings for specific languages.
Values: Pipe-separated list of languages defined in Transcribe.
Default: Empty
add_prefixes=
Use this to override Transcribe's URL prefix settings for specific languages.
Values: Pipe-separated list of languages defined in Transcribe.
Default: Empty