Topic-icon Bug with language overrides

Active Subscriptions:

None
2 years 5 months ago #67631 by CyrusXxX
Hello dear support, I have encountered a bug when creating language override for accounts page.
In jfbc lang file for example you have 
COM_JFBCONNECT_ACCOUNT_LINKED_ACCOUNTS_CONNECT_PROFILE_LABEL="Connect with %s"but when you search joomla for language constant it does not find it at all, see attachment.

After further investigation I noticed that Joomla 4 does not find any jfbc language strings when you search for any jfbc lang constant in Joomla 4 language override section.
I think you should check this out. And if you need credentials for my website let me know.

Thank you!
 
Attachments:
The topic has been locked.
Support Specialist
2 years 5 months ago - 2 years 5 months ago #67633 by mel
Replied by mel on topic Bug with language overrides
Could you try renaming the language files from en-GB.com_jfbconnect.ini to just com_jfbconnect.ini in both the /administrator/languages and /languages folder and see if there's a change in behavior?

Joomla 4 has removed the language code from the filename, but should have a layer in place to read old filenames for backward compatibility. However, I'm curious if this is part of the problem. We were trying to avoid changing the filenames in our installer to keep the build easier for Joomla 3 vs Joomla 4, but maybe this has raised the problem you're seeing.

Let us know what you find and we'll go from there. I'm going to try to do a small bug fix release of JFBConnect/SCLogin next week.

-Melissa
Last edit: 2 years 5 months ago by mel.
The topic has been locked.
Active Subscriptions:

None
2 years 5 months ago #67640 by CyrusXxX
Hello Mel after renaming files as you suggested Joomla detects language strings properly.
I am gonna leave them like that. 
So yes something is not right who knows maybe Joomla 404 changed something.

Thank you Mel and let me know what you find after investigating.
The topic has been locked.
Support Specialist
2 years 5 months ago #67651 by mel
Replied by mel on topic Bug with language overrides
Well this is strange. WITHOUT changing the language filenames to remove the locale, I was able to create a Joomla override for this string and it loaded correctly on the front-end.

See the attached screenshot for how I set up the override. Can you verify that you've set up your string the same way? That it's in Site and not administrator... 



-Melissa
Attachments:
The topic has been locked.
Active Subscriptions:

None
2 years 5 months ago #67653 by CyrusXxX
Hello Mel yes I have tried to do that before both in admin and site version.

Yes I can confirm that string was set the same way, but since it was not loaded I didn't know I need to add % until I looked in language file :)

That particular string for example did not pop up nor in site nor in admin override.

But I have sent you video with me doing the renaming via contact form so you can see what is happening so you can  investigate.

Thank you Mell!
The topic has been locked.
Support Specialist
2 years 5 months ago #67666 by mel
Replied by mel on topic Bug with language overrides
Well now I'm perplexed. On my Joomla 4 site, I was able to search for the key constant and it was found just fine as expected. The behavior did not match your site behavior.

Was your site an upgrade site from Joomla 3 or did you install it straight from Joomla 4. Did you have previous versions of JFBConnect installed and then just upgrade to the newest, or is it a clean install?
The topic has been locked.
Active Subscriptions:

None
2 years 5 months ago #67669 by CyrusXxX
It is J4 from start and yes jfcb was updated few times.
The topic has been locked.