Stwórz profil

Musisz wpisać swoje imię
Musisz wpisać swoje nazwisko
Musisz wpisać poprawny e-mail
Musisz wpisać hasło (min. 8 znaków)
Musisz zaakceptować regulamin

konto usunięte

Temat: multi lang

o co chodzi z tymi językami bo juz tracę cierpliwość, wszystko ustawiam jak trzeba i dostaje takie błędy:

ErrorException [ Fatal Error ]: Call to undefined function __()

SYSPATH/classes/kohana/kohana/exception.php [ 56 ]

51 // Save the unmodified code
52 // @link http://bugs.php.net/39615
53 $this->code = $code;
54
55 // Set the message
56 $message = __($message, $variables);
57
58 // Pass the message and integer code to the parent
59 parent::__construct($message, (int) $code);
60 }


{
Fatal error: Call to undefined function __() in /home/public_html/system/views/kohana/error.php on line 63


na 56 linijce się podświetla

w bootstrap mam tak routing ustawiony:
Route::set('default', '(<lang>/)(<controller>)(/<action>(/<id>))', array('lang' => '(en-en|de-de|es-es)', 'id'=>'.+'))
->defaults(array(
'lang' => 'de-de',
'controller' => 'page',
'action' => 'home',
));


w katalogu i18n mam
-en
--en.php
-de
--de.php
-es
--es.php

pliki miałem również bezpośrednio w katalogu i18n
i nic

w kontrolerze mam tak:
  	public function action_home(){
$this->template->title = __('Hello');
$this->template->content = View::factory('page/home');
}
18.07.2011, 02:44

Michał Filik Programista /
Webdeveloper

Temat: multi lang

Możliwe, że chodzi o to: http://forum.kohanaframework.org/discussion/8273/solve...
30.10.2011, 10:53



Wyślij zaproszenie do