• 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

L10N

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
5 posts • Page 1 of 1

Postby elpaso » Fri Feb 10, 2006 7:23 pm

Well, localization seems to be a major concern.

I would suggest to use the standard gettext library for localization.

The advantage is that gettext is a well known localization system and has a lot of tools that can help translators.

Just my 2 cents.
elpaso
New member
 
Posts: 3
Joined: Fri Feb 10, 2006 9:08 am
Top

Postby phpfreechat » Fri Feb 10, 2006 7:38 pm

I'm working on a quick i18n localisation system for 0.7 release.
But I don't plan to use gettext because I want the chat works on most of php configurations.
I know gettext is a problem on some php installations so I prefere to make a quick and simple i18n module.
Am I wrong ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby bsemf » Fri Feb 10, 2006 8:33 pm

I agree, kerphi!

I could probably cause a lot of problems, and a simple i18n module is very easy to edit and translate.
btw: Are you planning to let the chat autodetect which language the browser uses??
bsemf
Member
 
Posts: 21
Joined: Thu Feb 09, 2006 9:19 pm
Location: Germany
  • Website
  • ICQ
  • YIM
Top

Postby phpfreechat » Fri Feb 10, 2006 10:36 pm

bsemf wrote:btw: Are you planning to let the chat autodetect which language the browser uses??

No I didn't plan to do that.
But it's a good idea :D

Do you have a piece of code which do that ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby bsemf » Sat Feb 11, 2006 12:02 am

Use the $_SERVER['HTTP_ACCEPT_LANGUAGE'] variable.

for example:
Code: Select all
$lang = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
echo $lang[0];
bsemf
Member
 
Posts: 21
Joined: Thu Feb 09, 2006 9:19 pm
Location: Germany
  • Website
  • ICQ
  • YIM
Top


Topic locked
5 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • 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