Merge pull request #93 from ALTaleX531/master

Improve translations and fix bugs
This commit is contained in:
Maplespe
2024-02-06 09:31:55 +08:00
committed by GitHub
5 changed files with 66 additions and 31 deletions
@@ -116,7 +116,7 @@ namespace MDWMBlurGlassExt::CustomBackdrop
backdrop->GetVisual()->AllowVisualTreeClone(cloneAllowed);
if (SUCCEEDED(hr))
{
auto clonedBackdrop{ std::make_shared<CCompositedBackdrop>(g_configData.effectType, true) };
auto clonedBackdrop{ std::make_shared<CCompositedBackdrop>(g_configData.effectType, g_configData.reflection) };
backdrop->InitializeVisualTreeClone(clonedBackdrop.get());
g_backdropManager.CreateWithGivenBackdrop(topLevelWindow, clonedBackdrop);
}
+2
View File
@@ -80,6 +80,8 @@ namespace MDWMBlurGlassExt::CustomButton
CButton** button;
if (os::buildNumber < 22000)
button = (CButton**)((DWORD64)This + 8 * (index + 61));
else if (os::buildNumber < 22621)
button = (CButton**)((DWORD64)This + 8 * (index + 63));
else
button = (CButton**)((DWORD64)This + 8 * (index + 66));
+33 -22
View File
@@ -3,14 +3,15 @@
<inituifail0>MiaoUI library Initialization failed! error code: </inituifail0>
<inituifail1>Failed to create window context!</inituifail1>
<inituifail2>Failed to initialize window!</inituifail2>
<initfail0>Note that due to DWM Authorization Isolation restrictions, the application must be placed in a non-user directory, and the path cannot be in "{path}" or its subdirectories! Please change the directory.</initfail0>
<symloadfail>Loading symbols file failed! The program could not load the dll, please download the symbols again! (Symbols may also need to be re-downloaded after a system update)</symloadfail>
<initfail0>Note that due to DWM is running in a sandbox, this application must be placed in a non-user directory, and the path cannot be in "{path}" or its sub directories! Please place it in another directory.</initfail0>
<symloadfail>Loading symbol files failed! The program could not load the dll, please download the symbols again! (Symbols may also need to be re-downloaded after a system update)</symloadfail>
<colorpicker_dlg_sel>Select color:</colorpicker_dlg_sel>
<colorpicker_dlg_c>New color:</colorpicker_dlg_c>
<msgdlg_no>Cancel</msgdlg_no>
<msgdlg_yes>Confirm</msgdlg_yes>
<colorpicker_dlg_alpha>Opacity:</colorpicker_dlg_alpha>
<general>General</general>
<advanced>Advanced</advanced>
<symbol>Symbol</symbol>
<config>Config</config>
<about>About</about>
@@ -19,38 +20,48 @@
<status1>Installed</status1>
<install>Install</install>
<uninstall>Uninstall</uninstall>
<installsucs>Installation successful!</installsucs>
<installsucs1>The installation was successful! But you haven't downloaded a valid symbol file yet, download it from the "Symbols" page to make it work!</installsucs1>
<installfail>Installation failed! Error message: </installfail>
<uninstallsucs>Uninstalled successfully.</uninstallsucs>
<uninstallfail>Uninstallation failed! Error message: </uninstallfail>
<installsucs>Install successfully!</installsucs>
<installsucs1>Install successfully! But you haven't downloaded a valid symbol file yet, download it from the "Symbols" page to make DWMBlurGlass work!</installsucs1>
<installfail>Install failed! Error message: </installfail>
<uninstallsucs>Uninstall successfully.</uninstallsucs>
<uninstallfail>Uninstall failed! Error message: </uninstallfail>
<loadfail>Failed to load component! Error message: </loadfail>
<saveconfig>Save Config</saveconfig>
<saveconfig>Save</saveconfig>
<effectset>Effect Settings</effectset>
<blurvalue>Blur radius:</blurvalue>
<applyglobal>Override DWMAPI mica effect (win11)</applyglobal>
<extendborder>Extend effects to borders (win10)</extendborder>
<reflection>Enable Aero reflection effect (win10)</reflection>
<oldBtnHeight>Reduce title bar button height (win7 style)</oldBtnHeight>
<blendcolor>Title bar blend color (Active):</blendcolor>
<inactiveblendcolor>Title bar blend color (Inactive):</inactiveblendcolor>
<blurvalue>Blur radius (global):</blurvalue>
<applyglobal>Override DWMAPI effect (win11)</applyglobal>
<extendborder>Effects extend to borders (win10)</extendborder>
<reflection>Enable Aero reflection effect</reflection>
<reflectiontip>(Legacy blur method for win10 only)</reflectiontip>
<oldBtnHeight>Decrease titlebar button height (win7 style)</oldBtnHeight>
<cmodelight>Light Mode colors</cmodelight>
<cmodedark>Dark Mode Colors</cmodedark>
<blendcolor>Titlebar blend color (active):</blendcolor>
<inactiveblendcolor>Titlebar blend color (inactive):</inactiveblendcolor>
<activecolor>Active text color:</activecolor>
<inactivecolor>Inactive text color:</inactivecolor>
<preview>Preview</preview>
<sampletitle>Example window title (active)</sampletitle>
<configfile>Configuration file</configfile>
<symbolfile>Symbol file:</symbolfile>
<blurmethod>Blur Method:</blurmethod>
<methodcustom>[Recommended] Custom blur implementation written by CVisual (DWM)\nand Windows.UI.Composition (dcomp) to achieve custom backdrop effects, \nyou can customize most of the parameters, not only you can get the highest \nefficiency, but also the best appearance and better stability. However, the \ncompatibility is not that good. \n(it may be broken after a major Windows update, then you have to wait for \nthe next rlease).</methodcustom>
<methodaccent>[Not Recommended] Use DWM internal blur implementation but not deleted \nAccentBlurBehind class to apply blur effect, you can customize some of the \nparameters, but it is inefficient and less stable. It can work normally on most \nof the systems. \n(generally, a system update will not break it).</methodaccent>
<methoddwmapi>Use documented DWMAPI to apply limited SystemBackdrop effect, such as \nAcrylic, Mica effect, you cannot customize these parameters at all, but it has \nhigh efficiency, better stability. However, it may break the appearance of \nsome programs, and it is only available above Windows 11 22H2(+).</methoddwmapi>
<effecttype>Effect Type:</effecttype>
<blurvaluetitle>Blur radius (titlebar only):</blurvaluetitle>
<luminosity>Luminosity Opacity:</luminosity>
<symbolfile>Symbol files:</symbolfile>
<download>Download</download>
<symtip>Symbol files (pdb) are files that record debugging information about a program. Since systems vary from version to version, you will need to download the symbol files from a Microsoft server. If you update your system, you may need to download the new file again.</symtip>
<symtip>Symbol files (pdb) are files that record debugging information about a\nprogram. Since systems vary from version to version, you need to\ndownload symbol files from the Microsoft server. If you update your\nsystem, you may need to download the symbol files again.</symtip>
<symstatus0>Invalid</symstatus0>
<symstatus1>Valid</symstatus1>
<symdowning>Downloading...</symdowning>
<symdownfail>Download failed! Unable to download file from "msdl.microsoft.com".</symdownfail>
<syminvalid>Symbol file is invalid! Please go to the "Symbols" page of the DWMBlurGlass program to download a new symbol file!</syminvalid>
<symdownfail>Download failed! Unable to download symbol files from "msdl.microsoft.com".</symdownfail>
<syminvalid>Symbol files are invalid! Please go to the "Symbols" page of the DWMBlurGlass program to download new symbol files!</syminvalid>
<configfile>Configuration file</configfile>
<import>Import</import>
<export>Export</export>
<restore>Restore defaults</restore>
<importwarn>Importing a configuration file will overwrite your existing configuration, continue?</importwarn>
<restore>Restore to default settings</restore>
<importwarn>Importing a configuration file will overwrite your existing configuration, continue anyway?</importwarn>
<restorecfg>Are you sure you want to restore the default configuration?</restorecfg>
<aboutinfo>This program is based on the LGPLv3 agreement free open source software:</aboutinfo>
<curlang>Current language:</curlang>
+15 -4
View File
@@ -11,6 +11,7 @@
<msgdlg_yes>确认</msgdlg_yes>
<colorpicker_dlg_alpha>不透明度:</colorpicker_dlg_alpha>
<general>通用设置</general>
<advanced>高级设置</advanced>
<symbol>符号文件</symbol>
<config>配置文件</config>
<about>关于</about>
@@ -27,26 +28,36 @@
<loadfail>加载组件失败! 错误信息: </loadfail>
<saveconfig>保存配置</saveconfig>
<effectset>效果设置</effectset>
<blurvalue>模糊半径:</blurvalue>
<blurvalue>模糊半径(全局):</blurvalue>
<applyglobal>覆盖使用DWMAPI设置的云母效果(win11)</applyglobal>
<extendborder>扩展效果到边框 (win10)</extendborder>
<reflection>启用Aero反光效果 (win10)</reflection>
<reflection>启用Aero反射效果</reflection>
<reflectiontip>(使用OldBlur仅限win10有效)</reflectiontip>
<oldBtnHeight>减少标题栏按钮高度 (win7样式)</oldBtnHeight>
<cmodelight>浅色模式颜色</cmodelight>
<cmodedark>深色模式颜色</cmodedark>
<blendcolor>标题栏混合颜色 (活动状态):</blendcolor>
<inactiveblendcolor>标题栏混合颜色 (非活动状态):</inactiveblendcolor>
<activecolor>活动状态文本颜色:</activecolor>
<inactivecolor>非活动状态文本颜色:</inactivecolor>
<preview>预览</preview>
<sampletitle>示例窗口标题(活动状态)</sampletitle>
<configfile>配置文件</configfile>
<blurmethod>模糊方法:</blurmethod>
<methodcustom>[推荐] 使用本程序编写的模糊类 利用CVisual(DWM)和IComposition(dcomp)\n实现自定义背景效果,可以自定义绝大部分参数,效率最高,效果最好,稳定性较好,\n但系统适配范围一般(系统如果大更新可能会失效 需要等待更新)</methodcustom>
<methodaccent>[不推荐] 使用DWM内部未公开但未删除的AccentBlurBehind类实现模糊效果,\n可以自定义一小部分参数,效率较低,稳定性较差,系统适配范围较好\n(一般系统更新不会失效)</methodaccent>
<methoddwmapi>使用公开的DWMAPI设置SystemBackdrop效果,可选预设的Acrylic、Mica效果,\n无法自定义参数,效率高,稳定性较好,但可能破坏部分程序的渲染,\n系统适配范围仅限Windows 11 22H2(+)</methoddwmapi>
<effecttype>效果类型:</effecttype>
<blurvaluetitle>模糊半径(仅标题栏):</blurvaluetitle>
<luminosity>材质亮度不透明度:</luminosity>
<symbolfile>符号文件:</symbolfile>
<download>下载</download>
<symtip>符号文件(pdb)是记录程序调试信息的一种文件,由于各版本系统各不相同所以需要从微软服务器下载符号文件。如果您更新系统 可能需要重新下载新的文件。</symtip>
<symtip>符号文件(pdb)是记录程序调试信息的一种文件,由于各版本系统各不相同所以\n需要从微软服务器下载符号文件。如果您更新系统 可能需要重新下载新的文件。</symtip>
<symstatus0>无效</symstatus0>
<symstatus1>有效</symstatus1>
<symdowning>下载中...</symdowning>
<symdownfail>下载失败! 无法从"msdl.microsoft.com"下载文件</symdownfail>
<syminvalid>符号文件无效! 请转到DWMBlurGlass"符号文件"页面下载新的符号文件</syminvalid>
<configfile>配置文件</configfile>
<import>导入</import>
<export>导出</export>
<restore>还原默认</restore>
+15 -4
View File
@@ -11,6 +11,7 @@
<msgdlg_yes>确认</msgdlg_yes>
<colorpicker_dlg_alpha>不透明度:</colorpicker_dlg_alpha>
<general>通用设置</general>
<advanced>高级设置</advanced>
<symbol>符号文件</symbol>
<config>配置文件</config>
<about>关于</about>
@@ -27,26 +28,36 @@
<loadfail>加载组件失败! 错误信息: </loadfail>
<saveconfig>保存配置</saveconfig>
<effectset>效果设置</effectset>
<blurvalue>模糊半径:</blurvalue>
<blurvalue>模糊半径(全局):</blurvalue>
<applyglobal>覆盖使用DWMAPI设置的云母效果(win11)</applyglobal>
<extendborder>扩展效果到边框 (win10)</extendborder>
<reflection>启用Aero反光效果 (win10)</reflection>
<reflection>启用Aero反射效果</reflection>
<reflectiontip>(使用OldBlur仅限win10有效)</reflectiontip>
<oldBtnHeight>减少标题栏按钮高度 (win7样式)</oldBtnHeight>
<cmodelight>浅色模式颜色</cmodelight>
<cmodedark>深色模式颜色</cmodedark>
<blendcolor>标题栏混合颜色 (活动状态):</blendcolor>
<inactiveblendcolor>标题栏混合颜色 (非活动状态):</inactiveblendcolor>
<activecolor>活动状态文本颜色:</activecolor>
<inactivecolor>非活动状态文本颜色:</inactivecolor>
<preview>预览</preview>
<sampletitle>示例窗口标题(活动状态)</sampletitle>
<configfile>配置文件</configfile>
<blurmethod>模糊方法:</blurmethod>
<methodcustom>[推荐] 使用本程序编写的模糊类 利用CVisual(DWM)和IComposition(dcomp)\n实现自定义背景效果,可以自定义绝大部分参数,效率最高,效果最好,稳定性较好,\n但系统适配范围一般(系统如果大更新可能会失效 需要等待更新)</methodcustom>
<methodaccent>[不推荐] 使用DWM内部未公开但未删除的AccentBlurBehind类实现模糊效果,\n可以自定义一小部分参数,效率较低,稳定性较差,系统适配范围较好\n(一般系统更新不会失效)</methodaccent>
<methoddwmapi>使用公开的DWMAPI设置SystemBackdrop效果,可选预设的Acrylic、Mica效果,\n无法自定义参数,效率高,稳定性较好,但可能破坏部分程序的渲染,\n系统适配范围仅限Windows 11 22H2(+)</methoddwmapi>
<effecttype>效果类型:</effecttype>
<blurvaluetitle>模糊半径(仅标题栏):</blurvaluetitle>
<luminosity>材质亮度不透明度:</luminosity>
<symbolfile>符号文件:</symbolfile>
<download>下载</download>
<symtip>符号文件(pdb)是记录程序调试信息的一种文件,由于各版本系统各不相同所以需要从微软服务器下载符号文件。如果您更新系统 可能需要重新下载新的文件。</symtip>
<symtip>符号文件(pdb)是记录程序调试信息的一种文件,由于各版本系统各不相同所以\n需要从微软服务器下载符号文件。如果您更新系统 可能需要重新下载新的文件。</symtip>
<symstatus0>无效</symstatus0>
<symstatus1>有效</symstatus1>
<symdowning>下载中...</symdowning>
<symdownfail>下载失败! 无法从"msdl.microsoft.com"下载文件</symdownfail>
<syminvalid>符号文件无效! 请转到DWMBlurGlass"符号文件"页面下载新的符号文件</syminvalid>
<configfile>配置文件</configfile>
<import>导入</import>
<export>导出</export>
<restore>还原默认</restore>