I wonder if there's a way to do this, since I've been trying the nightly build with localization plugin and managed to get the description from the custom data field when I change to German (using switch). I think this is quite an easy way to have descriptions in different languages for those who, like me, doesn't know a lot of php.
But the thing is, the way I'm using Paypal integration uses the custom data field too (checking if there's something written, to have individual prices and sizes, or simply nothing), so I cannot use both at the same time. Also, if I wanted a third language, I'd need another one...
Well, I was wondering if I'd have to mess with mysql to do this. Most of the times I can do things when they require php, but I've never edited a database.
Comments
Suppose you use `|` as your separator. Then you could store
`paypal data|someother data|the third set`
in the custom data. You would then use the `explode()` function to separate out each of the fields:
`$mycustomdata = explode('|', getCustomData());`
then `$mycustomdata[0]` would have the paypal date, `$mycustomdata[1]` would have the someother data and `$mycustomdata[2]` would have the third set.
We really discourage you from hacking the core of zenphoto (which is what you would need to do to create multiple table columns for your extra custom data fields.) Hacking the core makes it hard for you when you want to upgrade and it makes it hard for us to diagnose problems you might someday have.
By the way, is the spanish localization available for download? I'm interested in giving it a try.
EDIT: It works wonderfully, thanks again, sbillard!
What am I doing wrong?
I just did
$custom=getCustomData();