Foreign Language Browser detection

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
canuck
Posts: 39
Joined: Thu Jul 08, 2004 11:58 am

Foreign Language Browser detection

Post by canuck »

Hello.

There are still some bugs concerning a browser language other than those included in the pack, it should default to the faq's default, (assigned in the config), but it doesn't:

For instance, with PT:

In the main FAQ page:

Code: Select all

Warning: main(lang/language_pt.php): failed to open stream: No such file or directory in /home/canuck/public_html/faq/index.php on line 67

Warning: main(): Failed opening 'lang/language_pt.php' for inclusion (include_path='.:/usr/local/apache/www/lib/php') in /home/canuck/public_html/faq/index.php on line 67

Warning: main(lang/language_pt.php): failed to open stream: No such file or directory in /home/canuck/public_html/faq/index.php on line 70

Warning: main(): Failed opening 'lang/language_pt.php' for inclusion (include_path='.:/usr/local/apache/www/lib/php') in /home/canuck/public_html/faq/index.php on line 70

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 192

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 194

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 195

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 196

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 207

Warning: Cannot modify header information - headers already sent by (output started at /home/canuck/public_html/faq/index.php:67) in /home/canuck/public_html/faq/index.php on line 208
And it eventually loads the page with too many parts missing, with all these errors on top.

In the admin area, it doesn't load anything at all, only giving out these:

Code: Select all

Warning: main(../lang/language_pt.php): failed to open stream: No such file or directory in /home/canuck/public_html/faq/admin/index.php on line 63

Fatal error: main(): Failed opening required '../lang/language_pt.php' (include_path='.:/usr/local/apache/www/lib/php') in /home/canuck/public_html/faq/admin/index.php on line 63
I hope this helps.
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I fixed the bug in the upcoming fifth release candidate. Thanks for the bug report.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply