JText placeholder does not produce correct code #606
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#606
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
This code in the site view default tmpl:
Expected result
Actual result
System information (as much as possible)
Additional comments
This situation does not allow me to be able to translate with jcb but only to do it manually
Okay on the forum you had the text in all caps, now you don't. Is this by mistake? Since we do not know of this error, I in fact have hundreds of site views which translate just perfectly.
Like this one:
Then in the code:
I apologize for the misunderstanding but I tried both ways with all caps and lowercase but always with the same result.
However, I noticed that in other applications I did not have this error and I would not want it to be a wrong setting somewhere because then suddenly it didn't work anymore
I found out what was not doing the translations.
This code to get the current day of the week:
This before JText Thead
replacing
<? php echo JText :: _ (''. $ D);?>
with<? php echo JText :: _ ($ D);?>
works.It's weird because the same code put after the JText Thead doesn't cause errors
The way you are trying to make this work is making no sense at all. Instead do something like this:
This manages the time zone, and translation. Should you like to set the time zone manually, then you could do something like this:
Hope this will resolve the issue for you, just in-case you want to in the future use an array again as a translated set of strings, you should rather do it like this:
The result code will look like this:
But with the date, it is really not needed.
Thank you for the full explanation and will do as recommended