How do I remove languages I do not need?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
bruin03
Posts: 3
Joined: Wed Sep 08, 2004 4:09 pm

How do I remove languages I do not need?

Post by bruin03 »

Currently I only need English and Japanese, and maybe French.

How do I remove the others?
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just delete the language files in the directory lang/.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jamie_scott
Posts: 3
Joined: Fri Sep 10, 2004 6:54 pm

Post by jamie_scott »

following on from this, can anyone tell me how to remove the [en] that follows a category question. I've been through all the templates and can only find that its being written from file show.tpl {writeThemes}


All my users will be english so this is not required.

kind Regards

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

Post by Thorsten »

Hi,

you can remove it in the function printThemes() in the file inc/functions.php:

Change this

Code: Select all

$output .= "\t<li><a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."\">".stripslashes($row->thema)."</a> [".$row->lang."]<br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
to that

Code: Select all

$output .= "\t<li><a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."\">".stripslashes($row->thema)."</a><br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply