Uh oh!
There was an error while loading. Please reload this page.
Make Sabre File exception messages translatable - #30536
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a840650 to
0878363ComparePytal
commented
Jan 11, 2022
/backport to stable23 |
Pytal
commented
Jan 11, 2022
/backport to stable22 |
Pytal
commented
Jan 11, 2022
/backport to stable21 |
CarlSchwan
left a comment
There was a problem hiding this comment.
Could it be maybe possible to store $this->l10nFactory->get(Application::APP_ID) inside a property of the File class instead of calling this everytime?
0878363 to
ee8f192CompareUh oh!
There was an error while loading. Please reload this page.
18e8c6e to
c53b587ComparePVince81
commented
Feb 17, 2022
need to check with clients to make sure they don't happen to read the english messages to distinguish errors |
tobiasKaminsky
commented
Feb 18, 2022
Which endpoint is this? Then I can check with team. |
Pytal
commented
Feb 18, 2022
This class is only used within the |
tobiasKaminsky
commented
Feb 21, 2022
If this is true, then there is no problem as we do only use v1/direct, which should be handled without translations. |
Pytal
commented
Feb 22, 2022
IDE reports use only within |
PVince81
commented
Feb 23, 2022
I'm not familiar with this route. You could try grepping through the release tarball if you want to be sure. |
Pytal
commented
Feb 23, 2022
grepped through release tarball and looks good, @tobiasKaminsky can you confirm that the exception strings aren't used on clients? |
tobiasKaminsky
commented
Feb 24, 2022
Strings are not used, but only shown, e.g. if direct endpoint fails. Then they might be either shown as is or a generic error message is shown. |
c53b587 to
3355350ComparePytal
commented
Feb 24, 2022
Rebased |
Signed-off-by: Christopher Ng <chrng8@gmail.com>
3355350 to
67ec981Compare
See title 👆