Support » Plugin: Event Organiser » [Plugin: Event Organiser] Venue bug with 1.4.2 and qTranslate

  • Hi,

    i just made an update from 1.3.6 to 1.4.2 and experienced a severe bug. I’m using qTranslate to have my contents in a second language. Before the upgrade of the venue system, everything worked fine. Now a strange thing happens when i update venues: each time i update a venue, the title from the second language is added once again to both titles. let me give you an example to better understand:

    title first lang: title-de / title second lang: title-en
    after saving the title for both languages is: title-detitle-en

    Seems like the new venue system strips the language tags, which are needed by qTranslate:
    <!–:de–>Title DE<!–:–><!–:en–>Title EN<!–:–>

    Please look into this issue and fix it soon! Thanks a million!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi – is this in the venue’s description? I’ll have a look into it…

    HI Stephen, Any word on this? I was looking into it and it seems like the $Args is being passed into wp_update_term which use sanitize_term($args, $taxonomy, 'db'); to sanitize I think the problem is that its using the db paramerter but i could not find where the description for this is. It seems that using wp_update_term and wp_insert_term both use this. Both of these functions are in wp-includes/taxonomy.php so editing them directly is out of the question. Not sure how to hook in to override this for the plugin

    For now im going to not use qTranslate on the Venue but it would be great to have it working. In a near future update…

    P.S. I only tested this in the Title field but I would assume that it would be the same for the descrption since they are passed in the same array to wp_update_term or wp_insert_term

    (Since 1.3, I think) Venues are just taxonomy terms – but the venue description is handled differently (stored in the venue meta table) to allow for the tinymce support (full HTML etc). So the title/description are handled differently.

    As for the title – WordPress handles nearly all of saving venue titles – and as far as WordPress is concerned it is just a taxonomy term title. Does qTranslate work on other custom taxonomies and the built in category/tag taxonomies?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Event Organiser] Venue bug with 1.4.2 and qTranslate’ is closed to new replies.