diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index e96574ef..234903ba 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -2541,7 +2541,27 @@ const Map> localizedValues = { }, "roomNo":{ "en":"Room No", - "ar":"رقم الغرفة" + "ar":"رقم الغرفة" + }, + "replayCallStatus":{ + "en":"Called", + "ar":"تم الاتصال" + }, + "patientArrived":{ + "en":"Patient Arrived", + "ar":"تم الاتصال" + }, + "calledAndNoResponse":{ + "en":"Called And No Response", + "ar":"تم الاتصال" + }, + "underProcess":{ + "en":"Under Process", + "ar":"تم الاتصال" + }, + "textResponse":{ + "en":"Text Response", + "ar":"تم الاتصال" } }; diff --git a/lib/util/translations_delegate_base.dart b/lib/util/translations_delegate_base.dart index ef776eef..ab07724e 100644 --- a/lib/util/translations_delegate_base.dart +++ b/lib/util/translations_delegate_base.dart @@ -1373,6 +1373,11 @@ class TranslationBase { String get textCopiedSuccessfully => localizedValues['textCopiedSuccessfully'][locale.languageCode]; String get roomNo => localizedValues['roomNo'][locale.languageCode]; String get seeMore => localizedValues['seeMore'][locale.languageCode]; + String get replayCallStatus => localizedValues['replayCallStatus'][locale.languageCode]; + String get patientArrived => localizedValues['patientArrived'][locale.languageCode]; + String get calledAndNoResponse => localizedValues['calledAndNoResponse'][locale.languageCode]; + String get underProcess => localizedValues['underProcess'][locale.languageCode]; + String get textResponse => localizedValues['textResponse'][locale.languageCode]; } class TranslationBaseDelegate extends LocalizationsDelegate { diff --git a/lib/widgets/doctor/doctor_reply_widget.dart b/lib/widgets/doctor/doctor_reply_widget.dart index f39994d2..b86df45a 100644 --- a/lib/widgets/doctor/doctor_reply_widget.dart +++ b/lib/widgets/doctor/doctor_reply_widget.dart @@ -51,7 +51,7 @@ class _DoctorReplyWidgetState extends State { color: Colors.black), children: [ new TextSpan( - text: widget.reply.infoDesc,//widget.reply.status==2 ? "Active":widget.reply.status==1?"Hold":"Cancelled",//TranslationBase.of(context).replied :TranslationBase.of(context).unReplied , + text: widget.reply.infoStatus ==1? TranslationBase.of(context).replayCallStatus:widget.reply.infoStatus ==2? TranslationBase.of(context).patientArrived:widget.reply.infoStatus ==3? TranslationBase.of(context).calledAndNoResponse:widget.reply.infoStatus ==4? TranslationBase.of(context).underProcess:widget.reply.infoStatus ==6? TranslationBase.of(context).textResponse:'' ,//widget.reply.status==2 ? "Active":widget.reply.status==1?"Hold":"Cancelled",//TranslationBase.of(context).replied :TranslationBase.of(context).unReplied , style: TextStyle( color: widget.reply.infoStatus == 4 ? IN_PROGRESS_COLOR