浏览代码

changed initIdioma() to initLang()

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

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

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

+ 1 - 1
config-sample.php 查看文件

@@ -32,5 +32,5 @@
32 32
 	require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'streams.class.php');
33 33
 	require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'gettext.class.php');
34 34
 	require_once(Absolute_Path.'classes'.DIRECTORY_SEPARATOR.'lang.functions.php');
35
-	initIdioma('en');
35
+	initLang('en');
36 36
 ?>