The Events Calendar
Translate "category" (4 posts)

  1. Ivan_hi
    Posted 2 years ago #


    I'm trying to translate the term "category" from the template single.php but I can't.

    I have <?php tribe_meta_event_cats(); ?> and I imagine here is where I should translate it for "Categoría" but I have tried to print `<?php _e('Categoría:', 'tribe_meta_event_cats'); ?> and the problem is with <?php tribe_meta_event_cats(); ?> is already print "Category".



  2. Ivan_hi
    Posted 2 years ago #

    I'm working about this and I have managed to translate it in the next way:

    In the folder public/template-tags/general.php I have wrote Categoría insted of Category.

    I tried to upload the file general.php in the folder of the subtheme, where are located other files of the plugin but it doesn't work.

    So I modify it in the original folder.

    Do you know where I should upload it in order to update the plugin without lose the changes?

    I hope it would be usefull for another one.

  3. Andy Fragen
    Posted 2 years ago #

    Try using the following.

    sanitize_title(__( 'category', 'tribe-events-calendar' ))

    It should provide the proper Translation of 'category'.

  4. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Thanks, as usual, Andy!

    Ivan_hi: that help? Do you need anything else here, or can I mark this RESOLVED? If you've got lingering questions, lay 'em on me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic