I believe there are a lot of advantages of adding support for the Rules module for i18n.

One such example I found today was when I used the Node Limit Number module to limit creation of nodes of certain content types to 1 per user. Since translated versions also counts as nodes the rule blocked the possibility to translate nodes by the same user.

A workaround for the problem can be found in this comment to the #586064: Node Limit Number for Drupal 6 - FEATURES REQUEST ticket for that module by adding custom PHP code to check if the new node is a translation or not.

It is not an optimal solution since it only works correct if the author of the original node and the translated is the same.

Right now I have set the content type to synch the author from the original to the translations as another workaround.

More information on how I solved this can be found in this blog post I wrote about it.

Since Rules also can be used to create workflows, among other things, adding a few condition rules to the i18n module would make a lot of elegant solutions possible.

CommentFileSizeAuthor
#4 i18nsync-rules-integration.patch2.24 KBgnindl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greg.harvey’s picture

Version: 6.x-1.5 » 6.x-1.x-dev

+1

This will really help the i18n Auto Translate module as well. We have a 'bug' which is a direct result of Rules not having sufficient support for i18n. I was going to implement some rules stuff in our module, but that makes no sense as there'll be a lot of cross-over, so that stuff should really go in the core of i18n, here.

For reference, the issue I'm closing to take up on this one is here: #888654: Content without multilingual option activated gets translated as well

c-c-m’s picture

+1 to this feature :)

c-c-m’s picture

Could any of the mantainers provide any information about the status of this issue, please? Could you tell us if this issue has been put under consideration or if it has not been considered or, hopefully, you're working on it? Thank you very much for your help, I really think this makes a lot of sense.

gnindl’s picture

Status: Active » Needs review
FileSize
2.24 KB

I did some initial work on rules integration for i18n. It adds an event triggered when a translation is synchronized, before and after the update.

Jose Reyero’s picture

Component: Code » Blocks
Status: Needs review » Closed (won't fix)

Looks good, but seems that no one wanted to test or review the patch.

No new features for 6.x at this poing

mortician’s picture

Status: Closed (won't fix) » Needs work

Any update on this?

joseph.olstad’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)