Browse Source

Another i18n fix.

pull/556/head
Sebastian 5 years ago
parent
commit
a05041cdec
  1. 6
      backend/i18n/backend_en.json
  2. 4
      backend/src/Squidex.Domain.Apps.Entities/Apps/Guards/GuardAppWorkflows.cs
  3. 18
      backend/src/Squidex.Shared/Texts.resx

6
backend/i18n/backend_en.json

@ -2,6 +2,9 @@
"annotations_AbsoluteUrl": "The field {name|lower} must be an absolute URL.", "annotations_AbsoluteUrl": "The field {name|lower} must be an absolute URL.",
"annotations_Compare": "The field {name|lower} must be the same as {other|lower}.", "annotations_Compare": "The field {name|lower} must be the same as {other|lower}.",
"annotations_Required": "The field {name|lower} is required.", "annotations_Required": "The field {name|lower} is required.",
"aspnet_annotations_AbsoluteUrl": "The field {0} must be an absolute URL.",
"aspnet_annotations_Compare": "The field {0} must be the same as {other|lower}.",
"aspnet_annotations_Required": "The field {0} is required.",
"apps.alreadyArchieved": "App has already been archived.", "apps.alreadyArchieved": "App has already been archived.",
"apps.clients.idAlreadyExists": "A client with the same id already exists.", "apps.clients.idAlreadyExists": "A client with the same id already exists.",
"apps.contributors.cannotChangeYourself": "You cannot change your own role.", "apps.contributors.cannotChangeYourself": "You cannot change your own role.",
@ -315,7 +318,8 @@
"validation.slug": "{property|upper} is not a valid slug.", "validation.slug": "{property|upper} is not a valid slug.",
"validation.valid": "{property|upper} is not a valid value.", "validation.valid": "{property|upper} is not a valid value.",
"validation.notAnImage": "Picture is not a valid image.", "validation.notAnImage": "Picture is not a valid image.",
"workflows.initialNotPublished": "Initial step cannot be published step.", "workflows.publishedIsInitial": "Initial step cannot be published step.",
"workflows.publishedNotDefined": "Workflow must have a published step.",
"workflows.overlap": "Multiple workflows cover all schemas.", "workflows.overlap": "Multiple workflows cover all schemas.",
"workflows.schemaOverlap": "The schema '{schema}' is covered by multiple workflows." "workflows.schemaOverlap": "The schema '{schema}' is covered by multiple workflows."
} }

4
backend/src/Squidex.Domain.Apps.Entities/Apps/Guards/GuardAppWorkflows.cs

@ -52,14 +52,14 @@ namespace Squidex.Domain.Apps.Entities.Apps.Guards
if (workflow.Initial == Status.Published) if (workflow.Initial == Status.Published)
{ {
e(T.Get("workflows.initialNotPublished"), $"{nameof(command.Workflow)}.{nameof(workflow.Initial)}"); e(T.Get("workflows.publishedIsInitial"), $"{nameof(command.Workflow)}.{nameof(workflow.Initial)}");
} }
var stepsPrefix = $"{nameof(command.Workflow)}.{nameof(workflow.Steps)}"; var stepsPrefix = $"{nameof(command.Workflow)}.{nameof(workflow.Steps)}";
if (!workflow.Steps.ContainsKey(Status.Published)) if (!workflow.Steps.ContainsKey(Status.Published))
{ {
e(T.Get("workflows.initialNotPublished"), stepsPrefix); e(T.Get("workflows.publishedNotDefined"), stepsPrefix);
} }
foreach (var step in workflow.Steps) foreach (var step in workflow.Steps)

18
backend/src/Squidex.Shared/Texts.resx

@ -130,6 +130,15 @@
<data name="apps.roles.usedRoleByContributorsNotRemovable" xml:space="preserve"> <data name="apps.roles.usedRoleByContributorsNotRemovable" xml:space="preserve">
<value>Cannot remove a role when a contributor is assigned.</value> <value>Cannot remove a role when a contributor is assigned.</value>
</data> </data>
<data name="aspnet_annotations_AbsoluteUrl" xml:space="preserve">
<value>The field {0} must be an absolute URL.</value>
</data>
<data name="aspnet_annotations_Compare" xml:space="preserve">
<value>The field {0} must be the same as {other|lower}.</value>
</data>
<data name="aspnet_annotations_Required" xml:space="preserve">
<value>The field {0} is required.</value>
</data>
<data name="assets.assetAlreadyDeleted" xml:space="preserve"> <data name="assets.assetAlreadyDeleted" xml:space="preserve">
<value>Asset has already been deleted</value> <value>Asset has already been deleted</value>
</data> </data>
@ -1003,12 +1012,15 @@
<data name="validation.valid" xml:space="preserve"> <data name="validation.valid" xml:space="preserve">
<value>{property|upper} is not a valid value.</value> <value>{property|upper} is not a valid value.</value>
</data> </data>
<data name="workflows.initialNotPublished" xml:space="preserve">
<value>Initial step cannot be published step.</value>
</data>
<data name="workflows.overlap" xml:space="preserve"> <data name="workflows.overlap" xml:space="preserve">
<value>Multiple workflows cover all schemas.</value> <value>Multiple workflows cover all schemas.</value>
</data> </data>
<data name="workflows.publishedIsInitial" xml:space="preserve">
<value>Initial step cannot be published step.</value>
</data>
<data name="workflows.publishedNotDefined" xml:space="preserve">
<value>Workflow must have a published step.</value>
</data>
<data name="workflows.publishedStepNotFound" xml:space="preserve"> <data name="workflows.publishedStepNotFound" xml:space="preserve">
<value>Transition has an invalid target.</value> <value>Transition has an invalid target.</value>
</data> </data>

Loading…
Cancel
Save