Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when using ( money2str ) function with lang:en #5

Closed
ahmedfawky opened this issue Mar 10, 2021 · 2 comments
Closed

Problem when using ( money2str ) function with lang:en #5

ahmedfawky opened this issue Mar 10, 2021 · 2 comments

Comments

@ahmedfawky
Copy link

Example :
$Arabic = new \ArPHP\I18N\Arabic();
$Arabic->setNumberFeminine(1);
$Arabic->setNumberFormat(1);
$Arabic->money2str(45522.21, 'SAR', 'en');

Gave me this error : ( Undefined index: Halala )

@HazemNoor
Copy link

@ahmedfawky I think English is not fully supported in money2str method and this parameter needs to be removed and use ar only

@khaled-alshamaa
Copy link
Owner

Thanks @ahmedfawky for your reported bug, it has been fixed now, see the related commit details, it was a copy/paste mistake!

@HazemNoor, well.. it has a very basic support for English language in money2str method because it is simply out of this package scope ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants