Translating Better Sharing
The Better Sharing block and templates are fully translatable through the combination of the admin UI and the provided language template file (POT).
For text strings that appear on the front end templates including placeholder text in fields, these strings can all be updated to the preferred language by directly editing the
block templates.
For text strings that appear as field labels and other static text, these are included within the provided POT file located in /better-sharing/languages/ which is accessable by 3rd party tools to provide translations on the fly.
Translating the POT file
- Navigate to the plugin's code directory to /better-sharing/languages/
- Save a copy of the better-sharing-wp.pot to work from with the translation software (i.e. POEdit, etc.)
- Open the better-sharing-wp.pot with the translation and select option to create a new translation with the POT file,
- Select the language of the translation.
Note: this will usually set the ISO language code for the translation; however, it is suggested to confirm the correct code is used - Select the Source Text to be translated then enter the preferred text in the Translation field. Do NOT alter the Source Text, otherwise the translation will not work.
- Save the translated file as better-sharing-wp-xx_XX.po where xx_XX is the language code of the final translated file.
- Upload both the better-sharing-wp-xx_XX.po and compiled better-sharing-wp-xx_XX.mo files to the /better-sharing/languages/
Important note: if the translation does not work, ensure that both the PO and MO files have been named correctly with the matchign language code as the WordPress installation (i.e. the Settings » General » Site Language) and have been uploaded to the /better-sharing/languages/ directory. The PO file informs the site as to what text to change; however, the MO file is what displays the new text.
Related Articles
Customizing the Better Sharing Email Template for IgnitionDeck
Better Sharing automatically creates a sharing block and email template that can be further customized. The email template, located in Better Sharing » Email Templates, can be edited to accomodate custom messaging and has a set variables that are ...
Installing Better Sharing
There are three (3) ways to install the Better Sharing plugin on your WordPress website. 1. Keyword search via the WP Admin » Plugins menu Navigate to the WP-admin Dashboard » Plugins Select ‘Add New" from the top of the page. Search the list using ...
Adding Better Sharing to webpage
If you are using Better Sharing as an AddOn for AutomateWoo – see here instead. Once installed – You will need to add your Better Sharing UI to a webpage of your choice. This can be achieved in one of two ways: Add Better Sharing from the WordPress ...
Install Better Sharing for IgnitionDeck Crowdfunding
The Better Sharing IgnitionDeck integration automatically inserts the sharing buttons in the three most strategic locations (project page, purchase receipt, and creator's dashboard) for sharing crowdfunding projects and prepopulate the share modal ...
Activate Better Sharing for IgnitionDeck Crowdfunding
To activate the IgnitionDeck integration: Navigate to Better Sharing » Integrations Better Sharing Integrations Toggle the option to enable Better Sharing: Enable integration for IgnitionDeck CrowdfundingFor more information on Better Sharing + ...