There are a number of ways to set the language(s). The simplest way to configure the languages is to use the Agent Desk:
From the main menu in the Agent Desk select Settings then select the Advanced button.
Ensure that all of the check boxes available to your role are selected. (Select the Technical Labels box if you want to see the actual values.)
Enter the word language into the Filter field. All available (to your role) language-related configuration settings display.
Make your changes, click the Save button then log out and back in to apply the changes.
The locale describes the regional settings for a piece of software, such as a website, or Unblu. The most noticeable aspect of the locale is the language in which the user interface is displayed, but the locale can contain other regional aspects (such as date formats, number formats, and so on).
If your website has only one locale, you can set that locale for Unblu in the configuration. This ensures that the website and Unblu use the same locale (that is, the same language and the same (other) regional settings).
If your website supports multiple locales, then you have to tell Unblu which locale to use.
A very straightforward way of telling Unblu which locale to use is by using the default HTML
lang attribute in the
<html> tag, as follows:
IMPORTANT: Although according to the HTML specification, the
lang attribute can be set on any tag, Unblu only checks the HTML tag to pick up the language.
Unblu supports either language code or language-region code as defined in the IETF’s BCP47, section 2.2.1 (Language), section 2.2.4 (Region), and Appendix A (examples for language-region). If you do not want to set the language for the entire page, you can tell Unblu explicitly what locale to use. To do so, add the (custom) attribute
unblu_locale to the HTML tag as follows:
(Most content management systems will let you add this attribute to all pages with little effort.)
Note that you have to call the function after the snippet, but before the page is rendered. If at all possible, we recommend that you place the call immediately after the snippet.