Language overrides with 4.4.1

General questions regarding the use of languages in Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
joomberto
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Feb 02, 2023 8:57 am

Language overrides with 4.4.1

Post by joomberto » Mon Dec 11, 2023 4:04 pm

Hi!

I'm having problems with language overrides. Before the update to 4.4.1 you could mark the key value with a single quote ('). Now it doesn't work and sometimes even breaks my form. Now I need double quote (").

Does anyone know if this version brings any changes in this regard? I don't see anything in the changelog.

Thank you!
Last edited by imanickam on Mon Dec 11, 2023 8:20 pm, edited 1 time in total.
Reason: Corrected the spelling in the Subject

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9837
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Language overrides with 4.4.1

Post by AMurray » Mon Dec 11, 2023 9:31 pm

how are you creating language overrides - in the (Language) Overrides component in J4? I don't know what you mean by "mark the key value with a single quote.". ???
Regards - A Murray
General Support Moderator

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17501
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Language overrides with 4.4.1

Post by toivo » Mon Dec 11, 2023 10:46 pm

According to the language file document, double quotes are necessary in language definition files. The security fix released in Joomla 4.4.1 and Joomla 5.0.1 changed the processing of language files and that also affects language overrides.

Starting from Joomla 4.4.1 and 5.0.1, hard linebreaks are no longer allowed. The quoted value has to be just one line. Any linebreaks, the characters called CR/LF in ASCII code tables, invalidate the whole language file.

Ref. Creating a language definition file
Toivo Talikka, Global Moderator


Post Reply

Return to “Language - Joomla! 4.x”