[Spam] Re: [bbDev] [573] trunk/bb-includes/l10n.php: hard code the path forload_theme_textdomain for now.

Michael D Adams mikea at turbonet.com
Fri Jan 5 18:23:12 GMT 2007


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);
>  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/bbdev/attachments/20070105/1c0de392/attachment.htm


More information about the bbDev mailing list