Does the Joomla 4 update mechanism support languages?

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla 4.0 is still in Beta stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Forum rules
Locked
shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Does the Joomla 4 update mechanism support languages?

Post by shoulders » Thu Oct 22, 2020 10:24 am

Currently when you use the update stream in Joomla 3 there is only one language used for the response. Has Joomla now added in a POST variable to indicated to the update server a users langauge?

If not, they should for later use.

thank

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Does the Joomla 4 update mechanism support languages?

Post by waarnemer » Thu Oct 22, 2020 2:06 pm

Actually, if you don not choose a language in the plugin, the language is used based on when and how the trigger is fired.
A trigger can be a site visit, by anyone. If so, it is the language in which the site is visited.

You can also set a cron job running a script from the /cli/ folder it then picks default site language I believe.

shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Re: Does the Joomla 4 update mechanism support languages?

Post by shoulders » Thu Oct 22, 2020 2:27 pm

I am not sure we are on about the same thing.

I am on about:

Code: Select all

<!-- Update Server -->		
	<updateservers>
		<server type="extension" priority="1" name="QWUpdateServer (Component)">https://quantumwarp.com/updates/joomla/qwupdateserver/update.xml</server>
	</updateservers>	
	
and then joomla dds the following POST/GET variable

Code: Select all

language=fr-FR
And then my server would respond in the appropriate language.

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Does the Joomla 4 update mechanism support languages?

Post by waarnemer » Thu Oct 22, 2020 10:01 pm

Ah right, your own extension update.. but then mandatory for all extensions is english all other languages are additionals.. at least that is when you work with the language strings that is..
So if you have all appropriate langauges available the language desired would be shown..

shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Re: Does the Joomla 4 update mechanism support languages?

Post by shoulders » Fri Oct 23, 2020 10:08 am

I have followed the code through for Joomla3 and the cURL request does not send the header

Code: Select all

Accept-Language: 
I will check with Joomla 4 and then raise an issue on github.

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Does the Joomla 4 update mechanism support languages?

Post by waarnemer » Fri Oct 23, 2020 10:52 am

cURL wants something like:

CURL -s -H 'Accept-Language: en-US,en;q=0.9,nl;q=0.8' ...... and on

But that is behaving as a browser..

shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Re: Does the Joomla 4 update mechanism support languages?

Post by shoulders » Fri Oct 23, 2020 11:34 am

exactly :)

if this was sent with the updaters calls to the XML streams, then my update server can supply the correct language descriptions etc. based on the language tag.


Locked

Return to “Joomla! 4 Related”