[Bug] Error
key is present twice in the base.php
lang file
#5314
Labels
Error
key is present twice in the base.php
lang file
#5314
Bug report
What I did
Generated an operatino with a button using DevTools. Inside it, it was using
trans('backpack::base.error')
which we have been providing for a long time.What I expected to happen
Werk.
What happened
No werk, because:
Basically, before 1f734e4 we already had an
error
key which translated toError
. Now, that's being overridden by theerror
key that @promatik added, which provides an array 🤦♂️So when you do
trans('backpack::base.error')
and expect a string... no bueno... you get an array now. So we've pretty much introduced a bug with that PR. We didn't notice that the string already existed.What I've already tried to fix it
Nothing it. Because the problem is... we have to choose one to keep. Tbh since this one is newer, I would keep the old one as
error
and rename the new array aserror_page
or something. But we have to do that inside all themes 🤦♂️The text was updated successfully, but these errors were encountered: