Add missing Jobs localization strings
This commit is contained in:
parent
87ba77fdba
commit
e0087c1dbb
@ -28,7 +28,7 @@ else
|
|||||||
</Header>
|
</Header>
|
||||||
<Row>
|
<Row>
|
||||||
<td><ActionLink Action="Edit" Parameters="@($"id=" + context.JobId.ToString())" ResourceKey="EditJob" /></td>
|
<td><ActionLink Action="Edit" Parameters="@($"id=" + context.JobId.ToString())" ResourceKey="EditJob" /></td>
|
||||||
<td><ActionDialog Header="Delete Job" Message="@("Are You Sure You Wish To Delete This Job?")" Action="Delete" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await DeleteJob(context))" ResourceKey="DeleteJob" /></td>
|
<td><ActionDialog Header="Delete Job" Message="Are You Sure You Wish To Delete This Job?" Action="Delete" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await DeleteJob(context))" ResourceKey="DeleteJob" /></td>
|
||||||
<td><ActionLink Action="Log" Class="btn btn-secondary" Parameters="@($"id=" + context.JobId.ToString())" ResourceKey="JobLog" /></td>
|
<td><ActionLink Action="Log" Class="btn btn-secondary" Parameters="@($"id=" + context.JobId.ToString())" ResourceKey="JobLog" /></td>
|
||||||
<td>@context.Name</td>
|
<td>@context.Name</td>
|
||||||
<td>@DisplayStatus(context.IsEnabled, context.IsExecuting)</td>
|
<td>@DisplayStatus(context.IsEnabled, context.IsExecuting)</td>
|
||||||
@ -63,17 +63,17 @@ else
|
|||||||
var status = string.Empty;
|
var status = string.Empty;
|
||||||
if (!isEnabled)
|
if (!isEnabled)
|
||||||
{
|
{
|
||||||
status = "Disabled";
|
status = Localizer["Disabled"];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (isExecuting)
|
if (isExecuting)
|
||||||
{
|
{
|
||||||
status = "Executing";
|
status = Localizer["Executing"];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
status = "Idle";
|
status = Localizer["Idle"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,26 +83,26 @@ else
|
|||||||
|
|
||||||
private string DisplayFrequency(int interval, string frequency)
|
private string DisplayFrequency(int interval, string frequency)
|
||||||
{
|
{
|
||||||
var result = "Every " + interval.ToString() + " ";
|
var result = $"{Localizer["Every"]} {interval.ToString()} ";
|
||||||
switch (frequency)
|
switch (frequency)
|
||||||
{
|
{
|
||||||
case "m":
|
case "m":
|
||||||
result += "Minute";
|
result += Localizer["Minute"];
|
||||||
break;
|
break;
|
||||||
case "H":
|
case "H":
|
||||||
result += "Hour";
|
result += Localizer["Hour"];
|
||||||
break;
|
break;
|
||||||
case "d":
|
case "d":
|
||||||
result += "Day";
|
result += Localizer["Day"];
|
||||||
break;
|
break;
|
||||||
case "M":
|
case "M":
|
||||||
result += "Month";
|
result += Localizer["Month"];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (interval > 1)
|
if (interval > 1)
|
||||||
{
|
{
|
||||||
result += "s";
|
result += Localizer["s"];
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -50,17 +50,17 @@ else
|
|||||||
var status = string.Empty;
|
var status = string.Empty;
|
||||||
if (isExecuting)
|
if (isExecuting)
|
||||||
{
|
{
|
||||||
status = "Executing";
|
status = Localizer["Executing"];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (succeeded != null && succeeded.Value)
|
if (succeeded != null && succeeded.Value)
|
||||||
{
|
{
|
||||||
status = "Succeeded";
|
status = Localizer["Succeeded"];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
status = "Failed";
|
status = Localizer["Failed"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user