Home Forums WC Vendors Pro Support How to change the Dashboard tab titles (correct way!)

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10941
    James
    Participant

    Hi guys,

    Sorry to bother you again. The template editing is going well, bar a couple of small issues. Trying to keep it all as simple as possible for the Vendors and because I’m using Listify, there’s no need for any of the settings other than Paypal email. I wanted to change the Nav tab “Settings” to “Paypal Settings”. I noticed the label is applied in class-wcvendors-pro-dashboard.php in public. Is it okay to duplicate this folder/file structure in my theme or is there a filter that can be used in functions.php to prevent issues with updates later?

    Thanks!

    #10947
    WC Vendors Support
    Participant

    If the file is not in the /plugins/wc-vendors-pro/templates/ folder, then it is not a template file and copying it will have no effect.

    See how in the class file it says “‘label’ => __(‘Settings’, $this->wcvendors_pro ), “?

    The __(‘Settings’ in particular — Any time you see __ in front of a string, that means it’s translatable. 🙂 So, if you go in the /languages folder and edit the translation for it using POEdit, you can change any string in the plugin you like!

    #11010
    James
    Participant

    Thanks Ben much appreciated. Will this file not get overwritten in future updates?

    #11012
    James
    Participant

    Sorry I realise that’s a stupid question now. So I have learnt how POedit works now and language files, i’ve created my own mo and po files for EN_GB and followed your guide here and created a folder in languages called wc-vendors with wcvendors-en_GB.po and wcvendors-en_GB.mo both in there. In addition, i have seleted English (UK) as the language in WordPress General Settings. But no luck, the translations haven’t applied?

    #11015
    James
    Participant

    UPDATE: I have managed to get the WC-Vendors Pro translations showing, but i am a bit lost now. I have also translated all of the default language in WC-Vendors but I’m not sure where this should now go? Do I have to merge the WC-Vendors Pro .po and .mo with the WC Vendors files somehow?

    #11017
    WC Vendors Support
    Participant

    All you have to do is put the language files in /wp-content/languages and you should be good to go as long as you’ve defined your language in the wp-config.php file!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.