Translations

Want to update the messaging on your landing page, or translate it to another language. The translation section is what you need.

James Dodd avatar
Written by James Dodd
Updated over a week ago

Please Note: that this section goes through some aspects of web development so a basic understanding of HTML and CSS will be beneficial.

Translations are used to translate fields on to your landing page.

You can change the names for the generic error handling as well as the fields that appear and your site and the place holders.

For Editors

e.g. Changing Surname to "Lastname" would change the field name on the form

Adding "please enter a value here..." would display the box with this value.

Screen_Shot_2017-12-11_at_17.51.04.png
Screen_Shot_2017-12-11_at_17.42.24.png

For Developers

We use HTML data attributes to trigger translations such as the example below:

<p data-db-localized-content="DESCRIPTION"></P>

If that's in your HTML code, a new translation for DESCRIPTION would be created for editors to change or translate.

Here are some other tags that can be used.

data-db-localized-alt for image alt attributes

<img data-db-localized-alt="COMPETITION_ALT" />

data-db-localized-title for image or paragraph title attributes

<p data-db-localized-title="FEATURE_1_TITLE">Content</p>

data-db-localized-src for image src attributes

<img data-db-localized-src="COMPETITION_THUMBNAIL" />

data-db-localized-placeholder for input placeholders

<input type="email" data-db-localized-placeholder="F_1_EMAIL_PLACEHOLDER"></input>

data-db-localized-value for input values

<input type="submit" data-db-localized-value="FORM_SUBMIT"></input>

data-db-localized-content-value any inner HTML content of an element

<input type="submit" data-db-localized-value="FORM_SUBMIT"></input>

Competitions

Available translation handles

Handle when used in a repeating block

COMPETITION_NAME
COMPETITION_DESCRIPTION
COMPETITION_TERMS
COMPETITION_THUMBNAIL

Handle format when referenced outside

COMPETITION_{id}_NAME
COMPETITION_{id}_DESCRIPTION
COMPETITION_{id}_TERMS
COMPETITION_{id}_THUMBNAIL

Question Blocks

Available translation handles

Handle when used in a QB

QB_NAME
QB_DESCRIPTION
QB_TERMS
QB_THUMBNAIL

Handle format when referenced outside of a QB

QB_{id}_NAME
QB_{id}_DESCRIPTION
QB_{id}_TERMS
QB_{id}_THUMBNAIL


πŸš€ Need More assistance?

If you're stuck or if this isn't something you or your team is comfortable with, then please open a new chat/ticket (chat icon in the bottom right of the screen) or email support@databowl.com.

We're here to assist with any questions you have, and if required we can quote on actioning work like this for as part of our Marketing Services.

Did this answer your question?