Skip to content

Commit

Permalink
PowerToys v0.81.1 Translation v21.4 Incremental Pack
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed May 29, 2024
1 parent 22d49db commit 4abcd0c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 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.81.0</Version>
<Version>0.81.1</Version>

<!-- Forcing for every DLL on by default -->
<ChecksumAlgorithm>SHA256</ChecksumAlgorithm>
Expand Down
11 changes: 10 additions & 1 deletion PowerToys/src/gpo/assets/zh-CN/PowerToys.adml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation.
Licensed under the MIT License. -->
<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.9" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.10" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<displayName>PowerToys</displayName>
<description>PowerToys</description>
<resources>
<stringTable>
<string id="PowerToys">Microsoft PowerToys</string>
<string id="InstallerUpdates">安装与更新</string>
<string id="PowerToysRun">快捷启动器</string>
<string id="AdvancedPaste">高级粘贴</string>

<string id="SUPPORTED_POWERTOYS_0_64_0">PowerToys 版本 0.64.0 或更高版本</string>
<string id="SUPPORTED_POWERTOYS_0_68_0">PowerToys 版本 0.68.0 或更高版本</string>
Expand All @@ -20,6 +21,7 @@
<string id="SUPPORTED_POWERTOYS_0_77_0">PowerToys 版本 0.77.0 或更高版本</string>
<string id="SUPPORTED_POWERTOYS_0_78_0">PowerToys 版本 0.78.0 或更高版本</string>
<string id="SUPPORTED_POWERTOYS_0_81_0">PowerToys 版本 0.81.0 或更高版本</string>
<string id="SUPPORTED_POWERTOYS_0_81_1">PowerToys 版本 0.81.1 或更高版本</string>

<string id="ConfigureGlobalUtilityEnabledStateDescription">此策略控制所有 PowerToys 功能的启用状态。

Expand Down Expand Up @@ -118,6 +120,12 @@
启用该策略后,你可以通过“配置所有插件的启用状态”策略,来控制列表外的其他插件的启用状态。

注意:更改需要重新启动快捷启动器才能应用。
</string>
<string id="AllowPowerToysAdvancedPasteOnlineAIModelsDescription">此策略控制是否允许高级粘贴使用在线 AI 模型。

如果策略设置为“已启用”或“未配置”,用户可以设置是否启用 AI 粘贴功能。

如果策略设置为“已禁用”,用户不可以启用 AI 粘贴功能,不可以在粘贴面板中输入 AI 提示词,也不能配置 OpenAI 密钥。
</string>
<string id="ConfigureGlobalUtilityEnabledState">配置所有功能的启用状态</string>
<string id="ConfigureEnabledUtilityAdvancedPaste">高级粘贴: 启用该功能</string>
Expand Down Expand Up @@ -165,6 +173,7 @@
<string id="PowerToysRunIndividualPluginEnabledState">配置特定插件的启用状态</string>
<string id="ConfigureEnabledUtilityFileExplorerQOIPreview">预览增强 - QOI 文件预览: 启用该功能</string>
<string id="ConfigureEnabledUtilityFileExplorerQOIThumbnails">预览增强 - QOI 文件缩略图: 启用该功能</string>
<string id="AllowPowerToysAdvancedPasteOnlineAIModels">高级粘贴: 允许使用在线 AI 模型</string>
</stringTable>

<presentationTable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AIMistakeNote.Text" xml:space="preserve">
<value>注意 AI 也会犯错</value>
<value>注意 AI 也会犯错</value>
</data>
<data name="ClipboardDataTypeMismatchWarning" xml:space="preserve">
<value>剪贴板数据不是文本</value>
Expand Down Expand Up @@ -225,4 +225,7 @@
<data name="TermsLink.Text" xml:space="preserve">
<value>OpenAI 使用条款</value>
</data>
<data name="OpenAIGpoDisabled" xml:space="preserve">
<value>组策略已禁止 AI 功能</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Severity="Informational" />

