Prevent translating date format while compiling #626
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#626
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Steps to reproduce the issue
Output some date in site view
echo HtmlHelper::date($DateString, Text::_('DATE_FORMAT_LC3'));
Compile
Expected result
DATE_FORMAT_LC3
Actual result
COM_COMPONENT_DATE_FORMAT_LCTHREE
System information (as much as possible)
Additional comments
Okays so the code that already is in JCB that should have work is found here on line 6499 in the Get class.
Our problem is that it removes numbers and so since
DATE_FORMAT_LC3
has a 3 in it, it gets converted toDATE_FORMAT_LCTHREE
and therefore fails the test...Can you try the following as a fix?
Let me know if this works for you... so I can update the core.
HI Llewellyn,
absolutely sorry for the delay, but I somehow crashed my component and it took me some time to find the reason.
Anyway, you fix works like a charm. Thank you very much.
Cheers,
DTA