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( child: TextButton(
onPressed: () { onPressed: () {
if (_passwordController.text.length < 1) { if (_passwordController.text.length < 1) {
Utils.showToast("Password is empty."); Utils.showToast("كلمة المرور فارغة");
return; return;
} }
if (_confirmPasswordController.text.length < 1) { if (_confirmPasswordController.text.length < 1) {
Utils.showToast("Confirm password is empty."); Utils.showToast("تأكيد كلمة المرور فارغ");
return; return;
} }
if (_passwordController.text != _confirmPasswordController.text) { if (_passwordController.text != _confirmPasswordController.text) {
Utils.showToast("Password incorrect"); Utils.showToast("كلمة المرور خاطئة");
return; return;
} }
widget.onPassword(_passwordController.text); widget.onPassword(_passwordController.text);

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

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

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

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

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

Loading…
Cancel
Save