|
6 | 6 | <ion-badge color="warning" |
7 | 7 | style="position: absolute; right: -5px; top: -10px;" |
8 | 8 | *ngIf="book.recordList && book.recordList.length > 0"> |
9 | | - {{book.recordList.length}}次阅读 |
| 9 | + {{book.recordList.length}} {{'home.bookList.readTimes' | translate}} |
10 | 10 | </ion-badge> |
11 | 11 | <mat-card-title>{{(book.name.length > 24 ? book.name.slice(0,23)+'...' : book.name) | uppercase}}</mat-card-title> |
12 | 12 |
|
|
36 | 36 | <ion-label>{{cate.name}}</ion-label> |
37 | 37 | </mat-chip> |
38 | 38 | <button class="modify-cate-list" (click)="openEditBookCateListDialog(book)" mat-button> |
39 | | - <ion-icon name="cog-outline"></ion-icon>修改 |
| 39 | + <ion-icon name="cog-outline"></ion-icon>{{'home.bookList.modify' | translate}} |
40 | 40 | </button> |
41 | 41 | </mat-chip-list> |
42 | 42 | </mat-card-content> |
|
45 | 45 | <mat-card-actions fxLayout="row" fxLayoutGap="0px"> |
46 | 46 | <button class="action-button" mat-button *ngIf="book.recordList && book.recordList.length > 0" |
47 | 47 | (click)="openReadingRecordDialog(book)"> |
48 | | - <ion-icon name="list-outline"></ion-icon>阅读记录 |
| 48 | + <ion-icon name="list-outline"></ion-icon>{{'home.bookList.readingRecord' | translate}} |
49 | 49 | </button> |
50 | 50 | <button class="action-button" mat-button *ngIf="book.downloaded" (click)="openReadmeDialog(book)"> |
51 | 51 | <ion-icon name="compass-outline"></ion-icon>README |
52 | 52 | </button> |
53 | 53 | <button class="action-button" mat-button *ngIf="book.downloaded" (click)="openBook(book)"> |
54 | | - <ion-icon name="book-outline"></ion-icon>阅读 |
| 54 | + <ion-icon name="book-outline"></ion-icon>{{'home.bookList.read' | translate}} |
55 | 55 | </button> |
56 | 56 | <button class="action-button" id="{{ 'download-book-' + book.id }}" mat-button |
57 | 57 | *ngIf="!book.downloaded" (click)="startDownload(book)"> |
58 | | - <ion-icon name="cloud-download-outline"></ion-icon>下载 |
| 58 | + <ion-icon name="cloud-download-outline"></ion-icon>{{'home.bookList.download' | translate}} |
59 | 59 | </button> |
60 | 60 | <button class="action-button" |
61 | 61 | id="{{ 'delete-book-' + book.id }}" mat-button (click)="openDeleteBookDialog(book)" |
62 | 62 | *ngIf="!book.downloaded || !book.recycled" |
63 | 63 | [disabled]="book.recycled"> |
64 | | - <ion-icon name="close-outline" sizme="small"></ion-icon>删除 |
| 64 | + <ion-icon name="close-outline" sizme="small"></ion-icon>{{'home.bookList.remove' | translate}} |
65 | 65 | </button> |
66 | 66 | <button class="action-button" mat-button *ngIf="book.recycled" (click)="openDeleteBookDialog(book)"> |
67 | | - <ion-icon name="cog-outline" sizme="small"></ion-icon>操作 |
| 67 | + <ion-icon name="cog-outline" sizme="small"></ion-icon>{{'home.bookList.operation' | translate}} |
68 | 68 | </button> |
69 | 69 | </mat-card-actions> |
70 | 70 |
|
71 | 71 | <mat-card-content *ngIf="book.errMsg"> |
72 | | - <ion-text color="danger">{{book.errMsg}} - 无法下载,建议删除</ion-text> |
| 72 | + <ion-text color="danger">{{book.errMsg}}{{'home.bookList.cloneErrorMsg' | translate}}</ion-text> |
73 | 73 | </mat-card-content> |
74 | 74 | </mat-card> |
0 commit comments