diff --git a/app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/CustomAlertDialog.java b/app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/CustomAlertDialog.java index 1da0e693..87f71ebc 100644 --- a/app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/CustomAlertDialog.java +++ b/app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/CustomAlertDialog.java @@ -39,31 +39,31 @@ public class CustomAlertDialog extends android.support.v4.app.DialogFragment { switch (alertType) { case ALERT: imgStatusImgView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.alert)); - dialogTitleTxt.setText("Important"); + dialogTitleTxt.setText(getString(R.string.important_text)); break; case FAILED: imgStatusImgView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.error)); - dialogTitleTxt.setText("Error"); + dialogTitleTxt.setText(getString( R.string.error_text)); break; case BAD_REQUEST: imgStatusImgView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.server_errror)); - dialogTitleTxt.setText("Operation Failed"); + dialogTitleTxt.setText(getString(R.string.operation_failed_text)); break; case NO_INTERNET: imgStatusImgView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.no_internet)); - dialogTitleTxt.setText("Connection Failed"); + dialogTitleTxt.setText(getString(R.string.connection_failed_text)); break; case SUCCESS: imgStatusImgView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.correct)); - dialogTitleTxt.setText("Success"); + dialogTitleTxt.setText(getString(R.string.success_text)); break; default: imgStatusImgView.setImageDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.error)); - dialogTitleTxt.setText("Error"); + dialogTitleTxt.setText(getString( R.string.error_text)); break; } dialogButtonTxt.setOnClickListener(new View.OnClickListener() { diff --git a/app/src/main/res/layout/dialog_common_error.xml b/app/src/main/res/layout/dialog_common_error.xml index a4967db4..8ff96847 100644 --- a/app/src/main/res/layout/dialog_common_error.xml +++ b/app/src/main/res/layout/dialog_common_error.xml @@ -47,7 +47,7 @@ android:layout_marginBottom="17dp" android:layout_marginTop="14dp" android:gravity="center" - android:text="Ok" + android:text="@string/ok_text" android:textColor="@color/cs_red" android:textSize="20sp" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f002c6de..66a03dab 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -329,6 +329,10 @@ Personal Security Upload + Important + Error + Operation Failed + Connection Failed