? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
1 Feb 2016
Description

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
  1. Use a joomla multilanguage site and apply this patch
  2. Add tags in several languages
  3. Add those tags to a content
  4. Go to tags component (com_tags) options and in "Item selection" -> "Language Filter" select "Current"
  5. 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
  6. Check also the same behaviour for the tags in the modules (mod_tags_popular and mod_tags_similar)

In conclusion, all should work as before.

@joomdonation here you have it.

@mbabker if ok for you, IMHO this should also be done in joomla framework (language).

avatar andrepereiradasilva andrepereiradasilva - open - 1 Feb 2016
avatar andrepereiradasilva andrepereiradasilva - change - 1 Feb 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Feb 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 1 Feb 2016
Title
Movo to jlanguagehelper
Move getCurrentLanguage() to JLanguageHelper
avatar mbabker
mbabker - comment - 1 Feb 2016

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.

avatar andrepereiradasilva andrepereiradasilva - change - 1 Feb 2016
Title
Movo to jlanguagehelper
Move getCurrentLanguage() to JLanguageHelper
avatar andrepereiradasilva
andrepereiradasilva - comment - 1 Feb 2016

Ok, i see. There must be total separation in the framework, of course.

I noticed now that the joomla language framework (https://github.com/joomla-framework/language/tree/master/src) doesn't even have an helper class.

avatar brianteeman brianteeman - change - 1 Mar 2016
Category Libraries
avatar andrepereiradasilva
andrepereiradasilva - comment - 5 Sep 2016

closed because lack of interrest

avatar andrepereiradasilva andrepereiradasilva - change - 5 Sep 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-09-05 22:08:25
Closed_By andrepereiradasilva
avatar andrepereiradasilva andrepereiradasilva - close - 5 Sep 2016
avatar joomla-cms-bot joomla-cms-bot - change - 5 Sep 2016
Category Libraries Tags Front End Components Libraries Modules

Add a Comment

Login with GitHub to post a comment