Freaking i18n is screwing up my queries

drewish - June 3, 2008 - 21:02
Project:Active Translation
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Even after turning off the i18n query rewriting it's still getting up in my queries. I'm just going to say screw it and disable their query re-writing by calling i18n_selection_mode('off');.

It's heavy handed but if they ignore the setting there's not much I can do, I've got a hook_requirements warning that the two don't play nice so users have some notice.

AttachmentSize
active_translation_i18n_rewrite.patch903 bytes

#1

drewish - June 3, 2008 - 21:04
Status:patch (reviewed & tested by the community)» fixed

committed to HEAD.

#2

Bo Kleve - June 12, 2008 - 19:02
Status:fixed» patch (code needs work)

Hi!

I installed the updated version today and that stopped my testsite working with PHP Fatal error:  Call to undefined function i18n_selection_mode() in /usr/share/drupal-6.2/sites/all/modules/active_translation/active_translation.module on line 299.

I didn't have i18n installed, so the i18n_selection_mode('off'); line needs to have a check if i18n is installed.

/BoK

#3

drewish - June 12, 2008 - 19:07
Status:patch (code needs work)» patch (code needs review)

ah, good call... totally a dumb error. mind testing out this fix?

AttachmentSize
active_translation_266314.patch952 bytes

#4

drewish - June 13, 2008 - 17:40
Status:patch (code needs review)» fixed

went ahead and committed this to HEAD.

#5

Anonymous (not verified) - June 27, 2008 - 17:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.