Advertisement

Language overrides - special characters in constants are being errased Topic is solved

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
warpw
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sat Aug 30, 2014 12:39 am

Language overrides - special characters in constants are being errased

Post by warpw » Wed Jul 31, 2024 2:03 pm

Hello, I need to make language overrides to constants. Some of them, unfortunately, contain special characters. Here is an example:

https://jmp.sh/s/Burkg3xjXoUv5M5JPWGv

When I try to create a language override for a constant that contains the special character, the special character is erased by Joomla upon saving. What can I do? I searched Google and there were ideas like to use HTML entity, but that also contains special characters that are also being erased upon saving. Thank you.

Before saving: https://jmp.sh/s/GfXS0VAoaBLY5FHzuXdi

After saving: https://jmp.sh/s/pAZACrtisAJJ4rrqcSOr

Advertisement
User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28267
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Language overrides - special characters in constants are being errased

Post by imanickam » Wed Jul 31, 2024 3:18 pm

What extension is being used?

Whether the extension's language strings contain any language constant that contains special character? If so, what is the language string?
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

warpw
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sat Aug 30, 2014 12:39 am

Re: Language overrides - special characters in constants are being errased

Post by warpw » Wed Jul 31, 2024 9:45 pm

The extension is SP Weather and the language is Czech. I have resolved the issue by editing the file "language/overrides/cs-CZ.override.ini" manually via FTP. By doing so, the Czech letters (á, č, ú) in language constants are not being erased by Joomla:

Code: Select all

SP_WEATHER_Pá="Pátek"
SP_WEATHER_čT="Čtvrtek"
SP_WEATHER_ST="Středa"
SP_WEATHER_úT="Úterý"
SP_WEATHER_PO="Pondělí"
SP_WEATHER_NE="Neděle"
SP_WEATHER_SO="Sobota"

Advertisement

Post Reply

Return to “Language - Joomla! 4.x”