First make sure you have set your defaul language in the config.php to what
ever you need it to be, in my case is set like this:
$configsite?language? = '*es*';
Then I commented out lines 81-97 like this in* /lib/util.php* : Baically we
are tellin the site to ingnore user and web browser requests and display
ONLY the language we wanted. This measn, user won't have the option to
choose language on their page. It all will be displayed in Spanish or
whatever languge you have it default to)
// If there is a user logged in and they've set a language preference
// then return that one...
// if (_have_config() && common_logged_in()) {
// $user = common_current_user();
// $user_language = $user->language;
// if ($user_language)
// return $user_language;
//}
// Otherwise, find the best match for the languages requested by the
// user's browser...
//$httplang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ?
$_SERVER['HTTP_ACCEPT_LANGUAGE'] : null;
//if (!empty($httplang)) {
// $language = client_prefered_language($httplang);
// if ($language)
// return $language;
//}
It seems to be working for now. I'll let you guys know what I find later
on.
Once they fix the bug I will uncoment the lines and give the option to users
to change languge. But since I am using an all Spanish site, I doubt there
will be need for that.
Hope this helps somebody else,
Good luck
On Mon, Aug 10, 2009 at 8:40 PM, Jorge Cornejo <[email protected]> wrote:
> Is there a way to hard code what language laconica should display.
>
> Other than translating all of the actions and files, is there a way to
> tell laconica (since the option in config.php seems not to work) to
> use just the specified language no matter what the server or web
> browser request?
>
> Even if I am in china and my browser is defaulted to simplified
> Chinese I want the site to display in Spanish.
>
> --
> Jorge D. Cornejo
> [email protected]
> www.xchido.com
>
> "I am an idealist, I don't know where I am going! but I am on my way!!!"
>
--
Jorge D. Cornejo
[email protected]
www.xchido.com
"I am an idealist, I don't know where I am going! but I am on my way!!!"
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev