# Translate dynamic strings via WPML

**Why we developed WPLoyalty - Multi-Lingual Compatibility - Dynamic Strings addon plugin ?**

At first, dynamic strings like Campaign/ Reward Title or Campaign/ Reward Description or strings from Launcher will be missing from WPML -> String Translation -> String Table.&#x20;

To add such strings to the string table of WPML, we have introduced an add-on called “Multi-Lingual Compatibility - Dynamic Strings”. Using this addon plugin we can simply add dynamic strings in bulk to the string table of WPML and translate it easily in just a few clicks.&#x20;

\
[**Click here to download the Multi-Lingual Compatibility - Dynamic Strings add-on.** ](https://wployalty.net/add-ons/multi-lingual-compatibility/)

\
**Installation of Multi-Lingual Compatibility - Dynamic Strings add-on plugin:**&#x20;

[Click here to know about how to install the Multi-Lingual Compatibility - Dynamic Strings addon.](https://wployalty.net/add-ons/multi-lingual-compatibility/) (Refer to “Installation of WPLoyalty - Multi-Lingual Compatibility - Dynamic Strings addon plugin” section)

Once the add-on plugin is installed and activated successfully, Navigate to: WPLoyalty -> Add-ons -> "WPLoyalty - Multi-Lingual Compatibility - Dynamic Strings” add-on plugin -> click “Open”&#x20;

Now, you will be taken to the Multi-Lingual Compatibility - Dynamic Strings add-on plugin dashboard:&#x20;

<figure><img src="/files/ogMHGTqslmLWDGVuoCJk" alt=""><figcaption></figcaption></figure>

**Now, let’s see the below steps in detail:**

* Adding Dynamic Strings to String Table of WPML using the add on “Multi-Lingual Compatibility - Dynamic Strings”&#x20;
* Translating the added dynamic strings using WPML

**Step 1: Adding Dynamic Strings to string table using the add on Multi-Lingual Compatibility - Dynamic Strings:** \
**Example:**&#x20;

Let’s see how to add the below Reward title to the string table of WPML via the above add-on and translate it.

**Reward title/ name** - is the title we are giving while creating a Reward.&#x20;

[Click here to know more about how to create Reward in step by step. ](https://docs.wployalty.net/campaigns/creating-a-reward)

<figure><img src="https://lh4.googleusercontent.com/hy2HV4WXkAiZA3CATg5JEUZqHcUJnGCGr1C8c0PNpH32NFD4VDES8S1gzO2LYgDu4-9_8lc2CQPdpXySJOWSM6kE75i7BqUh5LN8LvXEl0OCxGalhxiF7jdKcjl0Bc3_T_nxPaRIV49Zj2ebs6AtqyP8aNkLrRCo8MHoiHn2iL6d5UaxgtLbiF5glsZsOQ" alt=""><figcaption></figcaption></figure>

From the above screenshot, let’s see how to add the string “**Redeem every 10 Points for $1**” to the string table of WPML via Multi-Lingual Compatibility - Dynamic Strings add-on.&#x20;

\
1: Navigate to WPLoyalty -> Add-ons -> "WPLoyalty - Multi-Lingual Compatibility - Dynamic Strings” add-on plugin -> click “**Open**”&#x20;

<figure><img src="/files/D4jXQC1KjUedeQ02CV7P" alt=""><figcaption></figcaption></figure>

2: From the dashboard of WPLoyalty - Multi-Lingual Compatibility - Dynamic Strings, click on the button “**Update Dynamic String for WPML**”&#x20;

<figure><img src="/files/nLHCWALOb9pXJDXysR2n" alt=""><figcaption></figcaption></figure>

3: Navigate to WPML -> Theme and Plugins localization -> select the plugin “WPLoyalty - WooCommerce Loyalty Points, Rewards and Referral”&#x20;

<figure><img src="https://lh5.googleusercontent.com/3f0kMXYwmyGr1hDT0YrdBMeh96p8N96NB21zeGoe6HLt2wfP56EzaAXyqng_0C4NAu6b0DzAS6WZ7tyielXr0LYnqzh8R9o4EppYNJ9YKdKA4ag2sYIV4R7-rDn0iGsGABMQxK25TJZNVqILb0LqWOVABGMseuxq3IyrjcsTjTOOZR5rLgBXzCc77yH7pA" alt=""><figcaption></figcaption></figure>

4: Scroll down and click on the option “**Scan selected plugins for strings**”&#x20;

<figure><img src="https://lh3.googleusercontent.com/NbL18QCeEJM0nv7Y-9E6ZXZn_R31mXjaYj4FRBEOylo-KCHfPrCnOYtpf6mtvzHP2dYAxrCcChxfgPM5z1EsA6ZGfmwMnFJgXJRdCr-du_M6iYjfJ2xar2VMR4FwYcyLTe_DwzlKZOa2khgFD90rjaHsQZnzH95M_cFhcXiMfMZEYmLjYw-5KhGlptYXOA" alt=""><figcaption></figcaption></figure>

5: Once the scanning is done, we can notice that dynamic strings from WPLoyalty get added to the string table of WPML.&#x20;

<figure><img src="https://lh5.googleusercontent.com/IMZ8XhImmtbMYF6wjE5vi19vK22S67Ib2dsj2Q-2zRScZyk4qIE-MSHqvjX8m2_grMyVtHHH1irmXgSXoiD9sPimmD3kFy0yxkHTBbv1MvkN5MBOmREq8ySnQCR1SvOBqo6Pf56WV6b0wo7YkJ0XlwMhuKI5zczC-co4ILNqgeLBcrezL_qPSqbcZ2Ztvg" alt=""><figcaption></figcaption></figure>

<br>

**Step 2: Translating the added dynamic strings using WPML:**&#x20;

1\. Go to WPML -> String Translation

<figure><img src="https://lh3.googleusercontent.com/ygleSojxp_inLy7iJbQhHLslvaF0VhFgmzQFaKKLGN1O7X_fH3CfFHVggsB_wT5IRQeOkDulkjowpN2uWhAOaHZOFNm7RqfgJDgF-GPHbGPfUocXIe6HlJTCHfEldwk74i9-kyO8qIrtdrvZ8_kwSLeonPUW0waBNSzG0g5g4nuSxzMcWzO1g7YBxZrJTA" alt=""><figcaption></figcaption></figure>

2\. Select WPLoyalty plugin in "in domain" section and after loading, you can search for the string (For example -> Reward title: “**Redeem every 10 Points for $1**” ) and click on the **search** option.&#x20;

<figure><img src="https://lh3.googleusercontent.com/pzMEbj8vrj2S580ILrm1oSEuXIZQK9ouu3yPyE9WRJg9pIlCEnkxDJz44NR3df1-irC49Po4EjNyNQsO9mBHu9yjP8w6RZM4n1Cru5d85dslZtCUxO9iNRfO_NYb89Y4Vra6ex-CEU0_Tdpj0haJuzRoiXUWewdkbKZa4fJ5mKSCmkxe0cl43RzsisbV2A" alt=""><figcaption></figcaption></figure>

3\. Then, you can add the translation for respective language (I'm translating the string to "French")  by clicking on "+" symbol, add the translation and enter&#x20;

<figure><img src="https://lh4.googleusercontent.com/f22gxUtsteiaasAUu0o4MFH5ueB1CIvzV0gVs29DFgtRvsTiKkGJDvFHHF9NbfvA20V6Ic6ld4o1eTBEUppzbDEuQgARce3yh5mJkvezOKMaIz8NX_n7D83xbJa4J-ivXxR7Egsjae88i88fQofGrlJYTGEA3mHGXRb97UU3J8jysgudgY2Hfnu_3-RhAA" alt=""><figcaption></figcaption></figure>

Now, we have successfully translated the Reward Title to French. Likewise, we can translate all dynamic strings from WPLoyalty using the addon “Multi-Lingual Compatibility - Dynamic Strings”.&#x20;

**Note:**&#x20;

* This add-on plugin "[**Multi-Lingual Compatibility - Dynamic Strings**](https://wployalty.net/add-ons/multi-lingual-compatibility/)" will work only if you are an user of [WPLoyalty](https://wployalty.net/) plugin.&#x20;
* This "Multi-Lingual Compatibility - Dynamic Strings" add-on is completely free for WPLoyalty users.&#x20;

**Video:**

{% embed url="<https://youtu.be/4A7FMytko5o>" %}

Still unclear ?\
Please submit a [support request](https://wployalty.net/support/). We are always happy to assist you :)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wployalty.net/translating-wployalty/translate-dynamic-strings-via-wpml.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