<controls:SettingsGroup x:Uid="AdvancedPaste_EnableAISettingsGroup" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
<tkcontrols:SettingsCard x:Uid="AdvancedPaste_EnableAISettingsCard">
<tkcontrols:SettingsCard x:Uid="AdvancedPaste_EnableAISettingsCard" IsEnabled="{x:Bind ViewModel.IsOnlineAIModelsDisallowedByGPO, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
<tkcontrols:SettingsCard.HeaderIcon>
<PathIcon Data="M128 766q0-42 24-77t65-48l178-57q32-11 61-30t52-42q50-50 71-114l58-179q13-40 48-65t78-26q42 0 77 24t50 65l58 177q21 66 72 117 49 50 117 72l176 58q43 14 69 48t26 80q0 41-25 76t-64 49l-178 58q-66 21-117 72-32 32-51 73t-33 84-26 83-30 73-45 51-71 20q-42 0-77-24t-49-65l-58-178q-8-25-19-47t-28-43q-34-43-77-68t-89-41-89-27-78-29-55-45-21-75zm1149 7q-76-29-145-53t-129-60-104-88-73-138l-57-176-67 176q-18 48-42 89t-60 78q-34 34-76 61t-89 43l-177 57q75 29 144 53t127 60 103 89 73 137l57 176 67-176q37-97 103-168t168-103l177-57zm-125 759q0-31 20-57t49-36l99-32q34-11 53-34t30-51 20-59 20-54 33-41 58-16q32 0 59 19t38 50q6 20 11 40t13 40 17 38 25 34q16 17 39 26t48 18 49 16 44 20 31 32 12 50q0 33-18 60t-51 38q-19 6-39 11t-41 13-39 17-34 25q-24 25-35 62t-24 73-35 61-68 25q-32 0-59-19t-38-50q-6-18-11-39t-13-41-17-40-24-33q-18-17-41-27t-47-17-49-15-43-20-30-33-12-54zm583 4q-43-13-74-30t-55-41-40-55-32-74q-12 41-29 72t-42 55-55 42-71 31q81 23 128 71t71 129q15-43 31-74t40-54 53-40 75-32z" />
</tkcontrols:SettingsCard.HeaderIcon>
Expand Down Expand Up @@ -73,12 +73,27 @@
IsEnabled="{x:Bind ViewModel.IsOpenAIEnabled, Mode=OneWay}">
<ToggleSwitch IsOn="{x:Bind ViewModel.ShowCustomPreview, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<InfoBar
x:Uid="GPO_SettingIsManaged"
IsClosable="False"
IsOpen="{x:Bind ViewModel.ShowOnlineAIModelsGpoConfiguredInfoBar, Mode=OneWay}"
IsTabStop="{x:Bind ViewModel.ShowOnlineAIModelsGpoConfiguredInfoBar, Mode=OneWay}"
Severity="Informational" />
</controls:SettingsGroup>

<controls:SettingsGroup x:Uid="AdvancedPaste_ClipboardHistorySettingsGroup" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
<tkcontrols:SettingsCard x:Uid="AdvancedPaste_Clipboard_History_Enabled_SettingsCard" HeaderIcon="{ui:FontIcon Glyph=&#xF0E3;}">
<tkcontrols:SettingsCard
x:Uid="AdvancedPaste_Clipboard_History_Enabled_SettingsCard"
HeaderIcon="{ui:FontIcon Glyph=&#xF0E3;}"
IsEnabled="{x:Bind ViewModel.ClipboardHistoryDisabledByGPO, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
<ToggleSwitch IsOn="{x:Bind ViewModel.ClipboardHistoryEnabled, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<InfoBar
x:Uid="GPO_SettingIsManaged"
IsClosable="False"
IsOpen="{x:Bind ViewModel.ClipboardHistoryDisabledByGPO, Mode=OneWay}"
IsTabStop="{x:Bind ViewModel.ClipboardHistoryDisabledByGPO, Mode=OneWay}"
Severity="Informational" />
</controls:SettingsGroup>

<controls:SettingsGroup x:Uid="AdvancedPaste_Direct_Access_Hotkeys_GroupSettings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@
<comment>Product name: Navigation view item name for Advanced Paste</comment>
</data>
<data name="AdvancedPaste.ModuleDescription" xml:space="preserve">
<value>AI 赋能剪贴板,将复制的文本内容转换为任何您需要的格式</value>
<value>将复制的文本内容粘贴为纯文本、Markdown、JSON 等各种格式,也可以使用在线 AI 来为您执行自定义格式化。</value>
</data>
<data name="AdvancedPaste.ModuleTitle" xml:space="preserve">
<value>高级粘贴</value>
Expand All @@ -3779,7 +3779,7 @@
<value>粘贴前检查 AI 输出的格式化结果</value>
</data>
<data name="Oobe_AdvancedPaste.Description" xml:space="preserve">
<value>高级粘贴是一个为开发者准备的 AI 工具,可以将复制的文本内容转换为你需要的任何格式。注意:剪贴板里原本的文本会被新文本覆盖。</value>
<value>高级粘贴是一个为开发者准备的剪贴板工具,可以将复制的文本内容转换为任何需要的格式来粘贴。纯文本、Markdown、JSON 的格式化功能均在本地执行,AI 自定义格式化需要使用 OpenAI 的密钥来联网执行。注意,执行格式化后,剪贴板里原本的文本会被格式化后的文本覆盖。</value>
</data>
<data name="Oobe_AdvancedPaste.Title" xml:space="preserve">
<value>高级粘贴</value>
Expand Down

0 comments on commit 4abcd0c

Please sign in to comment.