Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PinAction/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static bool PinActionHash(string path)
// 检查仓库是否是 owner/repo 的格式
if (repo.Split('/').Length != 2)
{
AnsiConsole.MarkupLine($"{Print.MSHead.Warning} {Markup.Escape(repo)} 看起来不像是仓库的格式,跳过 {Markup.Escape($"{repo}@{tag}")}");
AnsiConsole.MarkupLine($"{Print.MSHead.Warning} {string.Format(Strings.NotARepository, Markup.Escape(repo), Markup.Escape($"{repo}@{tag}"))}");
continue;
}

Expand Down Expand Up @@ -194,7 +194,7 @@ private static bool PinActionHash(string path)
#if DEBUG
else
{
AnsiConsole.MarkupLine($"{Print.MSHead.Debug} 读取缓存 {Markup.Escape($"{repo}@{hash}")} # {Markup.Escape(tag)}");
AnsiConsole.MarkupLine($"{Print.MSHead.Debug} {Strings.ReadCache} {Markup.Escape($"{repo}@{hash}")} # {Markup.Escape(tag)}");
}
#endif

Expand Down
18 changes: 18 additions & 0 deletions PinAction/Resources/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions PinAction/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
<value>License</value>
<comment>许可(证)</comment>
</data>
<data name="NotARepository" xml:space="preserve">
<value>{0} doesn't look like a repository format; skip {1}</value>
<comment>看起来不像存储库的</comment>
</data>
<data name="Package" xml:space="preserve">
<value>Package</value>
<comment>包</comment>
Expand All @@ -185,6 +189,10 @@
<value>Pinned</value>
<comment>已固定</comment>
</data>
<data name="ReadCache" xml:space="preserve">
<value>Read Cache</value>
<comment>读取缓存时的调试输出</comment>
</data>
<data name="SkippingAlreadyPinnedHashes" xml:space="preserve">
<value>Skipping {0} because it is already pinned to the full-length hash.</value>
<comment>跳过已固定到全长哈希的 Action 的提示信息</comment>
Expand Down
6 changes: 6 additions & 0 deletions PinAction/Resources/Strings.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,18 @@
<data name="License" xml:space="preserve">
<value>许可(证)</value>
</data>
<data name="NotARepository" xml:space="preserve">
<value>{0} 看起来不像是仓库的格式,跳过 {1}</value>
</data>
<data name="Package" xml:space="preserve">
<value>包</value>
</data>
<data name="Pinned" xml:space="preserve">
<value>已固定</value>
</data>
<data name="ReadCache" xml:space="preserve">
<value>读取缓存</value>
</data>
<data name="SkippingAlreadyPinnedHashes" xml:space="preserve">
<value>跳过 {0},因为它已经固定到全长哈希值。</value>
</data>
Expand Down