# Front-end: Text customization and translation

Front-end text customization & translation in HBook – modify all displayed text and upload translation files for the WordPress booking plugin by Maestrel, customization & multilingual setup.

You will be able to modify the text displayed on front-end in the menu **HBook > Text/Translations**.

![hbook-text-menu-item.png](./attachments/hbook-text-menu-item.png)

<a id="listed-languages"></a>

## Listed languages

- If your site language, as set in **Settings > General > Site language,** is different from English (United States), it will appear automatically as well in **HBook > Text**.
- If you use **WPML** plugin, **Polylang** plugin or **QtranslateX**, the languages will be automatically set in **HBook > Text**, once you have set them in the multi-language plugin.
- If you use **another multi-language plugin,** you will need to use the filter [hb\_language\_list](../hbook-documentation/plugin-customization.md#hb-language-list) to list the languages for your website.

<a id="translation-files-for-front-end"></a>

## Translation files for front-end

Translation files for **front-end** (and **back-end**) are included for many languages. To see an updated full list of available translations, please check [here](https://maestrel.atlassian.net/wiki/spaces/KB/pages/34734439/Is+HBook+available+in+different+languages+Do+you+include+translation+files) in our knowledge base. You will find all translation files in **wp-content/plugins/hbook/languages/**. You can get them either from the zip of HBook, once you have extracted it, or navigating to your server files to the mentioned directory.

For **front-end**, the files are in **wp-content/plugins/hbook/languages/front-end-language-files**. They are .txt files.

<a id="import-export-language-files-for-front-end"></a>

## Import/export language files for front-end

![languages-export-import.png](./attachments/languages-export-import.png)

**Import a file**

1. Select the language for which you wish to import the file.
2. Click “Browse” to upload the .txt file to import
3. Check/Uncheck the box to indicate if you wish to **overwrite existing strings**
4. Click on “Import”

> [!INFO]
> You can as well import .po file, if you work with a 3rd party translation service, for example.

**Export a file**

5. Click on the language you wish to export. It will download a .txt file. It can be handy to save a copy of your translations, or to import it on another HBook site, for example.

<a id="modify-or-and-translate-text-displayed-on-front-end"></a>

## Modify or/and translate text displayed on front-end

The **Front-end strings** section is dedicated to customizing and translating any text displayed by HBook. The **Text** page allows you to view and edit all **front-end strings** displayed by HBook, for **all the languages** you have set. There is a handy list of sections so you can easily identify the various sections and navigate to the section where you wish to modify/translate strings.

![text-strings.png](./attachments/text-strings.png)

1. You can choose to show only the **untranslated strings**, so you can work on the missing translations easily.
2. You can easily navigate to the **text** **section** where the text appears.
3. You will see the text for all listed languages, and you can modify/add a text.
4. When available, the list of **variables** you can use is indicated.

> [!WARNING]
> Note that text starting with “%” are variables and are used to display dynamically information (amounts, number of nights, etc.). It must never be modified or translated.