> Any idea how can I make for example pagination use the current locale > in a model that $actsAs Translate?
OK, got through a part of it, but sadly paginator count doesn't work... What I have in find conditions is: $conditions['I18n__title.content LIKE'] = '%' . $this->data['Article']['title'] . '%'; Proper records are retrieved, but since the paginator count query uses different syntax what I end up with is: 1054: Unknown column 'I18n__title.content' in 'where clause' Query: SELECT COUNT(DISTINCT(`Article`.`id`)) AS count FROM `articles` AS `Article` INNER JOIN `i18n` AS `I18nModel` ON (`Article`.`id` = `I18nModel`.`foreign_key` AND `I18nModel`.`model` = 'Article' AND `I18nModel`.`locale` = 'eng') LEFT JOIN `article_sections` AS `ArticleSection` ON (`Article`.`article_section_id` = `ArticleSection`.`id`) LEFT JOIN `article_categories` AS `ArticleCategory` ON (`Article`.`article_category_id` = `ArticleCategory`.`id`) LEFT JOIN `statuses` AS `Status` ON (`Article`.`status_id` = `Status`.`id`) WHERE `I18n__title`.`content` LIKE '%article%' Any quick suggestions? I'll try to get through this over the weekend and get back with my ideas. Regards, Piotr --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
