From 4c09e7a42d740824a8b3bb0ee55be1bb3835e42b Mon Sep 17 00:00:00 2001 From: "Vicente J. Ruiz Jurado" Date: Sat, 4 Aug 2018 17:49:36 +0200 Subject: [PATCH] New delete message --- lib/fireNotificationList.dart | 2 +- lib/generated/i18n.dart | 3 +++ res/values/strings_en.arb | 1 + res/values/strings_es.arb | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/fireNotificationList.dart b/lib/fireNotificationList.dart index 3d81208..a7c275e 100644 --- a/lib/fireNotificationList.dart +++ b/lib/fireNotificationList.dart @@ -151,7 +151,7 @@ class _FireNotificationListState extends State { onDelete: (notif) { store.dispatch(new DeleteFireNotificationAction(notif)); _scaffoldKey.currentState.showSnackBar(new SnackBar( - content: new Text(S.of(context).youDeletedThisPlace), + content: new Text(S.of(context).youDeletedThisNotification), action: new SnackBarAction( label: S.of(context).UNDO, onPressed: () { diff --git a/lib/generated/i18n.dart b/lib/generated/i18n.dart index 5c83d9a..18c1d3e 100644 --- a/lib/generated/i18n.dart +++ b/lib/generated/i18n.dart @@ -80,6 +80,7 @@ class S implements WidgetsLocalizations { String get typeTheNameOfAPlace => "Type the name of a place, region, etc"; String get unsubscribe => "Unsubscribe"; String get warningThisIsAVeryLargeArea => "Warning: this is a very large area"; + String get youDeletedThisNotification => "You deleted this notification"; String get youDeletedThisPlace => "You deleted this place"; String activeFiresWorldWide(String activeFires) => "$activeFires active fires worldwide"; String appLicense(String thisYear) => "(c) 2017-$thisYear Comunes Association under the GNU Affero GPL v3"; @@ -142,6 +143,8 @@ class es extends S { @override String get supportThisInitiative => "Apoya esta iniciativa"; @override + String get youDeletedThisNotification => "Has borrado esta alerta"; + @override String get toFiresNotifications => "Suscríbete a alertas de fuegos"; @override String get notPermsUbication => "No tenemos permisos para conocer tu ubicación"; diff --git a/res/values/strings_en.arb b/res/values/strings_en.arb index 77dcc67..ee9cbde 100644 --- a/res/values/strings_en.arb +++ b/res/values/strings_en.arb @@ -8,6 +8,7 @@ "firesInTheWorld": "Active fires in the world", "firesInYourPlaces": "Active fires in your places", "youDeletedThisPlace": "You deleted this place", + "youDeletedThisNotification": "You deleted this notification", "UNDO": "UNDO", "toDeleteThisPlace": "Slide horizontally to delete this place", "toDeleteThisNotification": "Slide horizontally to delete this notification", diff --git a/res/values/strings_es.arb b/res/values/strings_es.arb index 1aca567..5872b8b 100644 --- a/res/values/strings_es.arb +++ b/res/values/strings_es.arb @@ -8,6 +8,7 @@ "firesInTheWorld": "Fuegos en el mundo", "firesInYourPlaces": "Fuegos en tus lugares", "youDeletedThisPlace": "Has borrado este lugar", + "youDeletedThisNotification": "Has borrado esta alerta", "UNDO": "DESHACER", "toDeleteThisPlace": "Desliza horizontalmente para borrar este lugar", "toDeleteThisNotification": "Desliza horizontalmente para borrar esta notificación",