[wp-hackers] i18n for information in database
jgadbois at gmail.com
Mon Aug 1 13:05:56 UTC 2011
I have a plugin where users can embed calculators on their site. All these
calculators are stored as posts on my main site and all the
fields/formula/etc are custom fields. I've received several user requests
to translate some of these. Is there a standard way to be able to translate
data coming out of the database?
The approach I'm planning on doing is just to wrap the outputs of these
fields in the i18n functions and then write a script to generate a .pot file
from the database. This is sort of working, but I am getting some errors in
my pot file so I may not be escaping properly.
Is this the best way to handle this situation?
More information about the wp-hackers