english words changed to arabic

development
Sikander Saleem 5 years ago
parent 04e8377c89
commit 6e120920c9

@ -68,15 +68,15 @@ class _ChangePasswordDialogState extends State<ChangePasswordDialog> {
child: TextButton(
onPressed: () {
if (_passwordController.text.length < 1) {
Utils.showToast("Password is empty.");
Utils.showToast("كلمة المرور فارغة");
return;
}
if (_confirmPasswordController.text.length < 1) {
Utils.showToast("Confirm password is empty.");
Utils.showToast("تأكيد كلمة المرور فارغ");
return;
}
if (_passwordController.text != _confirmPasswordController.text) {
Utils.showToast("Password incorrect");
Utils.showToast("كلمة المرور خاطئة");
return;
}
widget.onPassword(_passwordController.text);

@ -93,7 +93,7 @@ class _OTPDialogState extends State<OTPDialog> {
child: TextButton(
onPressed: () {
if (otpMessage.length < 4) {
Utils.showToast("Invalid OTP");
Utils.showToast("OTP غير صحيح");
return;
}
widget.onOTP(int.parse(otpMessage));

@ -37,7 +37,7 @@ class _ForgotPasswordScreenState extends State<ForgotPasswordScreen> {
Utils.showLoading(context);
try {
_generalResponse = await UserApiClient().forgotPassword(email);
Utils.showToast("OTP sent");
Utils.showToast("تم إرسال OTP");
} catch (ex, tr) {
Utils.handleException(ex, null);
Utils.hideLoading(context);
@ -75,7 +75,7 @@ class _ForgotPasswordScreenState extends State<ForgotPasswordScreen> {
Utils.hideLoading(context);
}
Navigator.pop(context);
Utils.showToast("Password changed successfully.");
Utils.showToast("تم تغيير الرقم السري بنجاح");
Navigator.pop(context);
}
@ -124,10 +124,10 @@ class _ForgotPasswordScreenState extends State<ForgotPasswordScreen> {
child: TextButton(
onPressed: () {
if (_emailController.text.length < 1) {
Utils.showToast("Email is empty.");
Utils.showToast("البريد الإلكتروني فارغ");
return;
} else if (!_emailController.text.isValidEmail()) {
Utils.showToast("Invalid email.");
Utils.showToast("بريد إلكتروني خاطئ");
return;
}
forgotPassword(_emailController.text);

@ -41,7 +41,7 @@ class _LoginScreenState extends State<LoginScreen> {
Utils.showLoading(context);
try {
_authenticationUser = await AuthenticationApiClient().authenticateUser(_email, _password);
Utils.showToast("Login successfully");
Utils.showToast("تسجيل الدخول بنجاح");
} catch (ex, tr) {
Utils.handleException(ex, null);
} finally {
@ -92,14 +92,14 @@ class _LoginScreenState extends State<LoginScreen> {
child: TextButton(
onPressed: () {
if (_emailController.text.length < 1) {
Utils.showToast("Email is empty.");
Utils.showToast("البريد الإلكتروني فارغ");
return;
} else if (!_emailController.text.isValidEmail()) {
Utils.showToast("Invalid email.");
Utils.showToast("بريد إلكتروني خاطئ");
return;
}
if (_passwordController.text.length < 1) {
Utils.showToast("Password is empty.");
Utils.showToast("كلمة المرور فارغة");
return;
}
performLogin(_emailController.text, _passwordController.text);

@ -58,7 +58,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
Utils.showLoading(context);
try {
await UserApiClient().registerUser(_firstName, _lastName, _email, _password, _countryCode, _phone);
Utils.showToast("Register successfully");
Utils.showToast("تسجيل بنجاح");
Utils.hideLoading(context);
Navigator.pop(context);
} catch (ex, tr) {
@ -169,46 +169,46 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
child: TextButton(
onPressed: () {
if (_firstNameController.text.length < 1) {
Utils.showToast("Username is empty.");
Utils.showToast("اسم المستخدم فارغ");
return;
}
if (_lastNameController.text.length < 1) {
Utils.showToast("Name is empty.");
Utils.showToast("الاسم فارغ");
return;
}
if (_emailController.text.length < 1) {
Utils.showToast("Email is empty.");
Utils.showToast("البريد الإلكتروني فارغ");
return;
}
if (_selectedCountry?.countryCode == null) {
Utils.showToast("you must select country.");
Utils.showToast("يجب عليك اختيار الدولة");
return;
}
if (_mobileNumberController.text.length < 1) {
Utils.showToast("Phone number is empty.");
Utils.showToast("رقم الهاتف فارغ");
return;
}
if (_passwordController.text.length < 1) {
Utils.showToast("Password is empty.");
Utils.showToast("كلمة المرور فارغة");
return;
}
if (_confirmPasswordController.text.length < 1) {
Utils.showToast("Enter same password to confirm");
Utils.showToast("أدخل كلمة المرور نفسها للتأكيد");
return;
}
if (!_emailController.text.isValidEmail()) {
Utils.showToast("Invalid email.");
Utils.showToast("بريد إلكتروني خاطئ");
return;
}
if (_passwordController.text != _confirmPasswordController.text) {
Utils.showToast("Your passwords are incorrect.");
Utils.showToast("كلمات السر الخاصة بك غير صحيحة");
return;
}
if (!_isAccept) {
Utils.showToast("You must accept statement to proceed.");
Utils.showToast("يجب عليك قبول البيان للمتابعة");
return;
}
registerUser(

@ -139,12 +139,12 @@ class _AyaPlayerWidgetState extends State<AyaPlayerWidget> {
commonIconButton("assets/icons/download_aya.svg", () async {
if (await _requestPermission()) {
if (await _saveAya()) {
Utils.showToast("Aya saved successfully");
Utils.showToast("آية تم الحفظ بنجاح");
} else {
Utils.showToast("Failed to save aya");
Utils.showToast("فشل في حفظ الآية");
}
} else {
Utils.showToast("you must granted permission to download aya.");
Utils.showToast("يجب أن تمنح الإذن لتنزيل الآية");
}
}),
commonIconButton("assets/icons/share_aya.svg", () {
@ -179,7 +179,7 @@ class _AyaPlayerWidgetState extends State<AyaPlayerWidget> {
state
? _player.pause()
: _isAudioHaveError
? Utils.showToast("Audio file is not loaded")
? Utils.showToast("لم يتم تحميل ملف الصوت")
: _player.play();
});
},

Loading…
Cancel
Save