-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate OCS Share API error messages #24027
Conversation
@MTRichards mind reviewing some strings again? THX |
This will mostlikely break things again :-( |
Ok, so the following changes - I think in two places in this pull request.
Public upload is only possible for publicly shared folders
Invalid date, date format must be YYYY-MM-DD
Sharing %s failed because the beck end does not allow shares from type %s
Wrong share ID, share doesn't exist
Public upload is only possible for publicly shared folders
Can't change permissions for public share links |
89a5db0
to
f47b44e
Compare
thanks @MTRichards fixed. |
Please also fix the strings in the unit tests. |
Ah right... to early... will take care... |
f47b44e
to
5e9b618
Compare
Unit tests adjusted! |
Sharing still work 👍 |
@nickvergessen Please elaborate / help on this topic. |
It is because some smash box test check for the error message. Since we have a very limited set of error codes. |
Seems like I switched to status code last time, but better be save and run the full suite once: I will do that now |
Hm, in the past we agreed that public API responses shouldn't be translated, if I remember correctly. But in this case all API calls happen as a specific logged-in user, so it is probably OK.... 👍 |
@schiesbn O wasn't aware of that. |
Some releases back we did add the capability to read the client's language from the request and send back the messages in the asked language. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
For #22209
Translat the error messages returned by the OCS Share API. This way clients can get properly translated messages if they want to show what the server returned.
CC: @nickvergessen @MorrisJobke @PVince81 @schiesbn