Language file EN-US

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
stu-thg
Posts: 2
Joined: Thu Jul 30, 2015 11:49 am

Language file EN-US

Post by stu-thg »

Trying to setup a new language file for en-us and having issues when switching the language in the admin system, it just displays a block screen.

So far I have added a new language file en-us, added the lang/locale reference into constants.php

is this something "?lang=en&locale=us" phpmyfaq supports?

Thanks in advance for any details that could point me in the right direction.
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Language file EN-US

Post by Thorsten »

Hi,

I received your translation by mail, I will add it and check why it's not working for you. I think it's not working because "en-us" is not listed here: https://github.com/thorsten/phpMyFAQ/bl ... s.php#L241

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
stu-thg
Posts: 2
Joined: Thu Jul 30, 2015 11:49 am

Re: Language file EN-US

Post by stu-thg »

Thanks for the reply, I found the problem with the lang file I created it was some extra " in the wrong place :-(

When trying to force the front end into the correct language using ?lang=en&locale=us it seems to ignore the locale param value and still shows the default en site. Is there anything else i have missed?

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

Re: Language file EN-US

Post by Thorsten »

Hi,

I added your translation for 2.8.25: https://github.com/thorsten/phpMyFAQ/co ... fb5a437286

I had to remove the BOM and some additional strings.

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