WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Translate "category" (4 posts)

  1. Ivan_hi
    Member
    Posted 1 year ago #

    Hi,

    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".

    Thanks

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. Ivan_hi
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Try using the following.

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

    It should provide the proper Translation of 'category'.

  4. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year 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

About this Topic