Changing the Main Language

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
monsterface
Posts: 42
Joined: Mon Nov 24, 2014 10:50 am

Changing the Main Language

Post by monsterface »

Soo, after I searched and tried as much as I could, i dont have many options available after all.
I want to remove all languages from the selectable languages so that there is just one language possible to chose.
I already created a folder in the folder "lang" and put every language in there. The only remaining languages in the folder "lang" are language_en.php and language_de.php .
So now i want to swap language_en.php from the "lang-folder" to the created folder from me, so that the system doesnt recognize it anymore. But after doing so my whole page goes blank. When i swap the location with language_de.php , I dont get any blank page and my only language to chose after, is english.

So i just talked to much and will make it short now. I want that "German" ist the only chosable language, since I will just use it in German now and wont add any English FAQs in. How can I change the script so, that I dont get blank-page when I should make German the only language possible. Auto Language Detection is already disabled and default language is German. So until now I have two languages to chose, those are English and German, but I just want to have 1 language in total and thus should be german!

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

Re: Changing the Main Language

Post by Thorsten »

Hi,

you can define the main language in the admin configuration and disable the automatic language detection. You can delete all languages in the the folder lang/ except German and English, as the latter one is the fallback if a translated string is not available. You can remove the language select box in the index.tpl template.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
monsterface
Posts: 42
Joined: Mon Nov 24, 2014 10:50 am

Re: Changing the Main Language

Post by monsterface »

Thanks and done. I was just hoping, that there would be a way with deleting english out and just using german, but if that's not possible, I will just remove the select-button.

Sincerly,
Post Reply