Improve core tip

This commit is contained in:
2dust 2022-08-14 19:36:20 +08:00
parent 7a0daee443
commit 54a122ae34
5 changed files with 6 additions and 6 deletions

View file

@ -361,7 +361,7 @@ namespace v2rayN.Handler
if (!File.Exists(filePath)) if (!File.Exists(filePath))
{ {
string msg = string.Format(ResUI.NotFoundCore, @""); string msg = string.Format(ResUI.NotFoundCore, @"", "");
//ShowMsg(true, msg); //ShowMsg(true, msg);
return ""; return "";
} }
@ -403,7 +403,7 @@ namespace v2rayN.Handler
{ {
try try
{ {
var gitHubReleases = Utils.FromJson<List<GitHubRelease>>(gitHubReleaseApi); var gitHubReleases = Utils.FromJson<List<GitHubRelease>>(gitHubReleaseApi);
string version; string version;
if (preRelease) if (preRelease)
{ {

View file

@ -186,7 +186,7 @@ namespace v2rayN.Handler
} }
if (Utils.IsNullOrEmpty(fileName)) if (Utils.IsNullOrEmpty(fileName))
{ {
string msg = string.Format(ResUI.NotFoundCore, coreInfo.coreUrl); string msg = string.Format(ResUI.NotFoundCore, string.Join(", ", lstCoreTemp.ToArray()), coreInfo.coreUrl);
ShowMsg(false, msg); ShowMsg(false, msg);
} }
return fileName; return fileName;

View file

@ -736,7 +736,7 @@ namespace v2rayN.Resx {
} }
/// <summary> /// <summary>
/// 查找类似 Core not found, please download: {0} 的本地化字符串。 /// 查找类似 Core not found({0}), please download: {1} 的本地化字符串。
/// </summary> /// </summary>
internal static string NotFoundCore { internal static string NotFoundCore {
get { get {

View file

@ -295,7 +295,7 @@
<value> non-standard service, this feature is invalid</value> <value> non-standard service, this feature is invalid</value>
</data> </data>
<data name="NotFoundCore" xml:space="preserve"> <data name="NotFoundCore" xml:space="preserve">
<value>Core not found, please download: {0}</value> <value>Core not found({0}), please download: {1}</value>
</data> </data>
<data name="NoValidQRcodeFound" xml:space="preserve"> <data name="NoValidQRcodeFound" xml:space="preserve">
<value>Scan completed, no valid QR code found</value> <value>Scan completed, no valid QR code found</value>

View file

@ -295,7 +295,7 @@
<value>非标准服务,此功能无效</value> <value>非标准服务,此功能无效</value>
</data> </data>
<data name="NotFoundCore" xml:space="preserve"> <data name="NotFoundCore" xml:space="preserve">
<value>找不到Core,下载地址: {0}</value> <value>找不到Core(文件名:{0}),下载地址: {1}</value>
</data> </data>
<data name="NoValidQRcodeFound" xml:space="preserve"> <data name="NoValidQRcodeFound" xml:space="preserve">
<value>扫描完成,未发现有效二维码</value> <value>扫描完成,未发现有效二维码</value>