2014-10-22, 22:14:09
(This post was last modified: 2014-10-22, 22:52:02 by moonspider.)
Hi everyone.
I have an odd request, maybe.
I've been using i18n plugin for my website which runs a graphic story thing. Each graphic page contains 1 custom field stuffed with pictures or code, a few more custom fields for the template, and sometimes page content field is filled with some data.
When I need to create a copy in another language, I'd have to manually copy all the data from every field. I find it very time consuming.
So, the question is: is it possible, and if it is, then how do I modify the plugin so that when I create a copy in other languages the contents of the page and, preferrably, the creDate too, were copied over as well.
I can see that it's probably something in i18n_base/pages.php but I'm still a noob in php and can't quite wrap my head around this. I see that metadata is copied over, then why not some other stuff too.
p.s. also, is there any easy way to return i18n page title?
I have an odd request, maybe.
I've been using i18n plugin for my website which runs a graphic story thing. Each graphic page contains 1 custom field stuffed with pictures or code, a few more custom fields for the template, and sometimes page content field is filled with some data.
When I need to create a copy in another language, I'd have to manually copy all the data from every field. I find it very time consuming.
So, the question is: is it possible, and if it is, then how do I modify the plugin so that when I create a copy in other languages the contents of the page and, preferrably, the creDate too, were copied over as well.
I can see that it's probably something in i18n_base/pages.php but I'm still a noob in php and can't quite wrap my head around this. I see that metadata is copied over, then why not some other stuff too.
p.s. also, is there any easy way to return i18n page title?