Browse Source

update english resource.

master
Savorboard 7 years ago
parent
commit
4373b41bea
5 changed files with 51 additions and 6 deletions
  1. +27
    -0
      src/DotNetCore.CAP/Dashboard/Content/resx/Strings.Designer.cs
  2. +9
    -0
      src/DotNetCore.CAP/Dashboard/Content/resx/Strings.resx
  3. +9
    -0
      src/DotNetCore.CAP/Dashboard/Content/resx/Strings.zh.resx
  4. +1
    -1
      src/DotNetCore.CAP/Dashboard/HtmlHelper.cs
  5. +5
    -5
      src/DotNetCore.CAP/Dashboard/Pages/NodePage.cshtml

+ 27
- 0
src/DotNetCore.CAP/Dashboard/Content/resx/Strings.Designer.cs View File

@@ -699,6 +699,33 @@ namespace DotNetCore.CAP.Dashboard.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to IP Address.
/// </summary>
public static string NodePage_Table_IP {
get {
return ResourceManager.GetString("NodePage_Table_IP", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Node Name.
/// </summary>
public static string NodePage_Table_NodeName {
get {
return ResourceManager.GetString("NodePage_Table_NodeName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Port.
/// </summary>
public static string NodePage_Table_Port {
get {
return ResourceManager.GetString("NodePage_Table_Port", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Nodes.
/// </summary>


+ 9
- 0
src/DotNetCore.CAP/Dashboard/Content/resx/Strings.resx View File

@@ -390,4 +390,13 @@
<data name="MessagesPage_Table_State" xml:space="preserve">
<value>State</value>
</data>
<data name="NodePage_Table_IP" xml:space="preserve">
<value>IP Address</value>
</data>
<data name="NodePage_Table_NodeName" xml:space="preserve">
<value>Node Name</value>
</data>
<data name="NodePage_Table_Port" xml:space="preserve">
<value>Port</value>
</data>
</root>

+ 9
- 0
src/DotNetCore.CAP/Dashboard/Content/resx/Strings.zh.resx View File

@@ -414,4 +414,13 @@
<data name="MessagesPage_Table_State" xml:space="preserve">
<value>状态</value>
</data>
<data name="NodePage_Table_IP" xml:space="preserve">
<value>IP 地址</value>
</data>
<data name="NodePage_Table_NodeName" xml:space="preserve">
<value>节点名称</value>
</data>
<data name="NodePage_Table_Port" xml:space="preserve">
<value>端口号</value>
</data>
</root>

+ 1
- 1
src/DotNetCore.CAP/Dashboard/HtmlHelper.cs View File

@@ -170,7 +170,7 @@ namespace DotNetCore.CAP.Dashboard
public NonEscapedString NodeSwitchLink(string id)
{
return Raw(
$"<a class=\"job-method\" onclick=\"nodeSwitch({id});\" href=\"javascript:;\">{Strings.NodePage_Switch}</a>");
$"<a onclick=\"nodeSwitch({id});\" href=\"javascript:;\">{Strings.NodePage_Switch}</a>");
}

public NonEscapedString StackTrace(string stackTrace)


+ 5
- 5
src/DotNetCore.CAP/Dashboard/Pages/NodePage.cshtml View File

@@ -21,12 +21,12 @@
<table class="table">
<thead>
<tr>
<th width="10%">编号</th>
<th width="20%">节点名称</th>
<th width="20%">IP地址</th>
<th width="7%">端口号</th>
<th width="10%">@Strings.Common_Id</th>
<th width="20%">@Strings.NodePage_Table_NodeName</th>
<th width="20%">@Strings.NodePage_Table_IP</th>
<th width="7%">@Strings.NodePage_Table_Port</th>
<th>Tags</th>
<th width="20%">操作</th>
<th width="20%">@Strings.NodePage_Switch</th>
</tr>
</thead>
<tbody>


Loading…
Cancel
Save