Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix multiple bugs found after the latest release #38
This pull-request fixes two minor bugs found after the release of version 1.8.4; the first bug appears when the directory where the plugin stores its data is not writable, there is an exception that is not being handled gracefully. The second bug is a typo of the PHP function
This pull-request also adds 100% support for internationalization, it includes the complete POT file for the English language as well as the full translation to Spanish (Latin American dialect). Hopefully, this will help external contributors to continue with the translation process of other languages.
This pull-request also includes a fix for the language file loader when the locale of the website is not supported. he plugin will check which language the website is to configured to use, if the plugin has no support for this language it will try to copy the English POT files (both the raw file and the compiled version) to a file with the same locale as the website. If the files cannot be copied the plugin will force the global locale variable to use English.
An additional fix for the invitation to subscribe to our newsletter is also included here. When the plugin detects that the version number of the plugin that was previously installed is different than the version that is currently installed, it assumes that the plugin has been updated. When this happens it displays a message in the admin dashboard inviting the users to subscribe to our newsletter. However, in some rare cases this fails because the HTTP headers has already been sent and the plugin throws an error. This commit fixes this problem by checking if the HTTP headers has already been sent before the alert is printed.