Skip to content

Conversation

@Bakual
Copy link
Contributor

@Bakual Bakual commented May 16, 2022

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

  • Search for a language constant from a 3rd party extension which has their files stored in its extension directory (eg DP Calendar or my own SermonSpeaker will do).

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

@richard67
Copy link
Member

richard67 commented May 16, 2022

@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.

@Bakual
Copy link
Contributor Author

Bakual commented May 16, 2022

I dunno. I just had a 4.2 installation and worked with that. I guess it would be just copy paste for other branches.
If you want to fix it in 3.x, I can make one for J3 and you guys just upmerge it to J4. But it's likely a very longstanding issue, so not sure if it needs to be fixed in J3 😄

@richard67
Copy link
Member

@Bakual We can collect opinions in the maintainers channel 😄

@laoneo laoneo added the Maintainers Checked Used if the PR is conceptional useful label May 16, 2022
Copy link

@joomleb joomleb left a 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!

@richard67
Copy link
Member

@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.

@richard67
Copy link
Member

@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.

@joomleb
Copy link

joomleb commented May 16, 2022

I have tested this item ✅ successfully on 4ea439c

Perfect


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37809.

@joomleb
Copy link

joomleb commented May 16, 2022

@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.

Thanks for help on understanding

@infograf768
Copy link
Member

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.

@joomla-cms-bot joomla-cms-bot removed PR-4.2-dev Maintainers Checked Used if the PR is conceptional useful labels May 20, 2022
@alikon
Copy link
Contributor

alikon commented May 20, 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37809.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 20, 2022
@infograf768
Copy link
Member

infograf768 commented May 21, 2022

I see no reason to not backport this to 3.x and 4.1.
After all, this is a bug.

@roland-d roland-d merged commit 80a99c3 into joomla:4.2-dev May 21, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 21, 2022
@roland-d
Copy link
Contributor

Thanks everybody

@roland-d roland-d added this to the Joomla 4.2.0 milestone May 21, 2022
@Bakual Bakual deleted the 4_OnlyProcessSelectedLanguage branch May 21, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants