=== Contact Form 7 Polylang Module === Contributors: aurovrata Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z83ZQ2ARSZPC8 Tags: polylang, contact form 7, multisite, contact form 7 extension, contact form 7 module, multilingual contact form 7 Requires at least: 3.0.1 Tested up to: 4.6 Stable tag: 1.2.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html This plugin allows multilingual contact form 7 management using the polylang plugin. == Description == This plugin allows multilingual contact form 7 management using the polylang plugin. Both Polylang and Contact Form 7 need to be installed prior to installing this plugin. Works with miltisite installations too. Please follow the [Installation](https://wordpress.org/plugins/cf7-polylang/installation/) instructions carefully, especially the part about saving your Polylang settings after you have activated this plugin. = Thanks to = Gérard Mathiuet == Installation == 1. Download and install the [PolyLang](https://wordpress.org/plugins/polylang/) plugin, and [Contact Form 7](https://wordpress.org/plugins/contact-form-7/) plugins. Activate both plugins. 2. Download and install the Contact Form 7 Polylang module plugin and activate it. 3. Activate the plugin through the 'Plugins' menu in WordPress 4. Once activated, open the Polylang settings page, Settings->Languages in your admin dashboard. 5. Select the Settings tab and open the section 'Custom Post Types and Taxonomy', ensure that Contact Form checkbox is selected, and save your settings. 6. If you already have Contact Forms created, Polylang settings page should notify you that there are some content that needs to be assigned to the default language. Click on the link, this will assign all your current contact forms to the default language you have selected in your Polylang settings. 7. Now open the Contact Form table list and you should see the polylang language columns added to your form table. You can edit forms and change their language assignment, as well as associate translated forms. == Frequently Asked Questions == = My new forms are not translated in my language = If you found that you installed the plugin correctly and are able to manage your forms using the polylang language columns, then it is likely that the language your have selected does not have a translation for the Contact Form 7. You can visit the following [translation project page](https://translate.wordpress.org/projects/wp-plugins/contact-form-7) to see the status of the translation CF7 for your language. = Contact Form 7 is translated in my language, but does not load = If you have checked the above linked page and are able to find your language, then you can download your language translation pack manually. It is possible that there is mismatch between the local code used by Polylang and that assigned to your language pack. Open the translation page for your specific language (click on the language row in this [table](https://translate.wordpress.org/projects/wp-plugins/contact-form-7)). Scroll to the bottom of the page and selected the Export format from the 2nd dropdown to 'Machine Object .mo', then click the Export link. This will download a zip flie. Extract the content of this file in the `plugins/contact-form-7/language/` folder. Rename file name so that the local of the file matches the local of your language as defined by Polylang. When you create a new form in your language you will find the polylang locale code in the url attributes of your browser address bar. So if your locale is tk_TK, and you have dowloaded and extracted a file called contact-form-7-tk.mo, rename it to contact-form-7-tk_TK.mo. This will ensure the correct file is picked. = My forms are only partially translated = This is because the translation in your language have not be completed. You can help the community by completing the translation [online](https://translate.wordpress.org/projects/wp-plugins/contact-form-7). You will need to sign up for an account if you haven't got one already and login. You can also complete the translation on your computer by following the above procedure to download the current status of your language translation. Insread of the 'Machine Obect .mo' format, select the 'Portable Object .po' format. Extract the file from the zip archive your download and edit the file using the [PoEdit(or)](https://poedit.net/). You can then save your translation in the 'Machine Object format' and follow the remaining instructions above to make sure your new translation file is picked up by the plugin. == Screenshots == 1. If you don't see the polylang links in your contact table list, head to the Polylang settings and save the existing post content to the default language. (Step 6 in the installation instructions) 2. Contact form table list with Polylang language columns. 3. Creating a new translation form, with polylang language metabox options. 4. There is a bug in the integration which fails to pick the fact that language options have been saved. So even after click the 'Save' button you will see the familiar alert window popup, you can safely ignore the message. == Changelog == = 1.2.3 = * Fixes admin table bug due to CF7 plugin v4.5 update = 1.2.2 = * Enable usage for PolylangPro. (Contributed by Gérard Mathiuet) = 1.2.1 = * Auto-deactivation of plugin if either Polylang or CF7 plugins are deactivated = 1.2 = * fixed a bug that prevented translation links to be loaded in the cf7 edit page * reintroduced the select language in the cf7 admin page * fixed the 'Add New' button in the cf7 admin page * fixed the delete button redirect * fixed the delete of polylang translation links when a form is deleted = 1.1.2 = * remove translations column from table list when deactivating = 1.1.1 = * fixed a bug that prevented deletion of translation when forms are deleted/trashed = 1.1 = * Changed the way the contact form table list is displayed * better saving of translations = 1.0 = * first version