diff --git a/PinAction/Program.cs b/PinAction/Program.cs
index 3ec9c0c..5a1750f 100644
--- a/PinAction/Program.cs
+++ b/PinAction/Program.cs
@@ -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;
}
@@ -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
diff --git a/PinAction/Resources/Strings.Designer.cs b/PinAction/Resources/Strings.Designer.cs
index 1775580..9d2d43d 100644
--- a/PinAction/Resources/Strings.Designer.cs
+++ b/PinAction/Resources/Strings.Designer.cs
@@ -195,6 +195,15 @@ internal static string License {
}
}
+ ///
+ /// 查找类似 {0} doesn't look like a repository format; skip {1} 的本地化字符串。
+ ///
+ internal static string NotARepository {
+ get {
+ return ResourceManager.GetString("NotARepository", resourceCulture);
+ }
+ }
+
///
/// 查找类似 Package 的本地化字符串。
///
@@ -213,6 +222,15 @@ internal static string Pinned {
}
}
+ ///
+ /// 查找类似 Read Cache 的本地化字符串。
+ ///
+ internal static string ReadCache {
+ get {
+ return ResourceManager.GetString("ReadCache", resourceCulture);
+ }
+ }
+
///
/// 查找类似 Skipping {0} because it is already pinned to the full-length hash. 的本地化字符串。
///
diff --git a/PinAction/Resources/Strings.resx b/PinAction/Resources/Strings.resx
index 7e8770f..772499f 100644
--- a/PinAction/Resources/Strings.resx
+++ b/PinAction/Resources/Strings.resx
@@ -177,6 +177,10 @@
License
许可(证)
+
+ {0} doesn't look like a repository format; skip {1}
+ 看起来不像存储库的
+
Package
包
@@ -185,6 +189,10 @@
Pinned
已固定
+
+ Read Cache
+ 读取缓存时的调试输出
+
Skipping {0} because it is already pinned to the full-length hash.
跳过已固定到全长哈希的 Action 的提示信息
diff --git a/PinAction/Resources/Strings.zh-CN.resx b/PinAction/Resources/Strings.zh-CN.resx
index 8900b01..408b36e 100644
--- a/PinAction/Resources/Strings.zh-CN.resx
+++ b/PinAction/Resources/Strings.zh-CN.resx
@@ -162,12 +162,18 @@
许可(证)
+
+ {0} 看起来不像是仓库的格式,跳过 {1}
+
包
已固定
+
+ 读取缓存
+
跳过 {0},因为它已经固定到全长哈希值。