Skip to content
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

OCSExption "Cannot remove yourself from the admin group" is not translatable #13820

Closed
rakekniven opened this issue Jan 25, 2019 · 12 comments · Fixed by #43234
Closed

OCSExption "Cannot remove yourself from the admin group" is not translatable #13820

rakekniven opened this issue Jan 25, 2019 · 12 comments · Fixed by #43234

Comments

@rakekniven
Copy link
Member

Reported at forums.

See https://help.nextcloud.com/t/die-deutsche-ubersetzung-von-nextcloud-hier-diskutieren-und-fehler-melden/32139/120

Source line:

throw new OCSException('Cannot remove yourself from the admin group', 105);

@rakekniven rakekniven added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jan 25, 2019
@rakekniven
Copy link
Member Author

Same for another one: "Bad request"

throw new OCSException('Bad request', 101);

Should I file separate issue?

@skjnldsv
Copy link
Member

The api messages should not be translated I think.
@rullzer @blizzz @nickvergessen ?

@nickvergessen
Copy link
Member

Well, we could turn it into a hintexception and then have english+translated.
But not sure that breaks assumptions on the API users.

@rakekniven
Copy link
Member Author

The text is visible to the user so it should be translated IMHO.

@skjnldsv
Copy link
Member

@rakekniven where did you saw the message? Users management?

@skjnldsv
Copy link
Member

skjnldsv commented May 5, 2019

Ah yes, I recall now. We're indeed using the error message as a notification.
Shall we translate the error message or use a matching code on the request on the users management and translate it from there?

@szaimen

This comment has been minimized.

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of feature: language l10n and translations and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jun 9, 2021
@szaimen
Copy link
Contributor

szaimen commented Jan 9, 2023

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Jan 9, 2023
@rakekniven
Copy link
Member Author

Still an issue at v25.0.2.

Bildschirm­foto 2023-01-09 um 13 48 39

@susnux
Copy link
Contributor

susnux commented Jan 18, 2024

I would say we should translate the message as you should rather rely on the exception code for any programmatically usage. Translating in the frontend seems to duplicate logic / code.

@susnux susnux added 1. to develop Accepted and waiting to be taken care of 28-feedback and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap 25-feedback labels Jan 18, 2024
@rakekniven
Copy link
Member Author

Wow, I four year old issue got an reply 😄 .

Just tested and issue is still there with NC v28.0.1

Bildschirmfoto 2024-01-18 um 17 26 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants