Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Add zh_TW Provider #427

Merged
merged 12 commits into from
Oct 29, 2014
Merged

Add zh_TW Provider #427

merged 12 commits into from
Oct 29, 2014

Conversation

tzhuan
Copy link
Contributor

@tzhuan tzhuan commented Sep 23, 2014

No description provided.

@fzaninotto
Copy link
Owner

Tests fail.

return $digits[mt_rand(0, count($digits)-1)];
}

public static function randomNumber2()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want a not null number? Then use randomDigitNotNull, or numerify with %.

@tzhuan
Copy link
Contributor Author

tzhuan commented Sep 30, 2014

I have patched the base Text provider and overrided only a small parts of it for zh_TW provider. Could you please have a look on it and consider merge it? thanks.

),
);

# Reference: http://terms.naer.edu.tw/download/287/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the // syntax, or better, the phpDoc syntax:

/**
 * @link http://terms.naer.edu.tw/download/287/
 */

@fzaninotto
Copy link
Owner

Most of the PR is OK, but I'm afraid the realText provider will need some more work. I suggest you split the PR in two, putting the realText stuff in a second PR. Then I'll merge the first one, and we can discuss the realText PR further.

@tzhuan
Copy link
Contributor Author

tzhuan commented Oct 3, 2014

Okay, the realText part is removed in this PR. I'll open a new PR for that.

@fntsrlike
Copy link

I am expect this PR be merged. It is much helpful ! =D

fzaninotto added a commit that referenced this pull request Oct 29, 2014
@fzaninotto fzaninotto merged commit fd652d9 into fzaninotto:master Oct 29, 2014
@fzaninotto
Copy link
Owner

Much appreciated, thanks!

@tzhuan
Copy link
Contributor Author

tzhuan commented Oct 29, 2014

Thanks!

@vlakoff
Copy link
Contributor

vlakoff commented Oct 4, 2015

Why the added Internet.php and Payment.php?

@tzhuan
Copy link
Contributor Author

tzhuan commented Oct 5, 2015

The romanization of the name is usually required and used for credit-card in Taiwan.
Chinese domain names do exist but they are rarely used. Most domain names are still in English in Taiwan. Therefore, I added the Payment.php and Internet.php to keep the English version of the Payment::creditCardInfo(), Internet::userName() and Internet::domainWord() methods.

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

Successfully merging this pull request may close these issues.

4 participants