[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Debian-sf-users] how to set a default language?
From: |
Soon-Son Kwon |
Subject: |
Re: [Debian-sf-users] how to set a default language? |
Date: |
Fri, 28 Jun 2002 09:07:33 +0900 |
User-agent: |
Mutt/1.2.5i |
I could set the default language by editing .../www/include/BaseLanuage.class.
The last line:
---
return db_query("select * from supported_languages where language_id='1'")
---
sets the default language when the user does not have any preference yet.
Changing the language_id number will set the default language....
I think this can be applied to 2.6.x also.
Thanks very much~~
p.s. BTW, could you please let me know when will the next version of
2.5.x be released? I am eagerly waiting for it...
I need a toy for this weekend. :-)
On Thu, Jun 27, 2002 at 04:48:07PM +0200, Roland Mas wrote:
> Soon-Son Kwon (2002-06-22 10:45:51 +0900) :
>
> > Can anyone please let me know if a user connects to the
> > sourceforge(before logging in), how can I set a default language for
> > him?
> >
> > For now, English is the default language. But for me, I would like
> > to set Korean the default language when he/she first connects to it
> > because most of my users are Koreans.
> >
> > Any ideas? (I am running 2.5.X)
>
> Quick and dirty idea: copy BaseLanguage.class to English.class (so
> that you keep a full English class), then copy Korean.class onto
> BaseLanguage.class.
>
> Cleaner solution: edit www/include/pre.php line 155 and around.
> What would be an interesting addition for the package (2.6 only,
> please) is a nice Debconf question, a configuration variable, and so
> on. If you happen to have too much time on your hands :-)
>
> Roland.
> --
> Roland Mas
>
> The cherry blossom / Tumbles from the highest tree / One needs more petrol
> -- in Good Omens (Terry Pratchett and Neil Gaiman)
>
> _______________________________________________
> Debian-sf-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/debian-sf-users
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
(o_ **WTFM**
(o_ (o_ //\
(/)_ (/)_ V_/_ http://kldp.org
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*