Appointments + Changing service provider terminology

I'd like to change the terminology of Service Provider to 'Therapist' on the frontend of the site. Is there a place i can do that. For example instead of it saying: Please choose a service provider: is would be better to say: 'Choose a Therapist'

  • Alexander
    • DEV MAN’s Mascot

    Hi @mgleach,

    These options aren't available from within the plugin, so we have two options.

    1. You can modify the plugin code directly. This would be the fastest, but you would need to make the changes again each time you update.

    2. You can create a "translation" for Appointments+ Using the same technique that would be used when translating to another language, we could change the instances of certain words to be different. This option might take a bit longer to implement, but would be more of a long term solution.

    Included with all of our plugins is a language folder. You would need a tool like Poedit to work with this included po file. But this will allow you to create your own "translation" of sorts of this plugin. http://codex.wordpress.org/Translating_WordPress#Translating_With_Poedit

    Let me know what option you would prefer and I can elaborate further if needed.

    Best regards, Alexander Rohmann

  • Alexander
    • DEV MAN’s Mascot

    Sure!

    1. First you'll need to download and install Poedit. You can get it here: http://www.poedit.net/

    2. Download Appointments+ and unzip the file. Take a look in the languages folder. You'll see "appointments.pot" This is the language template file provided by the plugin developer to allow it to be translated by Wordpress

    3. Run Poedit, and open up that .pot file. You will see the list of every text that is included with the plugin.

    4. Go through the list, and for each time you wish to change something, first click it in the list. You will see the "Source text" box update. Now just enter what you wish to be included instead of that text in the translation box.

    It's a long list, so to quickly find instances of "Service Provider" be sure to use the "find" function (cmd+F on Mac, and ctrl+F on PC)

    5. When you're done translating, click "Validate" to make sure there aren't any errors.

    6. Now save the file. This will automatically create a .mo file. This is the compiled version of your translation that Wordpress can read faster than the full text version.

    7. Rename the .mo file to "appointments-en_US.mo"

    8. Upload to your site and place in the languages folder of appointments+ (wp-content/plugins/appointments/languages)

    9. Tell Wordpress to look for translations. This can be done by placing the following line in your wp-config.php file:

    define('WPLANG', 'en_US');

    Hope this helps you out! Let me know how it goes and if you need clarification on any of the steps!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.