Merge branch 'roaa_schedule_design' into 'development'

add translation

See merge request Cloud_Solution/doctor_app_flutter!969
merge-requests/970/merge
Elham Ali 4 years ago
commit 4505ef9d02

@ -1136,4 +1136,6 @@ const Map<String, Map<String, String>> localizedValues = {
"thousandIsTheMAXForTheStrength": {"en": "1000 Is The MAX For The Strength", "ar": "ألف هو القيمة الأعلى"},
"strengthCanNotBeZero": {"en": "Strength Can't Be Zero", "ar": "القوة لا يمكن أن تكون صفر "},
"old": {"en": "Old", "ar":"القديمه"},
"orderTypeDescription": {"en": "Order Type Description", "ar":"وصف نوع الطلب"},
"doseDetails": {"en": "Dose Details", "ar":"تفاصيل الجرعة"},
};

@ -110,42 +110,42 @@ class NewPrescriptionsPage extends StatelessWidget {
height: 10,
),
CustomRow(
label: "Doctor Name :",
label: TranslationBase.of(context).doctorName + ': ', //"Doctor Name :",
value: model
.prescriptionListNew[index].doctorName,
),
CustomRow(
label: "Order Type Description :",
label: TranslationBase.of(context).orderTypeDescription + ': ',//"Order Type Description :",
value: model.prescriptionListNew[index]
.orderTypeDescription,
),
CustomRow(
label: "status :",
label: TranslationBase.of(context).status + ': ',
value:
model.prescriptionListNew[index].status,
),
CustomRow(
label: "indication :",
label: TranslationBase.of(context).indication + ': ', //"indication :",
value: model
.prescriptionListNew[index].indication,
),
CustomRow(
label: "doseDetail :",
label: TranslationBase.of(context).doseDetails + ': ', //"doseDetail :",
value: model
.prescriptionListNew[index].doseDetail,
),
CustomRow(
label: "quantity :",
label: TranslationBase.of(context).quantity + ': ',//"quantity :",
value: model
.prescriptionListNew[index].quantity
.toString(),
),CustomRow(
label: "start Date :",
label: TranslationBase.of(context).startDate + ': ', //"start Date :",
value: model
.prescriptionListNew[index].startDate
.toString(),
),CustomRow(
label: "stop Date :",
label: TranslationBase.of(context).stopDate + ': ',//"stop Date :",
value: model
.prescriptionListNew[index].stopDate
.toString(),
@ -154,7 +154,7 @@ class NewPrescriptionsPage extends StatelessWidget {
.prescriptionListNew[index].remarks != null&& model
.prescriptionListNew[index].remarks!= "")
CustomRow(
label: "Remark :",
label: TranslationBase.of(context).remarks + ': ',//"Remark :",
value: model
.prescriptionListNew[index].remarks
.toString(),

@ -12,7 +12,7 @@ class PrescriptionItemsWidget extends StatelessWidget {
final String itemDescription;
final String route;
final String frequency;
final int dailyDoses;
final dynamic dailyDoses;
final String imageSRCUrl;
final String remarks;
final int days;

@ -1709,8 +1709,14 @@ class TranslationBase {
String get thousandIsTheMAXForTheStrength => localizedValues['thousandIsTheMAXForTheStrength'][locale.languageCode];
String get strengthCanNotBeZero => localizedValues['strengthCanNotBeZero'][locale.languageCode];
String get old => localizedValues['old'][locale.languageCode];
String get orderTypeDescription => localizedValues['orderTypeDescription'][locale.languageCode];
String get doseDetails => localizedValues['doseDetails'][locale.languageCode];
}
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

@ -770,6 +770,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
meta:
dependency: transitive
description:
@ -1173,7 +1180,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.4.8"
timing:
dependency: transitive
description:

Loading…
Cancel
Save