diff options
author | Simon Rozman <simon@rozman.si> | 2019-11-14 09:27:05 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-15 14:49:27 -0600 |
commit | 8a476b326136f5c03790fa168686848884c8cd5a (patch) | |
tree | 3fac4f2940c3012734a4147ef627e2b52a27a859 /resources.rc | |
parent | manager: chdir into unelevated profile before execing (diff) | |
download | wireguard-windows-8a476b326136f5c03790fa168686848884c8cd5a.tar.xz wireguard-windows-8a476b326136f5c03790fa168686848884c8cd5a.zip |
l18n: add localization support
Revise the messages to make them localizable.
Note: The log messages are not marked for localization. Probably, we
want to keep log files in English for easier global troubleshooting.
Having a user run `go generate` requires a valid and up-to-date Go
environment. Rather than instructing users how to setup the environment
correctly, the `go generate` was integrated into build.bat. This reuses
the Go building environment downloaded and prepared by build.bat to
provide controllable and consistent result.
Use `make generate` on Linux.
As the zgotext.go output varies for GOARCH=386 and amd64, one had to be
chosen to provide stable output. The former is the first one to build in
build.bat.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'resources.rc')
-rw-r--r-- | resources.rc | 64 |
1 files changed, 37 insertions, 27 deletions
diff --git a/resources.rc b/resources.rc index 845e9684..9ea7ef58 100644 --- a/resources.rc +++ b/resources.rc @@ -6,35 +6,45 @@ #include <windows.h> #include "version/version.h" -CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST manifest.xml +#pragma code_page(65001) // UTF-8 +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST manifest.xml $wireguard.ico ICON ui/icon/wireguard.ico dot-gray.ico ICON ui/icon/dot-gray.ico -VS_VERSION_INFO VERSIONINFO -FILEVERSION WIREGUARD_WINDOWS_VERSION_ARRAY -PRODUCTVERSION WIREGUARD_WINDOWS_VERSION_ARRAY -FILEOS VOS_NT_WINDOWS32 -FILETYPE VFT_APP -FILESUBTYPE VFT2_UNKNOWN -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904b0" - BEGIN - VALUE "CompanyName", "WireGuard LLC" - VALUE "FileDescription", "WireGuard: Fast, Modern, Secure VPN Tunnel" - VALUE "FileVersion", WIREGUARD_WINDOWS_VERSION_STRING - VALUE "InternalName", "wireguard" - VALUE "LegalCopyright", "Copyright \xa9 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved." - VALUE "OriginalFilename", "wireguard.exe" - VALUE "ProductName", "WireGuard" - VALUE "ProductVersion", WIREGUARD_WINDOWS_VERSION_STRING - VALUE "Comments", "https://www.wireguard.com/" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x409, 1200 - END +#define VERSIONINFO_TEMPLATE(block_id, lang_id, codepage_id, file_desc, comments) \ +VS_VERSION_INFO VERSIONINFO \ +FILEVERSION WIREGUARD_WINDOWS_VERSION_ARRAY \ +PRODUCTVERSION WIREGUARD_WINDOWS_VERSION_ARRAY \ +FILEOS VOS_NT_WINDOWS32 \ +FILETYPE VFT_APP \ +FILESUBTYPE VFT2_UNKNOWN \ +BEGIN \ + BLOCK "StringFileInfo" \ + BEGIN \ + BLOCK block_id \ + BEGIN \ + VALUE "CompanyName", "WireGuard LLC" \ + VALUE "FileDescription", file_desc \ + VALUE "FileVersion", WIREGUARD_WINDOWS_VERSION_STRING \ + VALUE "InternalName", "wireguard-windows" \ + VALUE "LegalCopyright", "Copyright © 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved." \ + VALUE "OriginalFilename", "wireguard.exe" \ + VALUE "ProductName", "WireGuard" \ + VALUE "ProductVersion", WIREGUARD_WINDOWS_VERSION_STRING \ + VALUE "Comments", comments \ + END \ + END \ + BLOCK "VarFileInfo" \ + BEGIN \ + VALUE "Translation", lang_id, codepage_id \ + END \ END + +LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT +VERSIONINFO_TEMPLATE( + "040904b0", 0x409, 0x4b0, + "WireGuard: Fast, Modern, Secure VPN Tunnel", + "https://www.wireguard.com/" +) |