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

Add Swedish locale #316

Merged
merged 4 commits into from
Aug 20, 2014
Merged

Add Swedish locale #316

merged 4 commits into from
Aug 20, 2014

Conversation

ulrikjohansson
Copy link
Contributor

Adding Swedish localisation for personal data (names, personal identity number) as well as addresses and phone numbers.

@ghost
Copy link

ghost commented May 6, 2014

@fzaninotto ping

public function firstName($gender = null)
{
if ($gender == static::GENDER_MALE) {

Copy link
Owner

Choose a reason for hiding this comment

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

what happens then ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing, apparently =)
When finishing up this PR I noticed that another PR just got merged that already took care of differentiating male/female names: #114
I renamed my class properties to match those in that PR but missed removing the method overrides. I'll remove these overrides and just use the inherited ones.

@heysamtexas
Copy link

@fzaninotto , @ulrikjohansson - hey guys, I see there are merge conflicts that prevent this from going into the main code. I just wanted to ping you both, or I can make an attempt to resolve the conflicts. Thanks!

@fzaninotto
Copy link
Owner

@undernewmanagement I suggest you coordinate efforts with @ulrikjohansson

@ulrikjohansson
Copy link
Contributor Author

@undernewmanagement Hi! Sadly I've neglected this pull request since I stopped using Faker for the project that was intended to use this patch. I've updated the pull request now so it's mergable again, but since it's a bit old now I need to have a look through it to see if it's still ok, and then fix the things that stopped the pull request from being accepted in the first place. I think I will have some time for that this weekend.

@ulrikjohansson
Copy link
Contributor Author

@fzaninotto I've finally gotten around to updating this pull request to use a DateTime provider in the personal number function so that the personal numbers use the seed properly.

fzaninotto added a commit that referenced this pull request Aug 20, 2014
@fzaninotto fzaninotto merged commit d082b5f into fzaninotto:master Aug 20, 2014
@fzaninotto
Copy link
Owner

Great! Many thanks for your contribution.

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.

3 participants