Changed Language to French and it messed up

Please report bugs here!

Moderator: Thorsten

Post Reply
Anim
Posts: 8
Joined: Sat Sep 24, 2005 5:07 pm

Changed Language to French and it messed up

Post by Anim »

Hi

It seems that the languages are missing from the installation. as version 1.5.2 complains about missing files when selecting any other language other than english.

It also messes up the site template when a user changes the language from the home page.

Anim
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what errors occurred?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Anim
Posts: 8
Joined: Sat Sep 24, 2005 5:07 pm

Post by Anim »

For any language other than English I get the error:

Code: Select all

Warning: mb_language(): Unknown language "da" in /home/danswers/public_html/faq/index.php on line 132
And the menu on the left side expands down about 6 pages worth (lots of blank space)

Thanks
Anim
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this bug is fixed in CVS:

Change the 4 lines beginning with line 132 to:

Code: Select all

// use mbstring extension if available
$valid_mb_strings = array('ja', 'en');
if (function_exists('mb_language') && in_array($PMF_LANG['metaLanguage'], $valid_mb_strings)) {
    mb_language($PMF_LANG['metaLanguage']);
    mb_internal_encoding($PMF_LANG['metaCharset']);
}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply