Localization comment

merge-requests/98/head
Amjad Amireh 5 years ago
parent 1935b781d6
commit 0ed3481b42

@ -19,6 +19,20 @@ const Map<String, Map<String, String>> localizedValues = {
'maxResponseTime':{'en': 'Max Response Time', 'ar' : 'الوقت الأقصى للرد'},
'clinicDetailsandRemarks':{'en': 'Clinic Details and Remarks', 'ar' : 'ملاحضات وتفاصيل العيادة'},
'answerSuggestions':{'en': 'Answer/Suggestions', 'ar' : 'ملاحضات وتفاصيل العيادة'},
'outPatients':{'en': 'Out-Patients', 'ar' : 'ةالمريض الخارجي'},
'searchPatient':{'en': 'Search Patient', 'ar' : 'البحث عن مريض'},
'labResult':{'en': 'Lab Result', 'ar' : 'نتيجة المختبر'},
'todayStatistics':{'en': 'Today Statistics', 'ar' : 'إحصائيات اليوم'},
'arrived':{'en': 'Arrived', 'ar' : 'وصل'},
'er':{'en': 'ER', 'ar' : 'حالة طوارئ'},
'walkIn':{'en': 'Walk-in', 'ar' : 'ادخل'},
'notArrived':{'en': 'Not Arrived', 'ar' : 'لم يصل'},
'radiology':{'en': 'Radiology', 'ar' : 'الأشعة'},
'referral':{'en': 'Referral', 'ar' : 'االإحالة'},
'inPatient':{'en': 'In-Patient', 'ar' : 'االمريض الداخلي'},
'operations':{'en': 'Operations', 'ar' : 'عمليات'},
'patientServices':{'en': 'Patient Services', 'ar' : 'خدمات المرضى'},
};

@ -50,7 +50,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Container(
margin: EdgeInsets.all(10),
child: AppText(
"Today's Statistics",
TranslationBase.of(context).todayStatistics,
fontWeight: FontWeight.bold,
),
alignment: Alignment.centerLeft,
@ -76,7 +77,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
AppText("38",
fontWeight: FontWeight.bold,
fontSize: SizeConfig.textMultiplier * 4),
AppText("Out-Patients",
AppText(TranslationBase.of(context).outPatients,
fontWeight: FontWeight.normal,
fontSize: SizeConfig.textMultiplier * 1.2,
color: Colors.grey[800]),
@ -103,12 +104,12 @@ class _DashboardScreenState extends State<DashboardScreen> {
children: <Widget>[
Expanded(
child: DashboardItemTexts(
"Arrived",
TranslationBase.of(context).arrived,
"23",
)),
Expanded(
child: DashboardItemTexts(
"Not Arrived",
TranslationBase.of(context).notArrived,
"23",
),
),
@ -122,12 +123,13 @@ class _DashboardScreenState extends State<DashboardScreen> {
children: <Widget>[
Expanded(
child: DashboardItemTexts(
"ER",
TranslationBase.of(context).er,
"23",
)),
Expanded(
child: DashboardItemTexts(
"Walk-in",
TranslationBase.of(context).walkIn,
"23",
)),
],
@ -148,7 +150,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText(
DoctorApp.home_icon,
"08",
"Lab Result",
TranslationBase.of(context).labResult,
backgroundColor: Colors.black45,
// valueFontColor: Colors.white,
// titleFontColor: Colors.white,
@ -160,7 +162,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText(
DoctorApp.home_icon,
"10",
"Radiology",
TranslationBase.of(context).radiology,
backgroundColor: Colors.black45,
// valueFontColor: Colors.white,
// titleFontColor: Colors.white,
@ -171,7 +174,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText(
DoctorApp.home_icon,
"05",
"Referral",
TranslationBase.of(context).referral,
backgroundColor: Colors.black45,
// valueFontColor: Colors.white,
// titleFontColor: Colors.white,
@ -190,7 +193,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText(
DoctorApp.home_icon,
"23",
"In-Patient",
TranslationBase.of(context).inPatient,
showBorder: true,
backgroundColor: Colors.red[900],
),
@ -200,7 +203,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: new DashboardItemIconText(
DoctorApp.home_icon,
"23",
"Operations",
TranslationBase.of(context).operations,
showBorder: true,
backgroundColor: Colors.red[900],
)),
@ -212,7 +215,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: Container(
margin: EdgeInsets.all(10),
child: AppText(
"Patient Services",
TranslationBase.of(context).patientServices,
fontWeight: FontWeight.bold,
),
alignment: Alignment.centerLeft,
@ -229,7 +232,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: DashboardItemIconText(
DoctorApp.home_icon,
"",
"Search Patient",
TranslationBase.of(context).searchPatient,
showBorder: true,
backgroundColor: Colors.white,
valueFontColor: Colors.black,
@ -259,7 +262,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: DashboardItemIconText(
DoctorApp.home_icon,
"",
"Doctor Reply",
TranslationBase.of(context).doctorReply,
showBorder: true,
backgroundColor: Colors.white,
valueFontColor: Colors.black,

@ -48,7 +48,19 @@ class TranslationBase {
String get maxResponseTime => localizedValues['maxResponseTime'][locale.languageCode];
String get clinicDetailsandRemarks=> localizedValues['clinicDetailsandRemarks'][locale.languageCode];
String get answerSuggestions => localizedValues['answerSuggestions'][locale.languageCode];
String get outPatients => localizedValues['outPatients'][locale.languageCode];
String get searchPatient => localizedValues['searchPatient'][locale.languageCode];
String get labResult => localizedValues['labResult'][locale.languageCode];
String get todayStatistics => localizedValues['todayStatistics'][locale.languageCode];
String get arrived => localizedValues['arrived'][locale.languageCode];
String get er => localizedValues['er'][locale.languageCode];
String get walkIn => localizedValues['walkIn'][locale.languageCode];
String get notArrived => localizedValues['notArrived'][locale.languageCode];
String get radiology => localizedValues['radiology'][locale.languageCode];
String get referral => localizedValues['referral'][locale.languageCode];
String get inPatient => localizedValues['inPatient'][locale.languageCode];
String get operations => localizedValues['inPatient'][locale.languageCode];
String get patientServices => localizedValues['patientServices'][locale.languageCode];
}

Loading…
Cancel
Save