Skip to content

Commit

Permalink
Add error message for webview unsupported display server
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin committed Oct 31, 2024
1 parent c99eb00 commit f6eca72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Telegram/Resources/langs/lang.strings
Original file line number Diff line number Diff line change
Expand Up @@ -3962,6 +3962,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_payments_webview_install_edge" = "Please install {link}.";
"lng_payments_webview_install_webkit" = "Please install WebKitGTK (webkit2gtk-4.1/webkit2gtk-4.0) using your package manager.";
"lng_payments_webview_enable_opengl" = "Please enable OpenGL in application settings.";
"lng_payments_webview_switch_x11" = "Unsupported display server. Please switch to X11.";
"lng_payments_webview_update_windows" = "Please update your system to Windows 8.1 or later.";
"lng_payments_sure_close" = "Are you sure you want to close this payment form? The changes you made will be lost.";
"lng_payments_receipt_label" = "Receipt";
Expand Down
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,8 @@ TextWithEntities ErrorText(const Webview::Available &info) {
return { tr::lng_payments_webview_install_webkit(tr::now) };
case Error::NoOpenGL:
return { tr::lng_payments_webview_enable_opengl(tr::now) };
case Error::NonX11:
return { tr::lng_payments_webview_switch_x11(tr::now) };
case Error::OldWindows:
return { tr::lng_payments_webview_update_windows(tr::now) };
default:
Expand Down

0 comments on commit f6eca72

Please sign in to comment.