-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.2] Limit language overrides search results to selected language #37809
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
[4.2] Limit language overrides search results to selected language #37809
Conversation
|
@Bakual Will you make a PR for 3.10-dev, too? Am asking because the issue was for both 3.10 and 4.1. Am not sure if I shall close the issue now or if I shall wait for a 3.10-dev PR. Update: I meanwhile saw this PR is for 4.2-dev and not 4.1-dev. So it's a kind of new feature? If so, just ignore my comment above. |
|
I dunno. I just had a 4.2 installation and worked with that. I guess it would be just copy paste for other branches. |
|
@Bakual We can collect opinions in the maintainers channel 😄 |
joomleb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with success, thanks!
|
@joomleb Please mark your test result here in the issue tracker, using the blue "Test this" button, then selecting your test result and then submitting: https://issues.joomla.org/tracker/joomla-cms/37809 . Thanks in advance. |
|
@joomleb Approval on GitHub only means a code review has been done. Human test results have to be marked like I described in my previous comment. |
|
I have tested this item ✅ successfully on 4ea439c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37809. |
Thanks for help on understanding |
|
I have tested this item ✅ successfully on 4ea439c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37809. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37809. |
|
I see no reason to not backport this to 3.x and 4.1. |
|
Thanks everybody |
Pull Request for Issue #37779 .
Summary of Changes
Added a simple check to the filepath if the current language is part of it. If not, the file is skipped.
I've excluded the base path from the check so it doesn't get triggered if someone has Joomla stored eg within a folder "en-GB" (you never know...).
Testing Instructions
Actual result BEFORE applying this Pull Request
String are shown for all available languages
Expected result AFTER applying this Pull Request
Strings are limited to the selected language
Documentation Changes Required
None