Removal of [lang] from templates

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
jamie_scott
Posts: 3
Joined: Fri Sep 10, 2004 6:54 pm

Removal of [lang] from templates

Post by jamie_scott »

hi all,

Can anyone tell me how to remove the [lang] e.g. [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: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Jamie,

here's the answer: viewtopic.php?t=1077

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 »

great that worked just fine ;-)

...although [EN] still appears in the drop down lists when posting a new FAQ?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just open the file inc/category.php and look for the function printCategoryOptions() and change this line

Code: Select all

$categories .= $indent.$cat["name"]." (".$cat["lang"].")</option>\n";
to

Code: Select all

$categories .= $indent.$cat["name"]."</option>\n";
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply