• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

different interface languages for different users?

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
3 posts • Page 1 of 1

Postby acker » Thu Jul 05, 2007 4:37 am

I guess the interface language(English, French etc.) is determined by server during initialization. What if I do want to change it? That means ppl in the SAME chat room can see different interface languages regardless of the chat content.

I can think of 2 possible cases, first is using only 1 chat room and the interface language is changable; the other is using multiple chat rooms, each with a different language option, and the chat content is synchronized.

what are the components I need to code on in the above 2 cases?

The reason I want to do this is, I am doing research on machine translation, and i'm planning to build a chatroom where ppl using different languages can communicate with each other (by doing real-time machine translation).

thank you!
acker
New member
 
Posts: 2
Joined: Thu Jul 05, 2007 4:00 am
Top

Postby phpfreechat » Thu Jul 05, 2007 1:57 pm

You can try to put "language" parameter in the "_dyn_params" list in src/pfcglobalconfig.class.php
So that this parameter will not be cached and you will be allowed to give a different language to each users using the $params array.

Keep me informed if it works.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby acker » Sun Jul 08, 2007 5:08 pm

Thanks kerphi. I tried the following:
use a welcome page to let user select language, which will then be passed to index.php as url query. e.g. 'http://localhost/phpfreechat/index.php?lang=en_US' (could be other languages)
Then i used $params["language"] = $_GET['lang'] to set up the params

this works on version 0.9 but not 1.0 beta 11, it will halt at the loading chat screen. I really want to make it work on 1.0 coz it's much beautiful and with more functions.
acker
New member
 
Posts: 2
Joined: Thu Jul 05, 2007 4:00 am
Top


Topic locked
3 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub