User tests: Successful: Unsuccessful:
Pull Request for Issue #28176 .
Currently, a content language is only automatically created when doing a fresh install of a language pack. When using the reinstall feature or the discover install one, it isn't created.
I've moved the code to create a content language into an own method in the class and calling that class new also from the discover_install
and update
path.
I also added a check so the language is only created if the content language doesn't already exist.
Content language is created after each install/update/reinstall/discover_install
Content language is only created during intial install
None
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
maybe off-topic but meanwhile testing this pr switching from Languages: Content to Languages: Installed an viceversa was very annoying , maybe there should be a direct between the two
what do you think ?
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
I found that the content language is not deleted (is that an error?)
It's not - it's by design - because of the ripple effect of items that are assigned to that content language
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-06 10:36:27 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
After the new installation of the language I got the message shown in the picture and the content language was actually not installed twice.
That actually shouldn't happen. The code should check if the content language already exists and only try to create when not. So if that error is reproducable, we should fix it.
Yep, but it shouldn't give you a notice about it. That part is wrong. It should silently skip it.
contentlang_notice.diff.zip looks like the simplest approach to me.
Hmm, after some more tests, I can't reproduce anymore the Notice.
Ah true, we already have that code at the beginning. That's why I meant it should never show that notice to begin with.
I never saw it myself so I have no clue why it happend.
I have tested this item✅ successfully on fb08f77
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28243.