Links

Translate Launcher strings using Loco Translate

Learn how to translate strings from Launcher to your own language using the free LOCO translate plugin.
Since Launcher is an add-on, Launcher strings cannot be found in the Translation Table of Loco translate. Adding each string from Launcher to Loco translate translation table, might require a lot of manual work and time.
Hence, we introduced an add-on called “Dynamic String Translation”. Using this add-on we can simply add strings in bulk from Launcher to the translation table of Loco Translate and translate it easily in just a few clicks.
Installation of Dynamic String Translation add-on plugin:
Click here to know about how to install Dynamic String Translation add-on and how to setup Loco translate plugin in detail. (Refer to “Installation of WPLoyalty - dynamic string translation addon plugin” section and then refer to “Setting up Loco Translate” section).
I guess, you have successfully installed the add-on plugin and set up loco translate plugin by following the above documentation.
Now, let’s see the below steps in detail:
  • Adding strings in bulk from Launcher to Translation Table of Loco Translate using dynamic string translation add-on
  • Translating the added dynamic strings of Launcher using Loco Translate plugin
Step 1: Adding Strings from Launcher in Bulk to Translation Table of Loco Translate:
1. Navigate to Loco translate -> Plugins -> choose the "WPLoyalty - Woocommerce Points, Rewards and Referral plugin".
2. You can find an "Edit Template" option. Click on it.
3. You will be taken to the “wp-loyalty-rules.pot” file. Here click on the “Sync” option. So that the dynamic strings from Launcher will get added to translation table of “wp-loyalty-rules.pot” file automatically by Dynamic String Translation add-on. Once the strings gets synced and Save it.
4. After saving it, all dynamic strings like strings from Launcher will get added to “wp-loyalty-rules.pot” file of loco translate.
Step 2: Translating the added dynamic strings from Launcher using Loco Translate plugin:
Example:
Let's see how to translate the string "Hello {wlr_user_name}" from Launcher.
1. Navigate to Loco translate -> Plugins -> choose the "WPLoyalty - Woocommerce Points, Rewards and Referral plugin".
2. You can find an "Edit" option. Click on the "Edit" option.
3. Now, you will be taken to the .po file of "wp-loyalty-rules-fr_FR.po" for French. Click "Sync" button here too.
So that the strings from "wp-loyalty-rules.pot" will be added to the "wp-loyalty-rules-fr_FR.po" of Loco Translate by the add-on Dynamic String Translation.
4. Now, search for the string "Hello {wlr_user_name}" from the .po file of "wp-loyalty-rules-fr_FR.po", add French translation for that string and save it.
Here is the screenshot of Launcher in French:
By doing the above steps, all strings from Launcher will get added to the translation table in a one go. You can simply then translate it just by searching for that string.
In short:
  • First install and activate our Dynamic String Translation add-on plugin.
  • Add the strings in bulk to "wp-loyalty-rules.pot" file via "Edit template" option, Sync and Save it.
  • Then, go choose the specific language you are trying to translate strings.
  • You will be redirected to wp-loyalty-rules-fr_FR.po file (since I'm translating the string to French). In the French .po file Sync and Save it.
  • So that the bulk dynamic strings from wp-loyalty-rules.pot file will get updated to wp-loyalty-rules-fr_FR.po in a one go
  • Now, you can select all strings from Launcher via loco translate and translate it.
Note:
  • This add-on plugin "Dynamic String Translation" will work only if you are an user of WPLoyalty plugin.
  • This "Dynamic String Translation" add-on is completely free for WPLoyalty users.
Video:
Still unclear ? Please submit a support request. We are always happy to assist you :)