浏览代码

Fixed bug on L10n

pecesama 18 年前
父节点
当前提交
c7f3a0fb09
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      classes/lang.functions.php

+ 2 - 2
classes/lang.functions.php 查看文件

@@ -12,9 +12,9 @@
12 12
 ?>
13 13
 <?php
14 14
 function initLang($lang = "en") {
15
-	global $locale, $l10n;
15
+	global $l10n;
16 16
 
17
-	$input = new FileReader(dirname(__FILE__)."/../languages/". $locale ."/lang.mo");
17
+	$input = new FileReader(dirname(__FILE__).DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."languages".DIRECTORY_SEPARATOR.$lang.DIRECTORY_SEPARATOR."messages.mo");	
18 18
 	$l10n = new gettext_reader($input);
19 19
 }
20 20