Prevent JCB to "translate" text

14 views
Skip to first unread message

dormasta

unread,
Nov 27, 2020, 11:41:26 AM11/27/20
to Joomla Component Builder
Hello,
Is there a way to prevent JCB to translate the text as date format?

echo HtmlHelper::date($DateString, Text::_('DATE_FORMAT_LC3'));

If someone could target me to corresponding tutorial or give me a hint.

Cheers and thank you
DTA

Llewellyn van der Merwe

unread,
Dec 12, 2020, 4:19:11 PM12/12/20
to Joomla Component Builder, dormasta
JCB tries to check if the text is already translated, but this is not easy... here is the code that does this:

So as you can see it checks if the string and the uppercase of the string is the same, but the safeString option converts all numbers to words... and for this use case it will change 3 to THREE, and that is why it fails to detect the correct behavior.

I can fix this... so please open this issue on gitHub, and we can add the fix in the next update, I will on gitHub give you the code string you should change in the mean while to get this to work.

((ewe))yn

unread,
Dec 19, 2020, 4:45:58 PM12/19/20
to Joomla Component Builder, llewellyn.v...@community.joomla.org, dormasta
We are moving to GitHub Discussions. We will keep this open to give access to old issues, resolved. But please continue conversations on the new github discussions area ;)
Reply all
Reply to author
Forward
0 new messages