Skip to Content.
Sympa Menu

lyceum-users - Re: [Lyceum-users] i found some problem about locale

lyceum-users AT lists.ibiblio.org

Subject: Lyceum-users mailing list

List archive

Chronological Thread  
  • From: John Joseph Bachir <jjb AT ibiblio.org>
  • To: whatup <whatup.tw AT gmail.com>
  • Cc: lyceum-users AT lists.ibiblio.org
  • Subject: Re: [Lyceum-users] i found some problem about locale
  • Date: Sun, 5 Mar 2006 23:44:45 -0500 (EST)

Hi. Thanks so much! can you make a ticket, and then attatch the patch to it? (you have to attach after you make the ticket)

http://source.ibiblio.org/trac/lyceum/newticket



On Sun, 5 Mar 2006, whatup wrote:

It's a patch for wp-l10n.It can help some people to use other locale.

Index: wp-l10n.php
===================================================================
--- wp-l10n.php (revision 546)
+++ wp-l10n.php (working copy)
@@ -1,8 +1,8 @@
<?php

if ( defined('WPLANG') && '' != constant('WPLANG') ) {
- include_once(ABSPATH . 'wp-includes/streams.php');
- include_once(ABSPATH . 'wp-includes/gettext.php');
+ include_once(ABSPATH . WPINC . '/streams.php');
+ include_once(ABSPATH . WPINC . '/gettext.php');
}

function get_locale() {
@@ -75,7 +75,7 @@
global $l10n;

$locale = get_locale();
- $mofile = ABSPATH . "wp-includes/languages/$locale.mo";
+ $mofile = ABSPATH . WPINC ."languages/$locale.mo";

load_textdomain('default', $mofile);
}
@@ -94,4 +94,4 @@
load_textdomain($domain, $mofile);
}

-?>
\ No newline at end of file
+?>
_______________________________________________
Lyceum-users mailing list
Lyceum-users AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/lyceum-users


--
http://lyceum.ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page