You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the text contains curly braces the interface fails because it tries to replace it with a route parameter.
How to reproduce
Make any translation containing curly braces like: `__('Use {red} to make the text red.')
Then import the translations. This will generate a line in the table containing the key "Use {red} to make the text red." which is fine at this point.
When now accessing the interface it fails with this message:
Problem
If the text contains curly braces the interface fails because it tries to replace it with a route parameter.
How to reproduce
Make any translation containing curly braces like: `__('Use {red} to make the text red.')
Then import the translations. This will generate a line in the table containing the key "Use {red} to make the text red." which is fine at this point.
When now accessing the interface it fails with this message:
The reason is that the function "action" gets the key as parameter without checking the content.
Solution
In the view file (resources/views/index.php) change the line
to
and in the controller file (src/Controller.php) change the line
to
The text was updated successfully, but these errors were encountered: