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": "ألف هو القيمة الأعلى"}, "thousandIsTheMAXForTheStrength": {"en": "1000 Is The MAX For The Strength", "ar": "ألف هو القيمة الأعلى"},
"strengthCanNotBeZero": {"en": "Strength Can't Be Zero", "ar": "القوة لا يمكن أن تكون صفر "}, "strengthCanNotBeZero": {"en": "Strength Can't Be Zero", "ar": "القوة لا يمكن أن تكون صفر "},
"old": {"en": "Old", "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, height: 10,
), ),
CustomRow( CustomRow(
label: "Doctor Name :", label: TranslationBase.of(context).doctorName + ': ', //"Doctor Name :",
value: model value: model
.prescriptionListNew[index].doctorName, .prescriptionListNew[index].doctorName,
), ),
CustomRow( CustomRow(
label: "Order Type Description :", label: TranslationBase.of(context).orderTypeDescription + ': ',//"Order Type Description :",
value: model.prescriptionListNew[index] value: model.prescriptionListNew[index]
.orderTypeDescription, .orderTypeDescription,
), ),
CustomRow( CustomRow(
label: "status :", label: TranslationBase.of(context).status + ': ',
value: value:
model.prescriptionListNew[index].status, model.prescriptionListNew[index].status,
), ),
CustomRow( CustomRow(
label: "indication :", label: TranslationBase.of(context).indication + ': ', //"indication :",
value: model value: model
.prescriptionListNew[index].indication, .prescriptionListNew[index].indication,
), ),
CustomRow( CustomRow(
label: "doseDetail :", label: TranslationBase.of(context).doseDetails + ': ', //"doseDetail :",
value: model value: model
.prescriptionListNew[index].doseDetail, .prescriptionListNew[index].doseDetail,
), ),
CustomRow( CustomRow(
label: "quantity :", label: TranslationBase.of(context).quantity + ': ',//"quantity :",
value: model value: model
.prescriptionListNew[index].quantity .prescriptionListNew[index].quantity
.toString(), .toString(),
),CustomRow( ),CustomRow(
label: "start Date :", label: TranslationBase.of(context).startDate + ': ', //"start Date :",
value: model value: model
.prescriptionListNew[index].startDate .prescriptionListNew[index].startDate
.toString(), .toString(),
),CustomRow( ),CustomRow(
label: "stop Date :", label: TranslationBase.of(context).stopDate + ': ',//"stop Date :",
value: model value: model
.prescriptionListNew[index].stopDate .prescriptionListNew[index].stopDate
.toString(), .toString(),
@ -154,7 +154,7 @@ class NewPrescriptionsPage extends StatelessWidget {
.prescriptionListNew[index].remarks != null&& model .prescriptionListNew[index].remarks != null&& model
.prescriptionListNew[index].remarks!= "") .prescriptionListNew[index].remarks!= "")
CustomRow( CustomRow(
label: "Remark :", label: TranslationBase.of(context).remarks + ': ',//"Remark :",
value: model value: model
.prescriptionListNew[index].remarks .prescriptionListNew[index].remarks
.toString(), .toString(),

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

@ -1709,8 +1709,14 @@ class TranslationBase {
String get thousandIsTheMAXForTheStrength => localizedValues['thousandIsTheMAXForTheStrength'][locale.languageCode]; String get thousandIsTheMAXForTheStrength => localizedValues['thousandIsTheMAXForTheStrength'][locale.languageCode];
String get strengthCanNotBeZero => localizedValues['strengthCanNotBeZero'][locale.languageCode]; String get strengthCanNotBeZero => localizedValues['strengthCanNotBeZero'][locale.languageCode];
String get old => localizedValues['old'][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> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

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

Loading…
Cancel
Save