From dce5fd442fe2d68d0bea68f82f890f6bb9e5a568 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 5 Apr 2022 21:41:49 +1000 Subject: [PATCH] fix: i18n messages/bug + docs bug. --- v2/internal/wv2installer/browser.go | 2 +- v2/pkg/options/windows/windows.go | 4 ++-- website/docs/howdoesitwork.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/internal/wv2installer/browser.go b/v2/internal/wv2installer/browser.go index 67a05f8d1..a2fa1018c 100644 --- a/v2/internal/wv2installer/browser.go +++ b/v2/internal/wv2installer/browser.go @@ -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 } diff --git a/v2/pkg/options/windows/windows.go b/v2/pkg/options/windows/windows.go index 7161a76bf..4c553fc89 100644 --- a/v2/pkg/options/windows/windows.go +++ b/v2/pkg/options/windows/windows.go @@ -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: ", diff --git a/website/docs/howdoesitwork.mdx b/website/docs/howdoesitwork.mdx index f8ee0d719..a66e8cb9a 100644 --- a/website/docs/howdoesitwork.mdx +++ b/website/docs/howdoesitwork.mdx @@ -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 (