-
Notifications
You must be signed in to change notification settings - Fork 21
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
Custom Error msg for camera not available #31
Comments
If I understand this correctly, you want a setting (in etherpad-lite's settings.js) that lets you replace the existing hard-coded error message? |
And if so, why only this message? (There are three "Sorry"s in that file.) |
If I deny camera access I currently get "Sorry, you need to install SSL certificates for your Etherpad instance to use WebRTC"; And just freestyle the error msg, "No camera available, make sure your webcam is plugged in" or something |
Ah, yes. That initial error message fix I did (#32) was incomplete. There are more kinds of errors and at some point I was gonna handle them, so I guess that's what this task is. I think what you're describing may be |
FYI I switched to this one for a "short break" from the videoTrack.stop security issue and found myself knee deep* in breaking changes in the webRTC spec that's made this take way longer than expected. Good news is that we should have much better error handling after this though. I'll PR soon. * (So get this: until recently, |
Should we close this issue? |
@orblivion How can I close it? Is it possible to set a custom message for an error? If so, how? |
Oops, I sort of got distracted by the requisite general fix for error messages (but also your first answer was a bit unclear). Adding a customization should be quick. Does BTW I'm curious why this is the only error message you want to customize? |
Yea. Well I guess exposing customizing any string presented by i18n makes sense? |
Sounds good. So the tasks shall be:
|
(no longer such a quick task, but probably not large) |
Yeah consider the admin might only want to override the en_gb string too not the global value. |
I'd like to add a test for this but I'm not seeing any existing examples of testing different values in settings.json. Tests seem to just use the current user's settings.json. Is there a path I'm not seeing or would I need to forge a new path? |
Is it passed in clientVars? |
Didn't see it anywhere in tests. But I figured the right place was in the backend anyway. See PR forthcoming. |
Still need #46 |
Now that we merged ether/etherpad-lite#4000, we can do custom overrides for l10n. However, that doesn't yet include ep_webrtc error messages. For that we need to merge #46. We may want to reopen this issue until it's done. |
@orblivion closable? |
Yep! |
No description provided.
The text was updated successfully, but these errors were encountered: