The language files of the WordPress Newsletter plugin are separately distributed. There are two reasons for this:
- To reduce the size of the plugin which needs to be installed/uploaded
- To allow you to host the languages in an external folder to prevent it from being overwritten.
You can obtain the language files from Github at: https://github.com/tribulant/wp-mailinglist-languages This folder contains all the .PO and .MO files with the current, available languages.
Only the .MO files are actually used by WordPress. The .PO files are the source, which can be opened with an application such as poEdit: http://www.poedit.net
Follow these steps to use the language file(s) you want:
- Pick the .MO files from Github for the languages that you want to use. For example "wp-mailinglist-de_DE.mo"
- Go to "wp-content/plugins/" in your WordPress installation and create a "wp-mailinglist-languages" folder there.
- Upload the "wp-mailinglist-de_DE.mo" file to "wp-content/plugins/languages/" folder you created.
- If needed, rename the file to match your textdomain. If you are using the lite version, rename it to "newsletters-lite-de_DE.mo" for example.
- Go to Newsletters > Configuration > System > WordPress Related in the plugin and tick/check "Yes, load external language file" for the "Load External Language" setting.
- Ensure that you have the
WPLANG
constant set in yourwp-config.php
file accordingly eg. de_DE
Please note, if you don't tick/check that setting in #4 above, the plugin will look inside "wp-content/plugins/wp-mailinglist/languages/" for a language file.
That's it, the German - de_DE (in this example) language file will now be loaded if the locale is de_DE. In the same manner, you can add more .MO files to that "wp-content/plugins/wp-mailinglist-languages/" folder accordingly.
Follow these steps to update language files:
- Open the "wp-mailinglist-languages" folder distributed with the plugin.
- Pick the .PO file for the language that you want to update for example "wp-mailinglist-es_ES.po" which is Spanish/Espanol.
- Open the .PO file in an application like poEdit: http://www.poedit.net
- Check the settings of the catalog in the application so it scans the correct paths, etc... and run a scan/update on the .PO file.
- Translate/update strings as needed and then save the .PO file. It will automatically generate a new .MO file which can be used with the plugin and WordPress
For any questions or problems, please contact us: http://tribulant.com/support/
Thank you for these wonderful people who contributed in translating the plugin:
- Afrikaans (af_ZA) by Tribulant Software
- German (de_DE) by Peter Schonmann
- Spanish (es_ES) by Juan Llamosas
- French (fr_FR) by Kim Gjerstad
- Hungarian (hu_HU) by Almási Gergely
- Italian (it_IT) by Johnny
- Lithuanian (lt_LT) by Tomas
- Dutch (nl_NL) by Ronald de Caluwe | WebZenz
- Brazilian Portuguese (pt_BR) by Vitor Argos
- Portuguese (pt_PT) by wordpress.mowster.net
- Romanian (ro_RO) by Richard Vencu
- Swedish (sv_SE) by Tomas Lindhoff
- Turkish (tr_TR) by Sersah Namoglu