Skip to Content.
Sympa Menu

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

lyceum-users AT lists.ibiblio.org

Subject: Lyceum-users mailing list

List archive

Chronological Thread  
  • From: whatup <whatup.tw AT gmail.com>
  • To: lyceum-users AT lists.ibiblio.org
  • Subject: [Lyceum-users] i found some problem about locale
  • Date: Sun, 5 Mar 2006 17:32:54 +0800

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
+?>




Archive powered by MHonArc 2.6.24.

Top of Page