Skip to content

Commit

Permalink
Merge pull request #4432 from The-Mojoo/master
Browse files Browse the repository at this point in the history
Add Update CoreTypeName
  • Loading branch information
2dust committed Nov 22, 2023
2 parents 2031729 + 735ebbe commit 2a37a6a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions v2rayN/v2rayN/Handler/UpdateHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ private void responseHandler(ECoreType type, string gitHubReleaseApi, bool preRe
case ECoreType.v2fly_v5:
{
curVersion = getCoreVersion(type);
message = string.Format(ResUI.IsLatestCore, curVersion.ToVersionString("v"));
message = string.Format(ResUI.IsLatestCore, type, curVersion.ToVersionString("v"));
string osBit = "64";
switch (RuntimeInformation.ProcessArchitecture)
{
Expand All @@ -451,7 +451,7 @@ private void responseHandler(ECoreType type, string gitHubReleaseApi, bool preRe
case ECoreType.clash_meta:
{
curVersion = getCoreVersion(type);
message = string.Format(ResUI.IsLatestCore, curVersion);
message = string.Format(ResUI.IsLatestCore, type, curVersion);
switch (RuntimeInformation.ProcessArchitecture)
{
case Architecture.Arm64:
Expand All @@ -472,7 +472,7 @@ private void responseHandler(ECoreType type, string gitHubReleaseApi, bool preRe
case ECoreType.sing_box:
{
curVersion = getCoreVersion(type);
message = string.Format(ResUI.IsLatestCore, curVersion.ToVersionString("v"));
message = string.Format(ResUI.IsLatestCore, type, curVersion.ToVersionString("v"));
switch (RuntimeInformation.ProcessArchitecture)
{
case Architecture.Arm64:
Expand All @@ -493,7 +493,7 @@ private void responseHandler(ECoreType type, string gitHubReleaseApi, bool preRe
case ECoreType.v2rayN:
{
curVersion = new SemanticVersion(FileVersionInfo.GetVersionInfo(Utils.GetExePath()).FileVersion.ToString());
message = string.Format(ResUI.IsLatestN, curVersion);
message = string.Format(ResUI.IsLatestN, type, curVersion);
switch (RuntimeInformation.ProcessArchitecture)
{
case Architecture.Arm64:
Expand Down
4 changes: 2 additions & 2 deletions v2rayN/v2rayN/Resx/ResUI.fa-Ir.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@
<value>پیکربندی اولیه</value>
</data>
<data name="IsLatestCore" xml:space="preserve">
<value>{0} در حال حاضر به روز است.</value>
<value>{0} {1} در حال حاضر به روز است.</value>
</data>
<data name="IsLatestN" xml:space="preserve">
<value>{0} در حال حاضر به روز است.</value>
<value>{0} {1} در حال حاضر به روز است.</value>
</data>
<data name="LvAddress" xml:space="preserve">
<value>آدرس</value>
Expand Down
4 changes: 2 additions & 2 deletions v2rayN/v2rayN/Resx/ResUI.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@
<value>Initial Configuration</value>
</data>
<data name="IsLatestCore" xml:space="preserve">
<value>{0} already up to date.</value>
<value>{0} {1} already up to date.</value>
</data>
<data name="IsLatestN" xml:space="preserve">
<value>{0} already up to date.</value>
<value>{0} {1} already up to date.</value>
</data>
<data name="LvAddress" xml:space="preserve">
<value>Address</value>
Expand Down
4 changes: 2 additions & 2 deletions v2rayN/v2rayN/Resx/ResUI.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@
<value>Исходная конфигурация</value>
</data>
<data name="IsLatestCore" xml:space="preserve">
<value>{0} является последней версией.</value>
<value>{0} {1} является последней версией.</value>
</data>
<data name="IsLatestN" xml:space="preserve">
<value>{0} является последней версией.</value>
<value>{0} {1} является последней версией.</value>
</data>
<data name="LvAddress" xml:space="preserve">
<value>Адрес</value>
Expand Down
4 changes: 2 additions & 2 deletions v2rayN/v2rayN/Resx/ResUI.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@
<value>初始化配置</value>
</data>
<data name="IsLatestCore" xml:space="preserve">
<value>{0} 已是最新版本。</value>
<value>{0} {1} 已是最新版本。</value>
</data>
<data name="IsLatestN" xml:space="preserve">
<value>{0} 已是最新版本。</value>
<value>{0} {1} 已是最新版本。</value>
</data>
<data name="LvAddress" xml:space="preserve">
<value>地址</value>