[wp-hackers] i18n for information in database
Milan Dinić
liste at srpski.biz
Thu Aug 4 14:33:33 UTC 2011
Look at wp-admin-credits.php, it has what you want:
https://core.trac.wordpress.org/browser/trunk/wp-admin/credits.php?rev=18393
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
> 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?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list