Plugin Translation with Loco Translate
Plugin Translation with Loco Translate
Knowledge Base
-
WooRewards
0
- MyRewards (Free Version) 5
- Getting Started 2
- Tutorials 4
- Features 13
-
Actions
23
- Spend Money
- Place an order
- Place a first order
- Buy Specific Products
- Buy in categories
- Product Review
- User registration
- Birthday
- Visit a post, page or url
- Send a referral email
- Referee registration
- Referee spends money
- Referee Orders
- Referee buys products
- Referee buys in categories
- Share on social networks
- Visitor clicks a social share
- Receive Badges
- Registration Anniversary
- Post a comment
- Click an image
- Publish a post
- Recurrent Visit
- Rewards 11
- WooCommerce Display 4
- Emails 7
- Shortcodes 7
- API 8
- Developer Resources 2
-
Add-Ons
12
- The Newsletter Plugin Subscription
- MC4WP Mailchimp subscription
- Points and Rewards System Limitation
- Referrals Information
- Points History Excel Export
- Points for Coupon
- Settings Migration
- Subscription Coupon Reward
- Partial Refund Reward
- The Scheduler
- Delayed and Recurring Points
- Points Synchronization
- Play Together 2
-
Translations and WPML
2
- Multilingual website with WPML
- Plugin Translation with Loco Translate
- Changelog 1
- Knowledge Base
- WooRewards
- Translations and WPML
- Plugin Translation with Loco Translate
If you don’t find your language, or if it’s incomplete in the default language pack, you can add your own translations. In order to do that, you will need the Loco Translate plugin.
Download and install Loco Translate
Go to WordPress.org and download the Loco Translate plugin.
Install it on your WordPress website like any other plugin.
Translate the plugin
Go into Loco Translate → Plugins.
In the Plugins list, fill the research box to find “woorewards” (1) :
The important thing here are the “Sets” (2). You have 3 Sets to translate.
Click on “WooRewards” to open the Sets screen.
What are “Sets” ?
Sets are the different files required by the plugin. WooRewards requires 3 sets :
- WooRewards (woorewards-lite) : All about the Free version
- LWS AdminPanel (lws-adminpanel) : Default elements from our core build
- WooRewards PRO (woorewards-pro) : All about the Pro version
Check if your language is already inside each Sets. Here, for example, the sets for “French” filtered :
Adding a New language
As previously said, you will need to add a new language in every set to be fully translated.
Click on the “New language” on any set :
Choose your required language (1), and select “languages/loco/plugins/….” as location (2).
Warning
If you select the “Author” location, you may lose the file by updating the plugin.
Click on “Start Translating”.
Translate each strings.
Now you need to translate each string that Loco Translate could find inside the Set.
Select the sentence to translate (1), you will see the source text on (2), and you have to fill the translation on (3).
When all strings are translated, click on “Save” button (4).
We recommend you to regularly save your translation, not only once at the end.
Note : some source text will show you dynamic sentences using “%s”. That means that it will be replaced by the value found for the user, at the moment it is shown. Replace them inside the translation where it should be.
Editing a set’s language
WooRewards has a community that sends us some translation files, included in each release. But these files generally have some missing sentences.
Click on the required language to open it, and first click on the “Sync” button.
You will get a small report on the top.
Now you can edit all necessary sentences and click on Save.