mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
Add translation keys for upload info section (#319)
This commit is contained in:
parent
2b5cef156c
commit
f5e93a8179
@ -94,5 +94,10 @@
|
|||||||
"version_announcement_overlay_text_2": "Bitte nehm dir die Zeit und lese das ",
|
"version_announcement_overlay_text_2": "Bitte nehm dir die Zeit und lese das ",
|
||||||
"version_announcement_overlay_release_notes": "Änderungsprotokoll",
|
"version_announcement_overlay_release_notes": "Änderungsprotokoll",
|
||||||
"version_announcement_overlay_text_3": " und achte darauf, dass deine docker-compose und .env Dateien aktuell sind, vor allem wenn du ein System für automatische Updates benutzt (z.B. Watchtower).",
|
"version_announcement_overlay_text_3": " und achte darauf, dass deine docker-compose und .env Dateien aktuell sind, vor allem wenn du ein System für automatische Updates benutzt (z.B. Watchtower).",
|
||||||
"version_announcement_overlay_ack": "Ich habe verstanden"
|
"version_announcement_overlay_ack": "Ich habe verstanden",
|
||||||
|
"backup_controller_page_uploading_file_info": "Informationen",
|
||||||
|
"backup_controller_page_failed": "Fehlgeschlagen ({})",
|
||||||
|
"backup_controller_page_filename": "Dateiname: {} [{}]",
|
||||||
|
"backup_controller_page_created": "Erstellt: {}",
|
||||||
|
"backup_controller_page_id": "ID: {}"
|
||||||
}
|
}
|
||||||
|
@ -94,5 +94,10 @@
|
|||||||
"version_announcement_overlay_text_2": "please take your time to visit the ",
|
"version_announcement_overlay_text_2": "please take your time to visit the ",
|
||||||
"version_announcement_overlay_release_notes": "release notes",
|
"version_announcement_overlay_release_notes": "release notes",
|
||||||
"version_announcement_overlay_text_3": " and ensure your docker-compose and .env setup is up-to-date to prevent any misconfigurations, especially if you use WatchTower or any mechanism that handles updating your server application automatically.",
|
"version_announcement_overlay_text_3": " and ensure your docker-compose and .env setup is up-to-date to prevent any misconfigurations, especially if you use WatchTower or any mechanism that handles updating your server application automatically.",
|
||||||
"version_announcement_overlay_ack": "Acknowledge"
|
"version_announcement_overlay_ack": "Acknowledge",
|
||||||
|
"backup_controller_page_uploading_file_info": "Uploading file info",
|
||||||
|
"backup_controller_page_failed": "Failed ({})",
|
||||||
|
"backup_controller_page_filename": "File name: {} [{}]",
|
||||||
|
"backup_controller_page_created": "Created on: {}",
|
||||||
|
"backup_controller_page_id": "ID: {}"
|
||||||
}
|
}
|
||||||
|
@ -265,9 +265,9 @@ class BackupControllerPage extends HookConsumerWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
"Uploading file info",
|
"backup_controller_page_uploading_file_info",
|
||||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
|
||||||
),
|
).tr(),
|
||||||
if (ref.watch(errorBackupListProvider).isNotEmpty)
|
if (ref.watch(errorBackupListProvider).isNotEmpty)
|
||||||
ActionChip(
|
ActionChip(
|
||||||
avatar: Icon(
|
avatar: Icon(
|
||||||
@ -278,13 +278,15 @@ class BackupControllerPage extends HookConsumerWidget {
|
|||||||
elevation: 1,
|
elevation: 1,
|
||||||
visualDensity: VisualDensity.compact,
|
visualDensity: VisualDensity.compact,
|
||||||
label: Text(
|
label: Text(
|
||||||
"Failed (${ref.watch(errorBackupListProvider).length})",
|
"backup_controller_page_failed",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.red[400],
|
color: Colors.red[400],
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
),
|
),
|
||||||
),
|
).tr(args: [
|
||||||
|
ref.watch(errorBackupListProvider).length.toString()
|
||||||
|
]),
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
AutoRouter.of(context).push(const FailedBackupStatusRoute());
|
AutoRouter.of(context).push(const FailedBackupStatusRoute());
|
||||||
@ -326,11 +328,15 @@ class BackupControllerPage extends HookConsumerWidget {
|
|||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(6.0),
|
padding: const EdgeInsets.all(6.0),
|
||||||
child: Text(
|
child: const Text(
|
||||||
'File name: ${backupState.currentUploadAsset.fileName} [${backupState.currentUploadAsset.fileType.toLowerCase()}]',
|
'backup_controller_page_filename',
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold, fontSize: 10.0),
|
fontWeight: FontWeight.bold, fontSize: 10.0),
|
||||||
),
|
).tr(args: [
|
||||||
|
backupState.currentUploadAsset.fileName,
|
||||||
|
backupState.currentUploadAsset.fileType
|
||||||
|
.toLowerCase()
|
||||||
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -344,16 +350,18 @@ class BackupControllerPage extends HookConsumerWidget {
|
|||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(6.0),
|
padding: const EdgeInsets.all(6.0),
|
||||||
child: Text(
|
child: const Text(
|
||||||
"Created on: ${DateFormat.yMMMMd('en_US').format(
|
"backup_controller_page_created",
|
||||||
|
style: const TextStyle(
|
||||||
|
fontWeight: FontWeight.bold, fontSize: 10.0),
|
||||||
|
).tr(args: [
|
||||||
|
DateFormat.yMMMMd('en_US').format(
|
||||||
DateTime.parse(
|
DateTime.parse(
|
||||||
backupState.currentUploadAsset.createdAt
|
backupState.currentUploadAsset.createdAt
|
||||||
.toString(),
|
.toString(),
|
||||||
),
|
),
|
||||||
)}",
|
)
|
||||||
style: const TextStyle(
|
]),
|
||||||
fontWeight: FontWeight.bold, fontSize: 10.0),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -366,13 +374,13 @@ class BackupControllerPage extends HookConsumerWidget {
|
|||||||
TableCell(
|
TableCell(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(6.0),
|
padding: const EdgeInsets.all(6.0),
|
||||||
child: Text(
|
child: const Text(
|
||||||
"ID: ${backupState.currentUploadAsset.id}",
|
"backup_controller_page_id",
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 10.0,
|
fontSize: 10.0,
|
||||||
),
|
),
|
||||||
),
|
).tr(args: [backupState.currentUploadAsset.id]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user