Skip to content

Instantly share code, notes, and snippets.

@soffes
Created March 17, 2009 19:17
Show Gist options
  • Save soffes/80725 to your computer and use it in GitHub Desktop.
Save soffes/80725 to your computer and use it in GitHub Desktop.
<?php
// See: http://docs.kohanaphp.com/core/kohana
$lang = ((cookie::get('lang')) ? cookie::get('lang') : Kohana::config('locale.language'));
Kohana::config_set('locale.language', $lang); // Set the system language
setlocale(LC_TIME, $lang);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment