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

Fix case sensitiv translations #11463

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

Jellyfrog
Copy link
Member

On case insensitive systems, @lang('Auth') would match the auth.php file
and return an array instead of the string "Auth", causing a "Array to string conversion error"

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

@murrant
Copy link
Member

murrant commented Apr 22, 2020

@Jellyfrog looks good but I did a quick search and found at least this __('Settings')

@Jellyfrog
Copy link
Member Author

Oh I didn't check for __, let me rescan.

On case insensitive systems, @lang('Auth') would match the auth.php file
and return an array instead of the string "Auth", causing a "Array to string conversion error"
@Jellyfrog Jellyfrog force-pushed the feature/lang-case-sensitivity branch from cfc2e1e to 63b67ce Compare April 22, 2020 16:08
@Jellyfrog
Copy link
Member Author

Fixed

@SourceDoctor SourceDoctor self-requested a review April 22, 2020 21:04
Copy link
Member

@SourceDoctor SourceDoctor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jellyfrog Jellyfrog merged commit d2a9ffd into librenms:master Apr 22, 2020
@murrant
Copy link
Member

murrant commented Apr 28, 2020

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/v1-63-release-changelog-april-2020/11828/1

LEV82 pushed a commit to LEV82/librenms that referenced this pull request May 14, 2020
On case insensitive systems, @lang('Auth') would match the auth.php file
and return an array instead of the string "Auth", causing a "Array to string conversion error"
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants