Skip to content

Commit

Permalink
PowerToys v0.80.0 Translation v21.1 Incremental Pack
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Apr 10, 2024
1 parent 5508313 commit 036632b
Show file tree
Hide file tree
Showing 29 changed files with 1,244 additions and 148 deletions.
2 changes: 1 addition & 1 deletion PowerToys/src/Version.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version>0.79.0</Version>
<Version>0.80.0</Version>

<!-- Forcing for every DLL on by default -->
<ChecksumAlgorithm>SHA256</ChecksumAlgorithm>
Expand Down
25 changes: 15 additions & 10 deletions PowerToys/src/common/interop/interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <common/version/version.h>


using namespace System;
using namespace System::Runtime::InteropServices;
using System::Collections::Generic::List;
Expand All @@ -40,11 +39,17 @@ public
delete _map;
}

String ^ GetKeyName(DWORD key) {
String ^ GetKeyName(DWORD key)
{
return gcnew String(_map->GetKeyName(key).c_str());
}

void Updatelayout()
DWORD GetKeyValue(String ^ name)
{
return _map->GetKeyFromName(msclr::interop::marshal_as<std::wstring>(name));
}

void Updatelayout()
{
_map->UpdateLayout();
}
Expand Down Expand Up @@ -129,13 +134,13 @@ public
}

static List<String ^> ^ GetAllActiveMicrophoneDeviceNames() {
auto names = gcnew List<String ^>();
for (const auto& device : MicrophoneDevice::getAllActive())
{
names->Add(gcnew String(device->name().data()));
auto names = gcnew List<String ^>();
for (const auto& device : MicrophoneDevice::getAllActive())
{
names->Add(gcnew String(device->name().data()));
}
return names;
}
return names;
}

static List<String ^> ^
GetAllVideoCaptureDeviceNames() {
Expand All @@ -146,7 +151,7 @@ public
for (UINT32 i = 0; i < vcdl.Count(); ++i)
{
auto name = gcnew String(vcdl.GetDeviceName(i).data());
if (name != L"Ö±²¥¹¤¾ßÐéÄâÉãÏñ")
if (name != L"直播工具虚拟摄像")
{
names->Add(name);
}
Expand Down
2 changes: 1 addition & 1 deletion PowerToys/src/gpo/assets/zh-CN/PowerToys.adml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<string id="ConfigureEnabledUtilityCropAndLock">窗口镜像: 启用该功能</string>
<string id="ConfigureEnabledUtilityEnvironmentVariables">环境变量: 启用该功能</string>
<string id="ConfigureEnabledUtilityFancyZones">窗口布局: 启用该功能</string>
<string id="ConfigureEnabledUtilityFileLocksmith">文件师傅: 启用该功能</string>
<string id="ConfigureEnabledUtilityFileLocksmith">文件开锁匠: 启用该功能</string>
<string id="ConfigureEnabledUtilityFileExplorerSVGPreview">预览增强 - SVG 文件预览: 启用该功能</string>
<string id="ConfigureEnabledUtilityFileExplorerMarkdownPreview">预览增强 - Markdown 文件预览: 启用该功能</string>
<string id="ConfigureEnabledUtilityFileExplorerMonacoPreview">预览增强 - 代码文件预览: 启用该功能</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<value>新建变量</value>
</data>
<data name="WindowAdminTitle" xml:space="preserve">
<value>管理员权限环境变量编辑器</value>
<value>管理员权限: 环境变量编辑器</value>
<comment>Title of the window when running as administrator</comment>
</data>
<data name="CancelAddVariableBtn.Content" xml:space="preserve">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,6 @@
<comment>This text will be shown when the user opens the context menu (right clicks) a file. File Locksmith is the product name, do not loc.</comment>
</data>
<data name="File_Locksmith_App_Name" xml:space="preserve">
<value>文件师傅</value>
<value>文件开锁匠</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<comment>This text will be shown when the user opens the context menu (right clicks) a file. File Locksmith is the product name, do not loc.</comment>
</data>
<data name="FileLocksmith_PowerToyName" xml:space="preserve">
<value>文件师傅</value>
<value>文件开锁匠</value>
<comment>Localized name of the PowerToy.</comment>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AppTitle" xml:space="preserve">
<value>文件师傅</value>
<value>文件开锁匠</value>
<comment>Title of the window when running as user.</comment>
</data>
<data name="EmptyListDescription.Text" xml:space="preserve">
Expand Down Expand Up @@ -161,7 +161,7 @@
<value>用户</value>
</data>
<data name="AppAdminTitle" xml:space="preserve">
<value>管理员权限: 文件师傅</value>
<value>管理员权限: 文件开锁匠</value>
<comment>Title of the window when running as administrator.</comment>
</data>
</root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 036632b

Please sign in to comment.