? Failure

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
10 Apr 2016

Pull Request for New Issue.

Summary of Changes

As detected in PR #9744, there is an inconsistency in the en-GB language extensions.

The default language (en-GB) should have 3 extensions like any other language pack:
1. type = language | client = Site: For the site site language
2. type = language | client = Administrator: For the administrator site language
3. type = package | client = Site: For the whole en-GB language package

But, only extensions "1." (en-GB site language) and "2." (en-GB admin language) exist in Joomla core default database.

The extension "3." (pkg_en-GB language package), although it has a manifest file, doesn't have an extension in Joomla core default database.

Note that this is the only manifest file in the whole Joomla core that doesn't has an extension in the database, and for consistency it should.

This generates some inconsistencies, for instance the update server is declared in the extension "3." (en-GB language package) manifest file, but in the database is linked to extension "1." (en-GB site language).
Extension "1." (en-GB site language) doesn't have update servers in his manifest file, because is a extension of language type.

So, this PR adds the "pkg_en-GB language package" extension to new joomla installation, also adds it to the upgrade process and makes the necessary adjustments in the code.

image

image

Testing Instructions

New installation
  1. Install Joomla with this package https://github.com/andrepereiradasilva/joomla-cms/archive/en-gb-language-package-consis.zip
  2. Add some languages in the end of the installation. Check if they are installed correctly.
  3. Go to admin. "Extensions -> Manage -> Install languages"
  4. Install some languages. Check if everything is fine
  5. Go to "Extensions -> Manage -> Update Sites" and check if all "Accredited Joomla! Translations" are o the type "Package", including the en-GB one.
  6. Go to "Extensions -> Manage -> Manage", filter by package and check if and languages are there. Including the en-GB (should be blocked).
Upgrade
  1. Use 3.5.1 or latest staging
  2. Install patch #9612 with patchtester so you can update joomla with upload method
  3. Go to Joomla update component
  4. Update joomla with this custom 3.5.5 package https://github.com/andrepereiradasilva/update.joomla.org/raw/master/Joomla_3.5.1_to_3.5.5-Stable-Patch_Package.zip
  5. Repeat the same steps "3." to "6." of the "New installation" test.
avatar andrepereiradasilva andrepereiradasilva - open - 10 Apr 2016
avatar andrepereiradasilva andrepereiradasilva - change - 10 Apr 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 10 Apr 2016
Category Code style
avatar andrepereiradasilva
andrepereiradasilva - comment - 16 Apr 2016

ok, now it uses the 801 id for the pkg_en-GB extension

avatar Bakual
Bakual - comment - 16 Apr 2016

That would be wrong because the language pack isn't updated on its own. It's part of the core.

The manifest files (and especially the package one) for en-GB are mainly present to allow translation using Crowdin (or other tools). They aren't used actively in the CMS and shouldnt be used.
Since you can't (and shouldn't) uninstall en-GB anyway, there is no reason to register it as a package.

avatar andrepereiradasilva
andrepereiradasilva - comment - 16 Apr 2016

because the language pack isn't updated on its own. It's part of the core.

Yes, as most of the extensions that exist by default in the extensions table...

The manifest files (and especially the package one) for en-GB are mainly present to allow translation using Crowdin (or other tools). They aren't used actively in the CMS and shouldnt be used.
Since you can't (and shouldn't) uninstall en-GB anyway, there is no reason to register it as a package.

I disagree, is a matter of consistency, all core joomla extensions are in the database.

Remember, the pkg_en-GB extension is blocked so it can't be uninstalled like all the other ones that are joomla core extensions.

avatar brianteeman
brianteeman - comment - 8 May 2016

I understand both arguments and personally agree with @andrepereiradasilva but setting to Needs Review so PLT can make a definitive decision


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

avatar brianteeman brianteeman - change - 8 May 2016
Status Pending Needs Review
avatar roland-d roland-d - change - 8 May 2016
Status Needs Review Information Required
avatar roland-d
roland-d - comment - 8 May 2016

@andrepereiradasilva Can you please update this PR so that the SQL files are numbered 3.6.0? After that we can merge this. Thank you.


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

avatar brianteeman brianteeman - change - 8 May 2016
Status Information Required Pending
avatar wilsonge
wilsonge - comment - 8 May 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 8 May 2016

@wilsonge the manifest is already there.

avatar wilsonge wilsonge - change - 8 May 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-08 14:16:00
Closed_By wilsonge
avatar wilsonge wilsonge - close - 8 May 2016
avatar wilsonge wilsonge - merge - 8 May 2016
avatar wilsonge wilsonge - reference | 4b8f9bb - 8 May 16
avatar wilsonge wilsonge - merge - 8 May 2016
avatar wilsonge wilsonge - close - 8 May 2016
avatar wilsonge wilsonge - change - 8 May 2016
Milestone Added:
avatar wilsonge
wilsonge - comment - 8 May 2016

Merged

avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 8 May 2016
avatar infograf768
infograf768 - comment - 9 May 2016

this is creating issues when the id 801 is already used. i have the case here with weblinks see #10352

Add a Comment

Login with GitHub to post a comment