Skip to content

Commit

Permalink
[i18n] Optimize translation labels for Roles page (elastic#26945)
Browse files Browse the repository at this point in the history
* [i18n] Optimize translation labels

* Usage of ng-if instead of ng-show
  • Loading branch information
maryia-lapata committed Dec 12, 2018
1 parent a87f486 commit 633ae2e
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions x-pack/plugins/security/public/views/management/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,19 @@
</div>

<!-- NoResults -->
<div class="kuiPanel kuiPanel--centered" ng-show="!(roles | filter:query).length">
<div class="kuiPanel kuiPanel--centered" ng-if="!(roles | filter:query).length">
<div
class="kuiNoItems"
>
<span
i18n-id="xpack.security.management.roles.noFoundMatchingRolesDescription1"
i18n-default-message="No "
i18n-context="Part of composite label xpack.security.management.roles.noFoundMatchingRolesDescription1 + {matchingText} + xpack.security.management.roles.noFoundMatchingRolesDescription2"
ng-if="query"
i18n-id="xpack.security.management.roles.noMatchingResultsLabel"
i18n-default-message="No matching roles found"
></span>
<span
ng-show="query"
i18n-id="xpack.security.management.roles.matchingText"
i18n-default-message="matching"
></span>
<span
i18n-id="xpack.security.management.roles.noFoundMatchingRolesDescription2"
i18n-default-message=" roles found"
ng-if="!query"
i18n-id="xpack.security.management.roles.noResultsLabel"
i18n-default-message="No roles found"
></span>
</div>
</div>
Expand Down

0 comments on commit 633ae2e

Please sign in to comment.