Skip to content

Commit

Permalink
KEYCLOAK-10784 i18n support for UMA resource pages
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura authored and pedroigor committed Jul 8, 2019
1 parent 0376e72 commit c636b7a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ resourcesSharedWithMe=共有しているリソース
permissionRequestion=パーミッションリクエスト
permission=パーミッション
shares=共有(複数)
notBeingShared=このリソースは共有されていません。
notHaveAnyResource=リソースがありません。
noResourcesSharedWithYou=共有しているリソースはありません
havePermissionRequestsWaitingForApproval=承認待ちの{0}個のパーミッションリクエストがあります。
clickHereForDetails=詳細はこちらをクリックしてください。
resourceIsNotBeingShared=リソースは共有されていません。

locale_ca=Catal\u00e0
locale_de=Deutsch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ resourcesSharedWithMe=Resources shared with me
permissionRequestion=Permission Requestion
permission=Permission
shares=share(s)
notBeingShared=This resource is not being shared.
notHaveAnyResource=You don't have any resource
noResourcesSharedWithYou=There are no resources shared with you
havePermissionRequestsWaitingForApproval=You have {0} permission request(s) waiting for approval.
clickHereForDetails=Click here for details.
resourceIsNotBeingShared=The resource is not being shared

locale_ca=Catal\u00e0
locale_de=Deutsch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<div class="row">
<div class="col-md-10">
<h2>
<a href="${url.resourceUrl}">My Resources</a> <i class="fa fa-angle-right"></i> <#if authorization.resource.displayName??>${authorization.resource.displayName}<#else>${authorization.resource.name}</#if>
<a href="${url.resourceUrl}">${msg("myResources")}</a> <i class="fa fa-angle-right"></i> <#if authorization.resource.displayName??>${authorization.resource.displayName}<#else>${authorization.resource.name}</#if>
</h2>
</div>
</div>
Expand Down Expand Up @@ -157,7 +157,7 @@
</#list>
<#else>
<tr>
<td colspan="4">The resource is not being shared</td>
<td colspan="4">${msg("resourceIsNotBeingShared")}</td>
</tr>
</#if>
</tbody>
Expand Down
13 changes: 5 additions & 8 deletions themes/src/main/resources/theme/base/account/resources.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@
<#if resource.shares?size != 0>
<a href="${url.getResourceDetailUrl(resource.id)}">${resource.shares?size} <i class="fa fa-users"></i></a>
<#else>
This resource is not being shared.
${msg("notBeingShared")}
</#if>
</td>
</tr>
</#list>
<#else>
<tr>
<td colspan="4">You don't have any resource</td>
<td colspan="4">${msg("notHaveAnyResource")}</td>
</tr>
</#if>
</tbody>
Expand Down Expand Up @@ -291,7 +291,7 @@
</#list>
<#else>
<tr>
<td colspan="6">There are no resources shared with you</td>
<td colspan="6">${msg("noResourcesSharedWithYou")}</td>
</tr>
</#if>
</tbody>
Expand All @@ -316,11 +316,8 @@
</div>
<div class="row">
<div class="col-md-12">
<#if authorization.resourcesWaitingOthersApproval?size != 0>
<i class="pficon pficon-info"></i> You have ${authorization.resourcesWaitingOthersApproval?size} permission request(s) <a href="#" onclick="document.getElementById('waitingApproval').style.display=''">waiting</a> for approval.
<#else>
You have no permission requests waiting for approval.
</#if>
<i class="pficon pficon-info"></i> ${msg("havePermissionRequestsWaitingForApproval",authorization.resourcesWaitingOthersApproval?size)}
<a href="#" onclick="document.getElementById('waitingApproval').style.display=''">${msg("clickHereForDetails")}</a>
<div class="row">
<div class="col-md-12"></div>
</div>
Expand Down

0 comments on commit c636b7a

Please sign in to comment.