[wp-hackers] i18n for information in database

John Gadbois jgadbois at gmail.com
Thu Aug 4 19:02:29 UTC 2011


Thanks, that helps. I did it like them and spit out a file with all the
strings calling the __ function and just used POEdit to actually generate
the pot file instead of trying to generate the pot file myself like I was
doing previously.

On Thu, Aug 4, 2011 at 10:33 AM, Milan Dinić <liste at srpski.biz> wrote:

> 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
> >
> _______________________________________________
> 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