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:
my messages

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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -