php - Gettext not working after rebooting -
i'm using gettext in webpage translations , localization. yesterday, working perfectly, , shutted down computer because had go sleep... (so normal! hahahaha).
but now, today, when turned on computer, seemed gettext wasn't working, showing me default language (english) instead of desired language (spanish), having translations in right place. gettext code:
$lang = $_session['lang']; $domain = 'messages'; $language = $lang; setlocale(lc_all, 'en_us.utf8'); putenv('language=' .$language); if( env != 'live' ){ // reset caching nocache simlink "." bindtextdomain($domain, dirname(__file__) . '/../locale/nocache'); } bindtextdomain($domain, dirname(__file__) . '/../locale'); bind_textdomain_codeset($domain, 'utf-8'); textdomain($domain);
and have:
also, in $_session['lang'] have set 'es_es' string, assign spanish language.
want add use ubuntu, apache, php , things installed in it.
tried restarting apache didn't give result.
what's happening me? can repair it?
thanks!
Comments
Post a Comment