diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index 253ffc67..b36deb6d 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -1129,4 +1129,7 @@ const Map> localizedValues = { "VTE_Type": {"en": "VTE Type", "ar": "VTE Type"}, "pharmacology": {"en": "Pharmacology", "ar": "علم العقاقير"}, "reasonsThrombo": {"en": "Reasons Thrombo", "ar": "أسباب ثرومبو"}, + "addedSuccessfully": {"en": " Added Successfully", "ar": "اضيف بنجاح"}, + "updatedSuccessfully": {"en": " Updated Successfully", "ar": "تم التحديث بنجاح"}, + "youCantAddSpaceOnly": {"en": "You cant add only spaces", "ar": "لا يمكنك إضافة مسافات فقط"}, }; diff --git a/lib/screens/patients/profile/notes/note/update_note.dart b/lib/screens/patients/profile/notes/note/update_note.dart index 401f6d74..d6f33014 100644 --- a/lib/screens/patients/profile/notes/note/update_note.dart +++ b/lib/screens/patients/profile/notes/note/update_note.dart @@ -261,10 +261,16 @@ class _UpdateNoteOrderState extends State { } GifLoaderDialogUtils.hideDialog(context); DrAppToastMsg.showSuccesToast( - "Your Order added Successfully"); + "${widget.visitType == 3? + TranslationBase.of(context).orderSheet+ (widget.isUpdate + ? TranslationBase.of(context).updatedSuccessfully + : TranslationBase.of(context).addedSuccessfully) + : TranslationBase.of(context).progressNote + (widget.isUpdate + ? TranslationBase.of(context).updatedSuccessfully + : TranslationBase.of(context).addedSuccessfully) }"); Navigator.of(context).pop(); } else { - Helpers.showErrorToast("You cant add only spaces"); + Helpers.showErrorToast(TranslationBase.of(context).youCantAddSpaceOnly); } })), ], diff --git a/lib/util/translations_delegate_base.dart b/lib/util/translations_delegate_base.dart index d58139b3..bcc72e6c 100644 --- a/lib/util/translations_delegate_base.dart +++ b/lib/util/translations_delegate_base.dart @@ -1755,6 +1755,9 @@ class TranslationBase { String get VTE_Type => localizedValues['VTE_Type'][locale.languageCode]; String get pharmacology => localizedValues['pharmacology'][locale.languageCode]; String get reasonsThrombo => localizedValues['reasonsThrombo'][locale.languageCode]; + String get addedSuccessfully => localizedValues['addedSuccessfully'][locale.languageCode]; + String get updatedSuccessfully => localizedValues['updatedSuccessfully'][locale.languageCode]; + String get youCantAddSpaceOnly => localizedValues['youCantAddSpaceOnly'][locale.languageCode]; } class TranslationBaseDelegate extends LocalizationsDelegate {