fbpx
Did you miss our exclusive webinar on Attendee information? Click here to view the recorded session.
How can we help?

Translating WP Event Manager

WP Event Manager is capable of being translated into any language using the standard WordPress localization methods and is not necessarily to be used in the English Language.

All language files are located within the wp-event-manager/languages/ folder. There you can find all language files with extension(.po, mo or .pot). The same languages directory also used for all additional add-ons. We have various languages which have been translated using Google Translate and many of these have been corrected by native speakers.

If your desired language is not currently translated, partially translated or needs correcting, you can edit or create a translation file that will automatically be used when you are viewing the site in this language. If you update a language file, you can send it over to us and we’ll include it in consequent updates for the benefit of all (and so you don’t need to keep replacing the file each update).

Setting up your Language for the WordPress

We need to tell to the WordPress in which language it should run.

For WordPress 4.0 and above Version

  • You can change the language from the Admin panel. Settings >> General >> Site Language.
    Wp Event Manager Poedit Settings

For WordPress 3.9 and below Version

  • Open your wp-config.php file in a text editor and search for:
    define ('WPLANG', '');
    
  • Edit this line according to the .mo file you’ve just downloaded, e.g. for the German spoken in Germany you must add:

    define ('WPLANG', 'de_DE'); 
    

Note that if the .mo and .po files don’t exist for a language code called for in wp-config.php then there is no error message, but the code is still used in language_attributes(). This is useful for those of us whose language is similar enough to en_US not to require translation, but who don’t want en-US as the language tag in the blog, instead of wanting some other variant of English.

For example:

Once you’ve added your language code, save the file. Upload the modified wp-config.php file into the WordPress root directory. Open your browser and go to your WordPress site. It should now display in the newly-installed language. See the complete list of language codes and country codes to find your exact locale.

Translating WP Event Manager Using Poedit

  1. Download and install Poedit.
  2. Find the POT file in wp-event-manager/languages/wp-event-manager.pot
  3. Open the POT file in Poedit.
  4. When the setting Window Pops-up choose your desired language and start translating or Click on the “Create new translation” button and select Your language to translate the string. Here for example, the selected language is German(Germany).
  5. For saving translations in .PO a file, Go to File >> Save as or Save and give file name wp-event-manager-de_DE.
  6. When translations will saved into PO file, then automatically also generate the .MO file at wp-event-manager/languages/.
  7. Upload your PO and MO file to wp-content/plugins/wp-event-manager/languages.
    Wp Event Manager Poedit Translation
    Wp Event Manager Poedit German Translation
    Wp Event Manager Poedit Translation

Updating your translation PO File from POT file

  1. Open up the .po file by double-clicking it, or opening it from within poEdit.
  2. Go to Catalog >> Update from POT file.
  3. The POT file is located within the wp-event-manager/languages folder of the plugin.
    Wp Event Manager Poedit Translation

Generating an MO File automatically on save

  • On the menu, go to File >> Preferences >> General Tab.
  • Be sure that you click “Automatically compile .mo file when saving”.
  • Click OK.
    Wp Event Manager Poedit Translation

Editing/Updating your PO/MO file

  • Open up the .po file by double-clicking it, or poening it from within poEdit.
  • Start translation.
  • Make sure the .po file is also updated.

Translation Using Loco Translate

Loco Translate is a WordPress plugin that provides in-browser editing of PO files used for localizing WordPress plugins and themes. You can then follow the instructions that take you through making a translation.

Translation Using translate.wordpress.org

Translate.wordpress.org is an online tool for translating content. Contributing to these translations benefits all users since they will be pulled into the plugins when downloaded.

Keep Safe Translation Files Before Upgrade Plugin or WordPress.

It is always good to backup the po and mo files since custom translation files inside the plugin directory are lost during automatic update of the plugin by WordPress.With that in mind, you may want to use one of the following alternative methods of keeping translations upgrade safe.

Put Translation files Inside the WP_LANG Directory

You can put po and mo files in WP_LANG directory to keep the safe from plugin updates. This is usually the wp-content/languages/directory.

So for example, if you were Translating Sell Tickets add on , you would put your mo file in wp-content/languages/wp-event-manager-sell-tickets/wp-event-manager-sell-tickets-LOCALE.mo, replacing LOCALE with your language code.

Naming of your MO files must be in the format:

TEXTDOMAIN-LOCALE.mo

For WP Event Manager, wp-event-manager-de_DE.mo

Translating Wp Event Manager
Ashok Dudhat

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close