Erreur labels disappears into compiled and deployed component after update J3 ELTS #1021

Open
opened 2023-11-30 08:57:24 +00:00 by appnweb · 8 comments

Steps to reproduce the issue

We updated an existing component deployed into a Joomla 3 website with the 3.10.14-elts.

Expected result

As Capture Named : bug_ELTS_before

Actual result

bug_ELTS_after

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

Additional comments

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.
Best

### Steps to reproduce the issue We updated an existing component deployed into a Joomla 3 website with the 3.10.14-elts. ### Expected result As Capture Named : bug_ELTS_before ### Actual result bug_ELTS_after ### 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 ### Additional comments 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. Best
Author

Hello again,

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.

Best regards.

Hello again, 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. Best regards.

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

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 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.

@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.
Author

Hi again,
Many thanks for your help, I will do this and keep you posted.
Best regards,

Hi again, Many thanks for your help, I will do this and keep you posted. Best regards,
Owner

Hi, there is an option in the component view to remove new lines in the language files.

image

Hi, there is an option in the component view to remove new lines in the language files. ![image](https://git.vdm.dev/attachments/e0f30e58-3ac2-472d-a6e5-9d81a121db26)

Ahhh awesome i was not aware of this thanks!

Ahhh awesome i was not aware of this thanks!
Author

Hi,

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.

Best regards,
Carole

Hi, 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. Best regards, Carole
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1021
No description provided.