Getting Started

Header & Footer

Pages & Sidebar

Booking System

Translation

Change theme/plugin text

Theme Options

Plugins

Other

Soho Hotel Documentation

How to change theme/plugin text

Open a support ticket

The easiest way to change the theme or plugin text is with PoEdit: http://poedit.net (You can use the free version). Although PoEdit is a language translation tool is can also be used to change text within the same language by "translating" English to English.

How to change theme text:

  1. Open the theme language pot file in PoEdit sohohotel/framework/languages
  2. Edit all the text strings you want to change in PoEdit
  3. Save the file as en_GB in the same folder you originally got it from sohohotel/framework/languages
  4. Login to WordPress and go to Settings > General and set Site Language to English UK

How to change plugin text:

  1. Open the plugin language pot file in PoEdit sohohotel-booking/languages or/and sohohotel-shortcodes-post-types/languages
  2. Edit all the text strings you want to change in PoEdit
  3. Save the file as sohohotel_booking-en_GB in the same folder you originally got it from sohohotel-booking/languages or/and sohohotel-shortcodes-post-types/languages
  4. Login to WordPress and go to Settings > General and set Site Language to English UK

Why not just edit text directly in the theme files?

This would make updating very difficult, since every time you update you would need to change all the text strings again - If you use PoEdit you do not encounter this problem.

Why are we saving the file as en_GB and setting the WordPress language as English UK?

If your WordPress default language is English US but we need to switch to a different language so WordPress uses the language file you created. You don't have to use English UK if you don't want to, you can use any language which is not your WordPress default language. Here's a list of all the language codes WordPress supports: https://make.wordpress.org/polyglots/teams

Why are we naming the language files differently for theme and plugin translation?

This is just the way WordPress works, when you translate a theme you should save the file as xx_XX and when you translate a plugin you should save it as pluginname-xx_XX.