Skip to content

Search function resets language preference #435

@michael-lavaveshkul

Description

@michael-lavaveshkul

From manual page: https://php.net/function.array-walk


First time submitting a bug to this project. I'm not sure which project this should go under, but I just clicked the "Report a bug" link from the docs.

  1. Go to a page in the documentation where you can change the language.
  2. Set browser language to something other than your browser's default language.
    1. For example, my browser is set to Japanese, but I chose to use the documentation in English.
  3. Go to the search bar and type in a valid top level function name and hit enter. E.g. "count". (Do not click something from the dropdown.)
    Expected: The resulting page is in the language I set (English).
    Actual: The resulting page is in Japanese.
    After that, clicking links will also stay in Japanese until I set my language again.

Similar scenario but with a help page as an intermediary.

  1. Go to a page in the documentation where you can change the language.
  2. Set browser language to something other than your browser's default language.
    1. For example, my browser is set to Japanese, but I chose to use the documentation in English.
  3. Go to the search bar and type in an invalid top level function name and hit enter. E.g. "impld". (Do not click something from the dropdown.)
  4. In the resulting help page, it will say "impld doesn't exist. Closest matches:" in English (regardless of your chosen language preference or browser's default language I think).
  5. Click on one of the listed matches.
    Expected: The resulting page is in the language I set (English).
    Actual: The resulting page is in Japanese.
    After that, clicking links will also stay in Japanese until I set my language again.

Clicking results from the dropdown doesn't have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions