Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. You can use the many Zendesk pre-translated strings by inserting helpers into the page templates.
  2. You can create dynamic content in Zendesk Support. For a list of the manually translated text strings that are managed via dynamic content placeholders, see Dynamic Content UI Text Strings.
  3. You can modify the .js file to programmatically update text from English to Spanish.

...

Here is an example of one place the edX Help Center uses code to control English/Spanish text.

LocationHC templateJS code
Search box text in the Hero space

home_page.hbs

Curlybar code:

{{search submit=true instant=true class='search search-full homepage-search' placeholder='Enter your search terms here'}}

script.js

Code:

// search placeholder change text //
var currentLanguage = $('html').attr('lang').toLowerCase();
if(currentLanguage === "es-419") {
$('.search #query').attr('placeholder','Introduzca los términos de búsqueda aquí'
);}




Related links:

...