View Categories

How to Set Up Translation?

The plugin WP Travel is made translation-ready for the release of version 1.0.3.

Here is the list of steps that you need to follow for the translation.

  • In your plugin file, you can find the .pot file inย wp-travel > i18n > languages >wp-travel.pot. Using this file, you can translate into any language you want.
  • Download software like Poedit.
  • Launch the Poedit application.
  • Choose โ€œCreate a new translationโ€ option in the application screenshot :
  • Find strings to translate from the list and provide the translation string in the Translation Box.
  • Save the translation
  • Place the .po and .mo files generated by the software insideย the wp-content > language folderย by creating a folder named wp-travel.

Note: You need to add the prefix wp-travel in the .mo file.

Example:

For Nepali translation, rename the .mo file that is generated from the Poedit software to โ€œwp-travel-ne_NP.moโ€œ.

Finally, in your Admin Dashboard > Settings > General > languages, make sure the desired language is chosen and save your settings.

Translation using the Loco Translate plugin:

If you areย using the Loco Translate plugin, then for the translation, please follow the steps mentioned in the link below:

Loco Translate

Translation using the WPML plugin:

WP Travel plugin is 100% compatible with the WPML plugin. Now the string from the setting section is also made translation-ready with the recent version of the plugin.