On Your Site
Local Development
Site Code
Guides
Site Configuration
Content Management
Forms
Form API
Templates
Content Management
Translations
Translations are strings of text that are translated depending on the country and language of the Dijon Platform campaign being displayed. They can be edited in the WYSIWYG editor.
Translations apply across your Dijon Platform site, so are useful for button labels, form input labels and other text you don't wish to change per campaign.
__('String')
To include some text which you wish to be editable as a language string in your templates use the template function __()
Example
<h2>{{ __('Monthly') }}</h2>
uneditableTranslation('String')
When you are placing a translation somewhere that it cannot be edited such as in
a input placeholder attribute, you can use the uneditableTranslation
template
function.
Example
<input type="text" id="address_1" name="address_1"
placeholder="{{ uneditableTranslation('Your address...') }}">