This PR moves JHelper->getCurrentLanguage() and JHelperContent::getCurrentLanguage() to JLanguageHelper::getCurrentLanguage(), deprecates the old methods and replaces them where they are currently being used.
How to test
Use a joomla multilanguage site and apply this patch
Add tags in several languages
Add those tags to a content
Go to tags component (com_tags) options and in "Item selection" -> "Language Filter" select "Current"
Go to frontend and check that the tags that are displayed in the content are only those in the current language and the ones with all languages
Check also the same behaviour for the tags in the modules (mod_tags_popular and mod_tags_similar)
This isn't a change suitable for the Framework in its current form. Mainly, the Framework doesn't have the notion of components nor does it mandate a use of Joomla's application and input APIs.
This isn't a change suitable for the Framework in its current form. Mainly, the Framework doesn't have the notion of components nor does it mandate a use of Joomla's application and input APIs.