[wp-hackers] i18n for information in database
liste at srpski.biz
Thu Aug 4 14:33:33 UTC 2011
Look at wp-admin-credits.php, it has what you want:
2011/8/1 John Gadbois <jgadbois at gmail.com>
> 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
> 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
> from the database. This is sort of working, but I am getting some errors
> my pot file so I may not be escaping properly.
> Is this the best way to handle this situation?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers