提交 c9089e4c 编写于 作者: J Jason Song 提交者: kezhenxu94

minor fix i18n translations (#2675)

上级 73cf7fef
...@@ -164,7 +164,7 @@ public class ItemController { ...@@ -164,7 +164,7 @@ public class ItemController {
if (permissionValidator if (permissionValidator
.shouldHideConfigToCurrentUser(namespace.getAppId(), namespace.getEnv().name(), namespace.getNamespaceName())) { .shouldHideConfigToCurrentUser(namespace.getAppId(), namespace.getEnv().name(), namespace.getNamespaceName())) {
diff.setDiffs(new ItemChangeSets()); diff.setDiffs(new ItemChangeSets());
diff.setExtInfo("您不是该项目的管理员,也没有该Namespace在 " + namespace.getEnv() + " 环境的编辑或发布权限"); diff.setExtInfo("You are not this project's administrator, nor you have edit or release permission for the namespace in environment: " + namespace.getEnv());
} }
} }
...@@ -195,7 +195,7 @@ public class ItemController { ...@@ -195,7 +195,7 @@ public class ItemController {
return ResponseEntity.status(HttpStatus.OK).build(); return ResponseEntity.status(HttpStatus.OK).build();
} }
else else
throw new AccessDeniedException(String.format("您没有修改环境%s的权限", envNoPermission)); throw new AccessDeniedException(String.format("You don't have the permission to modify environment: %s", envNoPermission));
} }
@PreAuthorize(value = "@permissionValidator.hasModifyNamespacePermission(#appId, #namespaceName, #env)") @PreAuthorize(value = "@permissionValidator.hasModifyNamespacePermission(#appId, #namespaceName, #env)")
......
...@@ -149,8 +149,7 @@ ...@@ -149,8 +149,7 @@
ng-show="clusterDiff.diffs.createItems.length + clusterDiff.diffs.updateItems.length == 0 || clusterDiff.extInfo"> ng-show="clusterDiff.diffs.createItems.length + clusterDiff.diffs.updateItems.length == 0 || clusterDiff.extInfo">
<span <span
ng-show="clusterDiff.diffs.createItems.length + clusterDiff.diffs.updateItems.length == 0 && !clusterDiff.extInfo">{{'Config.Sync.NoNeedSyncItem' | translate }}</span> ng-show="clusterDiff.diffs.createItems.length + clusterDiff.diffs.updateItems.length == 0 && !clusterDiff.extInfo">{{'Config.Sync.NoNeedSyncItem' | translate }}</span>
<span ng-show="clusterDiff.extInfo" ng-bind="clusterDiff.extInfo"></span> <span ng-show="clusterDiff.extInfo" ng-bind="clusterDiff.extInfo"></span>, {{'Config.Sync.IgnoreSync' | translate }}
,{{'Config.Sync.IgnoreSync' | translate }}
</div> </div>
<div class="row" style="margin-top: 10px;" <div class="row" style="margin-top: 10px;"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册