Using WPML to translate Password Protected Categories
Password Protected Categories is a WordPress plugin that allows you to create private, hidden product areas within your WordPress website. You can easily translate all of your site’s categories, including password protected categories, using WPML.
What you will need
Please refer to the WPML Getting Started Guide to set up WPML correctly for your site.
Translating your password protected categories
- Install Password Protected Categories.
- Go to Posts → Categories and create one or more password protected categories in the default language of your website.
- Go to WPML → Taxonomy Translation and choose the taxonomy type you would like to translate.
Click the plus icon to add your translations.
Please note: If you have Translate Everything enabled and assign a post to an untranslated password protected category, the category will be translated but may be marked as public. To change this:
- Go to Posts → Categories.
- Using the language switcher at the top of the page, change to the site’s secondary language.
- Click the translated category you would like to be password protected.
- Scroll down to the Visibility section to mark it as Protected and set a password.
Translating your posts and categories
Once your password protected categories have been translated, you can assign them to your posts. WPML offers several options for who can translate your posts:
- Translators who are users of your site
- A professional translation service
To translate content yourself:
- Go to Posts → All Posts.
- Click the plus icon next to the post you want to translate.
- This opens the Advanced Translation Editor where you can add your translations.
- Click Complete to save your translations.
To send content to be translated:
- Go to WPML → Translation Management.
- Choose the posts you want to send to another translator or translation service.
- Choose the languages you want to translate them into and add them to your Translation Basket.
- Select your translator or translation service, and send.
Translating the category login form
No extra setup is required if you restrict categories to specific users or user roles. This is because the categories are restricted to logged in users with the correct privileges. In these cases, they log in using the WordPress login page rather than the password login form that comes with our plugin. WPML translates the WordPress login page by default.
If you are using password protected categories, you can translate the category login form using WPML’s String Translation.
- Go to WPML → Theme and plugin localization and scan the Password Protected Categories plugin for strings.
- Go to WPML → String Translation and search for the text you want to translate.
- Click the plus icon to add translations yourself. Or, you can select all the strings you want to translate and add them to the Translation Basket to send to a translator or professional translation service.
Where to get support
We hope that the above instructions give you everything you need.
As Barn2 are not experts in using the WPML plugin, WPML have kindly offered to support our customers with any problems that you have with translating our plugins using WPML. They will help you to ensure that you have set up WPML correctly, and will liaise with our developers directly if they discover any compatibility issues.