modxbot / migrate

A testground for migrating issues and other such fun
0 stars 0 forks source link

Event for duplicating context > saving resource #5245

Open bertoost opened 13 years ago

bertoost commented 13 years ago

bertoost created Redmine issue ID 5245

It would be great if there will be an event fired on the time someone duplicates a whole context, for every duplicated resource...

The event (like: OnContextDuplicateResource) should have at least 4 parameters

This is usefull when using Babel plugin for example. Then it will be possible to automatically keep tracking on the translated resources...

bertoost commented 13 years ago

bertoost submitted:

See for my Babel implementation https://github.com/mikrobi/babel/issues/36

Martijn1981 commented 13 years ago

Martijn1981 submitted:

Excellent idea! That would save a lot of people a lot of time!

wshawn commented 13 years ago

wshawn submitted:

Little lost here. Why not provide the means to set the cultureKey in the new context, via Babel upon its creation?

bertoost commented 13 years ago

bertoost submitted:

I don't understand you... I talk about a new event wich should be fired on duplicating a whole context, for each resource. Doesn't have anything to do with cultureKey or other settings... I just put the example for Babel to keep tracking on translation relations