[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 316/459: add more i18n
From: |
gnunet |
Subject: |
[reclaim-ui] 316/459: add more i18n |
Date: |
Fri, 11 Jun 2021 23:26:48 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.
commit 93cf8d7fc8e83b6c3306041757a69bb1bdc9ac40
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Wed Sep 30 13:47:55 2020 +0200
add more i18n
---
.../edit-credentials.component.html | 1 -
src/app/edit-identity/edit-identity.component.html | 42 +++++++++++-----------
src/app/identity-list/identity-list.component.html | 28 +++++++--------
src/app/new-identity/new-identity.component.html | 12 +++----
4 files changed, 41 insertions(+), 42 deletions(-)
diff --git a/src/app/edit-credentials/edit-credentials.component.html
b/src/app/edit-credentials/edit-credentials.component.html
index 8807a6c..960b675 100644
--- a/src/app/edit-credentials/edit-credentials.component.html
+++ b/src/app/edit-credentials/edit-credentials.component.html
@@ -73,7 +73,6 @@
<th i18n>Name</th>
<th i18n>Type</th>
<th i18n>Expires</th>
- <!--<th>Issuer</th>-->
<th i18n>Issuer</th>
</tr>
</thead>
diff --git a/src/app/edit-identity/edit-identity.component.html
b/src/app/edit-identity/edit-identity.component.html
index 3445684..e6605d9 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -12,8 +12,8 @@
<!-- Attribute table -->
<div class="card-body">
<div>
- <h3 class="card-subtitle mb-2">Basic user information <span
(click)="showGeneralInfo = !showGeneralInfo" class="fa
fa-question-circle"></span></h3>
- <div class="alert alert-secondary fade show" *ngIf="showGeneralInfo">
+ <h3 class="card-subtitle mb-2" i18n>Basic user information <span
(click)="showGeneralInfo = !showGeneralInfo" class="fa
fa-question-circle"></span></h3>
+ <div class="alert alert-secondary fade show" *ngIf="showGeneralInfo"
i18n>
The attributes below correspond to the standard scopes of the OpenID
Connect
specification: ``profile'', ``email'', ``phone'' and ``address''.
</div>
@@ -30,7 +30,7 @@
</div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -71,7 +71,7 @@
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -114,7 +114,7 @@
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -156,7 +156,7 @@
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -175,14 +175,14 @@
<div class="col-sm"><div style="min-width: 15em">
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
- <select *ngIf="isExperimental()" class="custom-select"
(change)="claim.flag=$event.target.value; ">
+ <select *ngIf="isExperimental()" class="custom-select"
(change)="claim.flag=$event.target.value; " i18n>
<option value="0">Plain</option>
<option value="1">Credential</option>
</select>
<input *ngIf="claim.flag == '0'" placeholder="Value"
[(ngModel)]="claim.value">
<select *ngIf="claim.flag == '1'" class="custom-select"
- (change)="claim.credential=$event.target.value; ">
+ (change)="claim.credential=$event.target.value; " i18n>
<option value="">Select credential source</option>
<option *ngFor="let cred of credentials" value={{cred.id}}>
{{cred.name}}
@@ -190,7 +190,7 @@
</select>
<select class="custom-select"
- *ngIf="(claim.credential !== '') && (claim.flag == '1')"
(change)="claim.value=$event.target.value">
+ *ngIf="(claim.credential !== '') && (claim.flag == '1')"
(change)="claim.value=$event.target.value" i18n>
<option value="">Select claim</option>
<option *ngFor="let att of credentialValuesForClaim(claim)"
value={{att.name}}>
{{att.value}} <i>({{att.name}})</i>
@@ -207,8 +207,8 @@
</div>
- <h3 class="card-subtitle mb-2">Additional information <span
(click)="showExtraInfo = !showExtraInfo" class="fa
fa-question-circle"></span></h3>
- <div class="alert alert-secondary fade show" *ngIf="showExtraInfo">
+ <h3 class="card-subtitle mb-2" i18n>Additional information <span
(click)="showExtraInfo = !showExtraInfo" class="fa
fa-question-circle"></span></h3>
+ <div class="alert alert-secondary fade show" *ngIf="showExtraInfo" i18n>
Non-standard claims which are not explicitly covered in the OpenID
Connect core specification.
</div>
@@ -222,14 +222,14 @@
<i *ngIf="isClaimRequested(missing)" class="fa
fa-openid"></i><b> {{missing.name}}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCredentialRequested(missing)"
placeholder="Value" [(ngModel)]="missing.value">
- <select *ngIf="isClaimCredentialRequested(missing)"
class="custom-select" (change)="missing.credential=$event.target.value; ">
+ <select *ngIf="isClaimCredentialRequested(missing)"
class="custom-select" (change)="missing.credential=$event.target.value; " i18n>
<option value="">Select credential source</option>
<option *ngFor="let cred of credentials" value={{cred.id}}>
{{cred.name}}
</option>
</select>
- <select *ngIf="isClaimCredentialRequested(missing) &&
missing.credential !== ''" class="custom-select"
(change)="missing.value=$event.target.value">
+ <select *ngIf="isClaimCredentialRequested(missing) &&
missing.credential !== ''" class="custom-select"
(change)="missing.value=$event.target.value" i18n>
<option value="">Select claim</option>
<option *ngFor="let claim of credentialValuesForCred(missing)"
value={{claim.name}}>
{{claim.value}} <i>({{claim.name}})</i>
@@ -253,7 +253,7 @@
</div>
<div class="col-sm">
<input *ngIf="!isClaimCred(attribute)" placeholder="Value"
[(ngModel)]="attribute.value">
- <span *ngIf="isClaimCred(attribute)" >{{ getCredValue(attribute)
}} issued by <i>{{ getIssuer(attribute) }}</i> as attribute for ``{{
attribute.value }}''</span>
+ <span *ngIf="isClaimCred(attribute)" i18n>{{
getCredValue(attribute) }} issued by <i>{{ getIssuer(attribute) }}</i> as
attribute for ``{{ attribute.value }}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary"
(click)="deleteAttribute(attribute)" *ngIf="!isClaimCred(attribute)">
@@ -271,13 +271,13 @@
</div>
<div class="col-sm">
- <select *ngIf="isExperimental()" class="custom-select"
(change)="newAttribute.flag=$event.target.value; ">
+ <select *ngIf="isExperimental()" class="custom-select"
(change)="newAttribute.flag=$event.target.value; " i18n>
<option value="0">Plain</option>
<option value="1">Credential</option>
</select>
<input *ngIf="newAttribute.flag == '0'" placeholder="Value"
[class.text-danger]="!attributeValueValid(newAttribute)"
[(ngModel)]="newAttribute.value">
<select *ngIf="newAttribute.flag == '1'" class="custom-select"
- (change)="newAttribute.credential=$event.target.value; ">
+ (change)="newAttribute.credential=$event.target.value; " i18n>
<option value="">Select credential source</option>
<option *ngFor="let cred of credentials" value={{cred.id}}>
{{cred.name}}
@@ -286,7 +286,7 @@
<select class="custom-select"
*ngIf="newAttribute.credential !== '' && newAttribute.flag ==
'1'" (change)="newAttribute.value=$event.target.value">
- <option value="">Select claim</option>
+ <option value="" i18n>Select claim</option>
<option *ngFor="let claim of
credentialValuesForClaim(newAttribute)" value={{claim.name}}>
{{claim.value}} <i>({{claim.name}})</i>
</option>
@@ -301,7 +301,7 @@
</div>
</div>
<!-- Attribute creation warning -->
- <div *ngIf="!attributeNameValid(newAttribute) ||
!attributeValueValid(newAttribute)" class="alert alert-primary
alert-dismissible fade show" role="alert">
+ <div *ngIf="!attributeNameValid(newAttribute) ||
!attributeValueValid(newAttribute)" class="alert alert-primary
alert-dismissible fade show" role="alert" i18n>
<span class="fa fa-warning"></span> Note:
<ul>
<li>Only use alphanumeric attribute names.</li>
@@ -314,14 +314,14 @@
<!-- Edit card buttons -->
<div>
- <button class="btn btn-primary" (click)="saveIdentity()"
[disabled]="!canSaveIdentity()">
+ <button class="btn btn-primary" (click)="saveIdentity()"
[disabled]="!canSaveIdentity()" i18n>
<span class="fa fa-save"></span> Save and Back
</button>
- <button *ngIf="!inOpenIdFlow()" class="btn btn-primary"
[routerLink]="['/edit-authorizations', identity.name]" [style.float]="'right'">
+ <button *ngIf="!inOpenIdFlow()" class="btn btn-primary"
[routerLink]="['/edit-authorizations', identity.name]" [style.float]="'right'"
i18n>
<span class="fa fa-openid"></span>
Manage authorizations
</button>
- <button *ngIf="!inOpenIdFlow() && isExperimental()" class="btn
btn-primary" [routerLink]="['/edit-credentials', identity.name]"
[style.float]="'right'">
+ <button *ngIf="!inOpenIdFlow() && isExperimental()" class="btn
btn-primary" [routerLink]="['/edit-credentials', identity.name]"
[style.float]="'right'" i18n>
<span class="fa fa-openid"></span>
Manage credentials
</button>
diff --git a/src/app/identity-list/identity-list.component.html
b/src/app/identity-list/identity-list.component.html
index c4f2e49..6df1a46 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -2,7 +2,7 @@
<oid-modal id="GnunetInfo">
<div class="logo"><img src="assets/reclaim_icon.png"/></div>
<hr>
- <div style="text-align: center; font-size: 18px;">
+ <div style="text-align: center; font-size: 18px;" i18n>
<strong> Unable to connect to GNUnet. <br/> Maybe it is not running?
</strong>
</div>
</oid-modal>
@@ -15,7 +15,7 @@
<div class="search-wrapper">
<input class="form-control mr-sm-2" type="search" [(ngModel)]="searchTerm"
name="searchTerm" placeholder="Search identities" style="border-radius: 2em;">
</div>
- <button class="btn btn-primary" [routerLink]="['/new-identity']">
+ <button class="btn btn-primary" [routerLink]="['/new-identity']" i18n>
<span class="fa fa-user-plus"></span> New identity
</button>
</div>
@@ -24,13 +24,13 @@
<!-- Cancel authorization -->
<div style="margin-bottom: 1em; text-align: center;" *ngIf="inOpenIdFlow()">
- <button *ngIf="inOpenIdFlow()" class="btn btn-danger mt-2"
(click)="cancelRequest()">
+ <button *ngIf="inOpenIdFlow()" class="btn btn-danger mt-2"
(click)="cancelRequest()" i18n>
<span class="fa fa-ban"></span> Decline authorization request
</button>
</div>
<!-- error infos -->
-<div *ngFor="let err of errorInfos" class="alert alert-danger show"
role="alert">
+<div *ngFor="let err of errorInfos" class="alert alert-danger show"
role="alert" i18n>
<b>ERROR</b>
<button class="btn btn-primary ml-4"
(click)="errorInfos.splice(errorInfos.indexOf(err,0), 1)">
<span>Dismiss</span>
@@ -40,7 +40,7 @@
</div>
<!-- No identities present -->
-<div *ngIf="isConnected() && 0 == identities.length" style="text-align:
center;" class="alert alert-secondary alert-dismissible fade show" role="alert">
+<div *ngIf="isConnected() && 0 == identities.length" style="text-align:
center;" class="alert alert-secondary alert-dismissible fade show" role="alert"
i18n>
You don't have any identities yet.<br/><br/>
<button class="btn btn-primary" [routerLink]="['/new-identity']">
<span class="fa fa-plus"></span> Add your first identity!
@@ -50,7 +50,7 @@
<!-- Identity cards -->
<!-- No match -->
<div *ngIf="canSearch()">
- <div *ngIf="(identities | search: searchTerm).length == 0"
style="text-align: center;" class="alert alert-secondary alert-dismissible fade
show" role="alert">No matching identities.</div>
+ <div *ngIf="(identities | search: searchTerm).length == 0"
style="text-align: center;" class="alert alert-secondary alert-dismissible fade
show" role="alert" i18n>No matching identities.</div>
</div>
<!-- Cards -->
<div class="card-columns p-2 mr-5 ml-5" [ngStyle]="{'column-count': '1'}"
style="display: flex; flex-direction:column; align-items:center">
@@ -78,14 +78,14 @@
</button>
</div>
<!-- Maybe add some info to identities? - dialog -->
- <div class="alert alert-secondary fade show"
[hidden]="hasAttributes(identity)">
+ <div class="alert alert-secondary fade show"
[hidden]="hasAttributes(identity)" i18n>
This identity has no attributes. Maybe try <a class="buttonlink"
[routerLink]="['/edit-identity', identity.name]">adding some?</a>
</div>
<div [hidden]="!isAnyRequestedClaimMissing(identity)"
class="alert alert-warning alert-dismissible fade show"
[class.alert-warning]="!isAnyRequiredClaimMissing(identity)"
[class.alert-danger]="isAnyRequiredClaimMissing(identity)"
- role="alert">
+ role="alert" i18n>
<span class="fa fa-openid"></span> This identity is missing some
requested information:
<ul>
<li *ngIf="isProfileRequested() && isProfileMissing(identity)"><b>{{
getProfileDescription() }}</b></li>
@@ -119,14 +119,14 @@
<div *ngIf="getAttributeValue(identity, attribute).length > 20"
style="min-width: 15em">{{getAttributeValue(identity, attribute).substring(0,
20)}}<span style="color:#eee">[...]</span></div>
</div>
</div>
- <div *ngIf="(openIdentity != identity) &&
hasLotsOfAttributes(identity)" class="ml-4">
+ <div *ngIf="(openIdentity != identity) &&
hasLotsOfAttributes(identity)" class="ml-4" i18n>
<div>
<i>... and {{ attributes[identity.pubkey].length - 5 }} more
attributes</i><br/>
</div>
</div>
</div>
</div>
- <button class="btn btn-primary mt-3" (click)="openIdentity = identity"
*ngIf="(openIdentity != identity) && hasLotsOfAttributes(identity)">
+ <button class="btn btn-primary mt-3" (click)="openIdentity = identity"
*ngIf="(openIdentity != identity) && hasLotsOfAttributes(identity)" i18n>
<i class="fa fa-expand"></i>
Show all attributes
</button>
@@ -136,8 +136,8 @@
<button [disabled]="!isClientVerified() ||
isAnyRequiredClaimMissing(identity)"
(click)="loginIdentity(identity)"
class="btn btn-primary mr-1 openid-login">
- <span *ngIf="isClientVerified()">Share information marked with <i
class="fa fa-openid text-primary"></i> from this identity.</span>
- <span *ngIf="!isClientVerified()"><i class="fa
fa-exclamation-circle"></i> Sharing disabled</span>
+ <span *ngIf="isClientVerified()" i18n>Share information marked with <i
class="fa fa-openid text-primary"></i> from this identity.</span>
+ <span *ngIf="!isClientVerified()" i18n><i class="fa
fa-exclamation-circle"></i> Sharing disabled</span>
</button>
</div>
</div>
@@ -148,11 +148,11 @@
<div class="card-avatar-character text-dark">
<!--<div class="icon m-1 text-uppercase"
[style.background-color]="intToRGB(identity.pubkey)">{{
identity.name[0]}}</div>-->
<i class="fa fa-user-circle"></i>
- <span class="m-1" style="display: inline-block"><i> New
Identity</i></span>
+ <span class="m-1" style="display: inline-block" i18n><i> New
Identity</i></span>
</div>
</div>
<div class="card-body">
- <div style="text-align:center" class="mb-4">
+ <div style="text-align:center" class="mb-4" i18n>
<i>Click to add a new identity.</i>
</div>
<div style="text-align:center">
diff --git a/src/app/new-identity/new-identity.component.html
b/src/app/new-identity/new-identity.component.html
index 83a8805..f369a34 100644
--- a/src/app/new-identity/new-identity.component.html
+++ b/src/app/new-identity/new-identity.component.html
@@ -2,30 +2,30 @@
<div style="display: flex; flex-direction:column; align-items:center">
<div class="m-2 card" style="text-align:center; width:100%; max-width:
50em;">
<div class="card-avatar card-img-top">
- <div class="card-avatar-character text-dark">
+ <div class="card-avatar-character text-dark" i18n>
New identity
</div>
</div>
<!-- Invalid input -->
- <div *ngIf="'' !== newIdentity.name && !canSave() && !isDuplicate()"
class="alert alert-danger alert-dismissible fade show" role="alert">
+ <div *ngIf="'' !== newIdentity.name && !canSave() && !isDuplicate()"
class="alert alert-danger alert-dismissible fade show" role="alert" i18n>
Only Alphanumeric input. No spaces or special characters allowed.
</div>
<!--Identity already exists -->
- <div *ngIf="isDuplicate()" class="alert alert-warning alert-dismissible
fade show" role="alert">
+ <div *ngIf="isDuplicate()" class="alert alert-warning alert-dismissible
fade show" role="alert" i18n>
An identity with this username already exists.
</div>
<!-- Input text -->
- <div *ngIf="'' === newIdentity.name || canSave()" class="alert
alert-secondary alert-dismissible fade show" role="alert">
+ <div *ngIf="'' === newIdentity.name || canSave()" class="alert
alert-secondary alert-dismissible fade show" role="alert" i18n>
Enter a username for your new identity
</div>
<div class="card-body">
<input [class.text-danger]="'' !== newIdentity.name && !canSave()"
style="text-align: center; border: 1px solid #111;"
(keyup.enter)="saveIdentity()" pattern="^[a-zA-Z0-9-]+" placeholder="Username"
title="Only Alphanumeric input. No spaces or special characters allowed."
class="mr-2" [(ngModel)]="newIdentity.name" autofocus>
<br/>
<br/>
- <button [disabled]="!canSave()" [style.inactive]="!canSave()" class="-1
btn btn-primary" (click)="saveIdentity()">
+ <button [disabled]="!canSave()" [style.inactive]="!canSave()" class="-1
btn btn-primary" (click)="saveIdentity()" i18n>
<span class="fa fa-save"></span> Save
</button>
- <button class="m-1 btn btn-danger" (click)="cancelAddIdentity()">
+ <button class="m-1 btn btn-danger" (click)="cancelAddIdentity()" i18n>
<span class="fa fa-close"></span> Cancel
</button>
</div>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 327/459: new localesService, (continued)
- [reclaim-ui] 327/459: new localesService, gnunet, 2021/06/11
- [reclaim-ui] 303/459: fix booleans and function calls, gnunet, 2021/06/11
- [reclaim-ui] 304/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 309/459: fix button hover text, gnunet, 2021/06/11
- [reclaim-ui] 310/459: fix margins, checkboxes, gnunet, 2021/06/11
- [reclaim-ui] 336/459: Translated using Weblate (English), gnunet, 2021/06/11
- [reclaim-ui] 334/459: update, gnunet, 2021/06/11
- [reclaim-ui] 340/459: Translated using Weblate (English), gnunet, 2021/06/11
- [reclaim-ui] 337/459: update en, gnunet, 2021/06/11
- [reclaim-ui] 326/459: fix compilation, gnunet, 2021/06/11
- [reclaim-ui] 316/459: add more i18n,
gnunet <=
- [reclaim-ui] 345/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 313/459: open redirect removed, gnunet, 2021/06/11
- [reclaim-ui] 346/459: id token is credential, gnunet, 2021/06/11
- [reclaim-ui] 353/459: periodic running test, gnunet, 2021/06/11
- [reclaim-ui] 347/459: Merge branch 'master' of gitlab.com:reclaimid/ui, gnunet, 2021/06/11
- [reclaim-ui] 329/459: towards better i18n, gnunet, 2021/06/11
- [reclaim-ui] 359/459: prettify button, gnunet, 2021/06/11
- [reclaim-ui] 343/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 352/459: update, gnunet, 2021/06/11
- [reclaim-ui] 315/459: add localize package, gnunet, 2021/06/11