Skip to content

Commit b73c087

Browse files
Localization improvements
1 parent 193fda6 commit b73c087

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

angular/src/app/layout/sidebar-user-area.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="btn-group user-helper-dropdown">
99
<i class="material-icons" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">keyboard_arrow_down</i>
1010
<ul class="dropdown-menu pull-right">
11-
<li><a [routerLink]="['/app/update-password']"><i class="material-icons">lock</i>Update Password</a></li>
11+
<li><a [routerLink]="['/app/update-password']"><i class="material-icons">lock</i>{{ 'UpdatePassword' | localize }}</a></li>
1212
<li><a (click)="logout()"><i class="material-icons">input</i>{{ 'Logout' | localize }}</a></li>
1313
</ul>
1414
</div>

angular/src/app/users/change-password/change-password.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h2>{{ "UpdatePassword" | localize }}</h2>
1111
<div class="col-md-6">
1212
<mat-form-field>
1313
<input matInput id="currentPassword" type="password" name="CurrentPassword" formControlName="currentPassword"
14-
[placeholder]="'Current Password' | localize"
14+
[placeholder]="'CurrentPassword' | localize"
1515
required minlength="2" maxlength="32"
1616
/>
1717
</mat-form-field>
@@ -21,11 +21,11 @@ <h2>{{ "UpdatePassword" | localize }}</h2>
2121
<div class="col-md-6" [formGroup]="passwordsFormGroup" formGroupName="passwords">
2222
<mat-form-field>
2323
<input matInput id="newPassword" formControlName="newPassword" type="password" name="NewPassword"
24-
[placeholder]="'New Password' | localize"
24+
[placeholder]="'NewPassword' | localize"
2525
required minlength="2" maxlength="32"
2626
/>
2727
<mat-error *ngIf="passwordsFormGroup.controls.newPassword.errors">
28-
Passwords must be at least 8 characters, contain a lowercase, uppercase, and number
28+
{{ "PasswordsMustBeAtLeast8CharactersContainLowercaseUppercaseNumber" | localize }}
2929
</mat-error>
3030
</mat-form-field>
3131
</div>
@@ -34,14 +34,14 @@ <h2>{{ "UpdatePassword" | localize }}</h2>
3434
<div class="col-md-6" formGroupName="passwords">
3535
<mat-form-field>
3636
<input matInput id="repeatNewPassword" formControlName="repeatNewPassword" type="password" name="RepeatNewPassword"
37-
[placeholder]="'Confirm New Password' | localize" [errorStateMatcher]="equalMatcher"
37+
[placeholder]="'ConfirmNewPassword' | localize" [errorStateMatcher]="equalMatcher"
3838
required minlength="2" maxlength="32"
3939
/>
4040
<mat-error *ngIf="passwordsFormGroup.errors &&
4141
passwordsFormGroup.errors.areEqual &&
4242
passwordsFormGroup.controls.newPassword.touched
4343
">
44-
Passwords do not match
44+
{{ "PasswordsDoNotMatch" | localize }}
4545
</mat-error>
4646
</mat-form-field>
4747
</div>

angular/src/app/users/users.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2>{{ "Users" | localize }}</h2>
9292
</button>
9393
<button mat-menu-item (click)="resetPassword(user)">
9494
<mat-icon>lock</mat-icon>
95-
<span>{{ "Reset Password" | localize }}</span>
95+
<span>{{ "ResetPassword" | localize }}</span>
9696
</button>
9797
</mat-menu>
9898
</td>

aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,10 @@
9595
<text name="Skins">Skins</text>
9696
<text name="Settings">Settings</text>
9797
<text name="Filter">Filter</text>
98+
<text name="CurrentPassword">Current Password</text>
99+
<text name="NewPassword">New Password</text>
100+
<text name="ConfirmNewPassword">Confirm New Password</text>
101+
<text name="PasswordsDoNotMatch">Passwords do not match</text>
102+
<text name="PasswordsMustBeAtLeast8CharactersContainLowercaseUppercaseNumber">Passwords must be at least 8 characters, contain a lowercase, uppercase, and number</text>
98103
</texts>
99104
</localizationDictionary>

0 commit comments

Comments
 (0)