Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error viewing categories (language auto-detect bug) #1488

Open
D4rkPh0en1x opened this issue Aug 29, 2018 · 3 comments

Comments

@D4rkPh0en1x
Copy link

commented Aug 29, 2018

Hi
I have the issue that when I click all categories no categories are visible.
I tried a bit around to figure out where the problems come from and found it (in a way):
In fact the board is set up in English. The auto-detect switches the language to German and than it shows nothing. When I now deactivate the auto-detect function there is no problem.
I now simply force to English but I think this needs to be reviewed.

@thorsten

This comment has been minimized.

Copy link
Owner

commented Aug 29, 2018

Well, when you only have one language, then just remove the language auto detection.

@thorsten thorsten self-assigned this Aug 29, 2018
@D4rkPh0en1x

This comment has been minimized.

Copy link
Author

commented Aug 29, 2018

Yes for this FAQ it's ok (it's ICT related only so english is good) but for later on an for other people it would be better when it's working..
I write as example FAQ in german, french, english and luxembourgish and I planned a site for global FAQs usable in multiple languages (Luxembourg is too international lol)

@bscx

This comment has been minimized.

Copy link

commented Dec 13, 2018

I can confirm and reproduce this issue.

Version: 2.9.10
Reproducibility: Always

How to reproduce:

  • Set up phpMyFAQ with two languages like "German" and "English"
  • Translate category names and its FAQ entries to German and English
  • Change "Accept-Language" in browser to "Spanish"
  • Log in to phpMyFAQ (user area)

Observation:

  • Navigation bar shows "No categories found"
  • No news would be shown (even if configured so)
  • Language switch (drop-down menu) is set to "English".

Workaround:

  • Use the language switch to switch to "German" and use it again to switch back to "English"
  • This makes phpMyFAQ show any content translated into English language.

Expectation:

  • When Accept-Language in the browser is configured to language that is not supported by phpMyFAQ a fall-back language should be used.
  • Nota bene: The state of the language switch indicates that English would be used as a fall-back language, however the content is not shown.
@thorsten thorsten added Bug and removed Needs feedback labels Dec 15, 2018
@thorsten thorsten added this to the 2.9.12 milestone Dec 15, 2018
@thorsten thorsten modified the milestones: 2.9.12, 2.9.13 Feb 10, 2019
@thorsten thorsten modified the milestones: 2.9.13, 2.9.14 Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.