From 6e120920c9e679e880d49be98be4ac59c1e688eb Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 4 Apr 2021 09:46:56 +0300 Subject: [PATCH] english words changed to arabic --- lib/ui/dialogs/change_password_dialog.dart | 6 +++--- lib/ui/dialogs/otp_dialog.dart | 2 +- lib/ui/screens/forgot_password_screen.dart | 8 ++++---- lib/ui/screens/login_screen.dart | 8 ++++---- lib/ui/screens/registration_screen.dart | 22 +++++++++++----------- lib/widgets/aya_player_widget.dart | 8 ++++---- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/ui/dialogs/change_password_dialog.dart b/lib/ui/dialogs/change_password_dialog.dart index 588b845..4304b51 100644 --- a/lib/ui/dialogs/change_password_dialog.dart +++ b/lib/ui/dialogs/change_password_dialog.dart @@ -68,15 +68,15 @@ class _ChangePasswordDialogState extends State { 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); diff --git a/lib/ui/dialogs/otp_dialog.dart b/lib/ui/dialogs/otp_dialog.dart index 8a20344..89c2247 100644 --- a/lib/ui/dialogs/otp_dialog.dart +++ b/lib/ui/dialogs/otp_dialog.dart @@ -93,7 +93,7 @@ class _OTPDialogState extends State { child: TextButton( onPressed: () { if (otpMessage.length < 4) { - Utils.showToast("Invalid OTP"); + Utils.showToast("OTP غير صحيح"); return; } widget.onOTP(int.parse(otpMessage)); diff --git a/lib/ui/screens/forgot_password_screen.dart b/lib/ui/screens/forgot_password_screen.dart index 2052cea..a370e62 100644 --- a/lib/ui/screens/forgot_password_screen.dart +++ b/lib/ui/screens/forgot_password_screen.dart @@ -37,7 +37,7 @@ class _ForgotPasswordScreenState extends State { 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 { Utils.hideLoading(context); } Navigator.pop(context); - Utils.showToast("Password changed successfully."); + Utils.showToast("تم تغيير الرقم السري بنجاح"); Navigator.pop(context); } @@ -124,10 +124,10 @@ class _ForgotPasswordScreenState extends State { 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); diff --git a/lib/ui/screens/login_screen.dart b/lib/ui/screens/login_screen.dart index 45da454..33f5a42 100644 --- a/lib/ui/screens/login_screen.dart +++ b/lib/ui/screens/login_screen.dart @@ -41,7 +41,7 @@ class _LoginScreenState extends State { 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 { 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); diff --git a/lib/ui/screens/registration_screen.dart b/lib/ui/screens/registration_screen.dart index 83e4723..f22f127 100644 --- a/lib/ui/screens/registration_screen.dart +++ b/lib/ui/screens/registration_screen.dart @@ -58,7 +58,7 @@ class _RegistrationScreenState extends State { 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 { 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( diff --git a/lib/widgets/aya_player_widget.dart b/lib/widgets/aya_player_widget.dart index 365924b..9474d8a 100644 --- a/lib/widgets/aya_player_widget.dart +++ b/lib/widgets/aya_player_widget.dart @@ -139,12 +139,12 @@ class _AyaPlayerWidgetState extends State { 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 { state ? _player.pause() : _isAudioHaveError - ? Utils.showToast("Audio file is not loaded") + ? Utils.showToast("لم يتم تحميل ملف الصوت") : _player.play(); }); },