From 4f217c450bb20549c34c35d19050348881131ed0 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 22 Jul 2020 18:35:30 +0100 Subject: zh-cn translation in resource file + Add resource description + Add more descriptive flags --- src/Resources/Cuberite.rc | 105 ++++++++++++++++++++++++++++++++------ src/Resources/resource_Cuberite.h | 5 -- 2 files changed, 88 insertions(+), 22 deletions(-) delete mode 100644 src/Resources/resource_Cuberite.h diff --git a/src/Resources/Cuberite.rc b/src/Resources/Cuberite.rc index 779487458..38f0df1df 100644 --- a/src/Resources/Cuberite.rc +++ b/src/Resources/Cuberite.rc @@ -1,17 +1,88 @@ -// Generated by ResEdit 1.5.11 -// Copyright (C) 2006-2012 -// http://www.resedit.net - -#include -#include -#include -#include "resource_Cuberite.h" - - - - -// -// Icon resources -// -LANGUAGE 9, SUBLANG_DEFAULT -IDI_ICON1 ICON "icon.ico" +#include "winres.h" + +Favicon ICON "icon.ico" + +STRINGTABLE + LANGUAGE LANG_CHINESE_SIMPLIFIED, SUBLANG_CHINESE_SIMPLIFIED +BEGIN + 1 "Cuberite" + 2 "一个轻巧、快速、可扩展的Minecraftf游戏服务器" +END + +STRINGTABLE + LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK +BEGIN + 1 "Cuberite" + 2 "A lightweight, fast and extensible game server for Minecraft" +END + +#define VERSION 0,0,13,37 +#define VERSION_STRING "0.0.13.37" +#define INTERNAL_NAME "MCServer" +#define ORIGINAL_FILENAME "Cuberite.exe" + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION + PRODUCTVERSION VERSION + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE VFT_APP + FILESUBTYPE 0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904B0" + BEGIN + VALUE "CompanyName", "Cuberite Contributors" + VALUE "FileDescription", "Cuberite" + VALUE "FileVersion", VERSION_STRING + VALUE "InternalName", INTERNAL_NAME + VALUE "OriginalFilename", ORIGINAL_FILENAME + VALUE "ProductName", "Cuberite" + VALUE "ProductVersion", VERSION_STRING + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0809,1200, 0x0804,1200 + END +END + +LANGUAGE LANG_CHINESE_SIMPLIFIED, SUBLANG_CHINESE_SIMPLIFIED +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION + PRODUCTVERSION VERSION + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE VFT_APP + FILESUBTYPE 0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080404B0" + BEGIN + VALUE "CompanyName", "Cuberite 作者" + VALUE "FileDescription", "Cuberite" + VALUE "FileVersion", VERSION_STRING + VALUE "InternalName", INTERNAL_NAME + VALUE "OriginalFilename", ORIGINAL_FILENAME + VALUE "ProductName", "Cuberite" + VALUE "ProductVersion", VERSION_STRING + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0804,1200, 0x0809,1200 + END +END diff --git a/src/Resources/resource_Cuberite.h b/src/Resources/resource_Cuberite.h deleted file mode 100644 index 42f6c4eaf..000000000 --- a/src/Resources/resource_Cuberite.h +++ /dev/null @@ -1,5 +0,0 @@ -#ifndef IDC_STATIC -#define IDC_STATIC (-1) -#endif - -#define IDI_ICON1 101 -- cgit v1.2.3