[i18n] Optimize translation labels for Roles page (#26945) (#27029)

* [i18n] Optimize translation labels

* Usage of ng-if instead of ng-show
This commit is contained in:
Maryia Lapata 2018-12-12 17:09:34 +03:00 committed by GitHub
parent a228bf6947
commit 9d0d7894e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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