Erreur labels disappears into compiled and deployed component after update J3 ELTS #1021
Steps to reproduce the issue
We updated an existing component deployed into a Joomla 3 website with the 3.10.14-elts.
As Capture Named : bug_ELTS_before
System information (as much as possible)
- OS Name & Version: Linux h2web89 4.9.0-0.bpo.12-amd64 #1 SMP Debian 4.9.210-1~deb8u1 (2020-02-21) x86_64
- MySql Version: 5.6.50-log
- Apache Version:
- PHP Version: 8.0.30
- Joomla Version: Joomla! 3.10.14-elts Stable [ Extended Long Term Support ] 28-November-2023 16:00 GMT
- JCB Version: 3.1.9
- Browser: Chorme and Firefox
Before the update everything was fine, after the update the button name and the label are missing and replaced by the substitution token. There are no change made into subsitution. We have a test server with before state and one with after state, if you want to look inside.
I hope you can help us.
Many thanks in advance.
Upon further investigation, I discovered that some translations within the language files are no longer being recognized, such as COM_AOCONSTRUCTION_BREVE_DESCRIPTION_DU_MARCHE, which is properly translated in the language file (see attachment).
While creating substitutions does resolve the issue, it's a substantial task to create them for all instances. Your assistance in understanding what's causing this would be greatly appreciated.
Hi, i think this is probably because your language file has a newline character in the content of a language string in your file.
It has to do with the problem outlined here: https://github.com/joomla/joomla-cms/issues/42432
@Llewellyn do we need to adjust the compiler to avoid this problem on compilation or what is the best way to do this? I think i have seen newline chars in JCB language files and auto generated stuff before too. I just checked my own component and it also had hard breaks in it.
@Llewellyn Yes i found it this string that is generated when you enable the mail helper in JCB component is a problem: COM_COMPONENT_CONFIG_NOTE_DKIM_USE_DESCRIPTION It is generated using an older JCB version tho. I see in this branch that the language string inside JCB itself is correct.
I also checked JCB language files itself and there were no issues.
Also in translation field you're able to cause this issue if you do a shift + enter and create a new line. So @appnweb your fix to this is open your language files look for the constant that is at fault and adjust the translation in jcb.
Many thanks for your help, I will do this and keep you posted.
Thank you very much for your assistance. I have identified the root cause of the issue. The website is set to be in French, but some of my French translations were stored within the EN language files. After moving them to the French language files, I have successfully retrieved my values.
Although I'm unsure why it started causing issues now, I know what steps to take moving forward.
A big thanks to everyone for your support.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?