[Spam] Re: [bbDev] [573] trunk/bb-includes/l10n.php: hard code
the path forload_theme_textdomain for now.
Aditya Naik
so1oonnet at gmail.com
Fri Jan 5 18:24:44 GMT 2007
duh!
On 1/5/07, Michael D Adams <mikea at turbonet.com> wrote:
>
> On Jan 5, 2007, at 10:04 AM, Aditya Naik wrote:
>
> wouldnt it be prudent to check for the file before including?
>
>
> load_textdomain() should do that for us already.
> Michael
>
> On 1/5/07, m at wordpress.org < m at wordpress.org> wrote:
> >
> > hard code the path for load_theme_textdomain for now. Fixes #527
> >
> > --- trunk/bb-includes/l10n.php 2007-01-04 01:46:28 UTC (rev 572)
> > +++ trunk/bb-includes/l10n.php 2007-01-05 18:00:40 UTC (rev 573)
> > @@ -86,7 +86,7 @@
> > function load_theme_textdomain($domain) {
> >
> > $locale = get_locale();
> >
> > - $mofile = get_template_directory() . "/$locale.mo";
> > + $mofile = BBPATH . "my-templates/$locale.mo";
> > load_textdomain($domain, $mofile);
> > }
> >
> >
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev
>
>
>
--
drop by at http://www.adityanaik.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/bbdev/attachments/20070105/30d84c05/attachment.htm
More information about the bbDev
mailing list