? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
21 May 2021

Code review.

Code says it will be removed in 4.0.

This PR removes it.

avatar PhilETaylor PhilETaylor - open - 21 May 2021
avatar PhilETaylor PhilETaylor - change - 21 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2021
Category Libraries
avatar richard67
richard67 - comment - 21 May 2021

Comments can be wrong. Wouldn't it be better to do a real test to make sure it's really to be removed?

avatar brianteeman
brianteeman - comment - 21 May 2021

Comments can be wrong. Wouldn't it be better to do a real test to make sure it's really to be removed

and then update the comment if appropriate

avatar PhilETaylor
PhilETaylor - comment - 21 May 2021

Did you test before commenting? Do you think I submit PRs without testing?

avatar richard67
richard67 - comment - 21 May 2021

Did you test before commenting? Do you think I submit PRs without testing?

@PhilETaylor No, haven't tested yet. I just asked to be sure you've tested because testing instructions are only about code review.

avatar PhilETaylor
PhilETaylor - comment - 21 May 2021

The clue is JPATH_INSTALLATION which means that this block of code can only ever be sensibly run when installing Joomla.

I was able to install Joomla 4 with French, and Persion languages with no errors during the installer process.

Screenshot 2021-05-21 at 13 27 29

And I was able to complete the install and install the multi lingual test data with no issues after deleting the installation folder.

Screenshot 2021-05-21 at 13 27 52

avatar richard67
richard67 - comment - 21 May 2021

I was able to install Joomla 4 with French, and Persion languages with no errors during the installer process.

@PhilETaylor Then I hope it would not be the German language which would break it ? (joking).

Thanks for reporting back.

avatar infograf768
infograf768 - comment - 21 May 2021

@PhilETaylor
(from ipad) Have you checked Content Languages Native Names?

avatar PhilETaylor
PhilETaylor - comment - 21 May 2021

And how would a person do that? No idea.

avatar PhilETaylor PhilETaylor - change - 21 May 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-05-21 18:58:50
Closed_By PhilETaylor
Labels Added: ?
avatar PhilETaylor PhilETaylor - close - 21 May 2021
avatar infograf768
infograf768 - comment - 22 May 2021

@PhilETaylor
Made some research on this and found out the reason for that code.
We could indeed take it off from 4.0 as I expect that totally new language packs for that version will contain the nativeName metadata in its site langmetadata.xml.

The reason we have the code in 3.x is because some languages were not updated and do not contain that metadata.

Example for Galician site gl-ES.xml ( http://joomlacode.org/gf/download/frsrelease/19631/159913/gl-ES_joomla_lang_full_3.3.1v2.zip ):

<metadata>
		<name>Galician (Galego)</name>
		<tag>gl-ES</tag>
		<rtl>0</rtl>
		<locale>gl_ES.utf8, gl_ES.UTF-8, gl_ES.UTF-8@euro, gl_ES, gal_ES, gl, galician</locale>
		<firstDay>1</firstDay>
		<weekEnd>0,6</weekEnd>
	</metadata>

But it contains the installation key which is used as fallback to create the Title Native for the Content Language grace to the code.

; IMPORTANT NOTE FOR TRANSLATORS: Do not literally translate this line, instead add the localised name of the language. For example Spanish will be EspaƱol
INSTL_DEFAULTLANGUAGE_NATIVE_LANGUAGE_NAME="Galego"

Which gives in 3.x

Screen Shot 2021-05-22 at 09 31 42

So for 3.x, we have 2 fallbacks:

Use the metadata [name] if no Site metadata{nativeName] and if no specific INSTL_DEFAULTLANGUAGE_NATIVE_LANGUAGE_NAME key.

If the code is deleted and you install in J4 the 3.x Galician pack, the Title Native will be Galician (Galego) which obviously is not native at all...

If whoever now in charge makes sure that the metadata[nativeName] is present for ALL new J4 lang packs, we can delete that code.

Hope it helps.

avatar richard67
richard67 - comment - 22 May 2021

@infograf768 Thanks for your research and detailed information. So the question is if we can be sure about the metadata[nativeName] being present for ALL new J4 lang packs, and this is related to #21806 being solved, i.e. the new download infrastructure being ready and true J4 language packs being provided there.

@wilsonge Any news on that?

avatar infograf768
infograf768 - comment - 22 May 2021

IMHO, it does not so much depends on the availability of the new download infrastructure (evidently as totally necessary), but of a control of the new packs.

avatar PhilETaylor PhilETaylor - change - 22 May 2021
Status Closed New
Closed_Date 2021-05-21 18:58:50
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - change - 22 May 2021
Status New Pending
avatar PhilETaylor PhilETaylor - reopen - 22 May 2021
avatar wilsonge
wilsonge - comment - 30 May 2021

If whoever now in charge makes sure that the metadata[nativeName] is present for ALL new J4 lang packs, we can delete that code.

I have no clue who's in charge now. @marcodings can you provide insight please

avatar PhilETaylor
PhilETaylor - comment - 15 Aug 2021

Paging @marcodings again... else lets just merge this or close it. No point dragging it out for another decade.

avatar infograf768
infograf768 - comment - 16 Aug 2021

The language packs or installation ini & xml files are not controlled anymore by Production. I would not expect @marcodings to reply to you as he is the one who managed for Programs to be responsible for Core Translations.

avatar PhilETaylor
PhilETaylor - comment - 16 Aug 2021

So that begs the question: Who is actually responsible now? Who should this issues be addressed to?

avatar PhilETaylor PhilETaylor - change - 16 Aug 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-08-16 07:46:02
Closed_By PhilETaylor
Labels Added: ?
Removed: ?
avatar PhilETaylor PhilETaylor - close - 16 Aug 2021

Add a Comment

Login with GitHub to post a comment