Selaa lähdekoodia

changed initIdioma() to initLang()

pecesama 17 vuotta sitten
vanhempi
commit
d0e8576f51
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      classes/lang.functions.php
  2. 1 1
      config-sample.php

+ 2 - 2
classes/lang.functions.php Näytä tiedosto

11
   =========================== */
11
   =========================== */
12
 ?>
12
 ?>
13
 <?php
13
 <?php
14
-function initIdioma($lang = "en") {
14
+function initLang($lang = "en") {
15
 	global $locale, $l10n;
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
 	$l10n = new gettext_reader($input);
18
 	$l10n = new gettext_reader($input);
19
 }
19
 }
20
 
20
 

+ 1 - 1
config-sample.php Näytä tiedosto

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