5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 07:52:12 +08:00

fix: i18n messages/bug + docs bug.

This commit is contained in:
Lea Anthony 2022-04-05 21:41:49 +10:00
parent f21c9ba880
commit dce5fd442f
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import (
)
func doInstallationStrategy(installStatus installationStatus, messages *windows.Messages) error {
confirmed, err := webview2runtime.Confirm(messages.DownloadPageMsg+MinimumRuntimeVersion, messages.MissingRequirements)
confirmed, err := webview2runtime.Confirm(messages.DownloadPage+MinimumRuntimeVersion, messages.MissingRequirements)
if err != nil {
return err
}

View File

@ -74,9 +74,9 @@ type Options struct {
func DefaultMessages() *Messages {
return &Messages{
InstallationRequired: "The WebView2 runtime is required. Press Ok to download and install. Note: The installer will download silently so please wait.",
UpdateRequired: "The Webview2 runtime needs updating. Press Ok to download and install. Note: The installer will download silently so please wait.",
UpdateRequired: "The WebView2 runtime needs updating. Press Ok to download and install. Note: The installer will download silently so please wait.",
MissingRequirements: "Missing Requirements",
Webview2NotInstalled: "webview2 runtime not installed",
Webview2NotInstalled: "WebView2 runtime not installed",
Error: "Error",
FailedToInstall: "The runtime failed to install correctly. Please try again.",
DownloadPage: "This application requires the WebView2 runtime. Press OK to open the download page. Minimum version required: ",

View File

@ -136,7 +136,7 @@ by the frontend code.
In this example, we create a new `App` instance and then add this instance to the `Bind` option in `wails.Run`:
```go {16,26} title="main.go"
```go {16,24} title="main.go"
package main
import (