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

Added Ukrainian Language #411

Closed
wants to merge 25 commits into from
Closed

Added Ukrainian Language #411

wants to merge 25 commits into from

Conversation

dmytro-i
Copy link
Contributor

Hi,

I have added Ukrainian resources for datetime and timespan humanization as well as ordinazer, number to words converter. I don't have ReSharper so I hope there aren't any issues with that.

If there are feel free to let me know.

I'm using Humanizer in production website and looking forward to using updated nugget package when ready.

Regards,
Dmytro IELKIN

@@ -82,8 +82,8 @@ public void TimeSpanWithMaxTimeUnit(int ms, string expected, TimeUnit maxUnit)
}

[Theory]
[InlineData(0, 3, "no time")]
Copy link
Member

Choose a reason for hiding this comment

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

Any reasons why you have changed "no time" to "just now"? I'm asking because this can be used with general time-spans, which are not bound to any particular momentum.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was intended for cases when for example a post is just added and time span is 0 milliseconds so it would make sense to show 'just now'

But for what I understand from your comment sometimes users just want to translate such a time span to 'no time'

Would you like me to revert it back?

Copy link
Member

Choose a reason for hiding this comment

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

Yes please revert these changes. We can open separate issue for "no time"/"just now" and discuss there.

@dmytro-i
Copy link
Contributor Author

Resources and tests are reverted to 'no time'

internal class UkrainianFormatter : DefaultFormatter
{
public UkrainianFormatter()
: base("uk-UA")
Copy link
Member

Choose a reason for hiding this comment

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

Can it be specified as "uk"?

@dmytro-i
Copy link
Contributor Author

dmytro-i commented May 1, 2015

I tried but in that case it loads default resources

@mexx
Copy link
Collaborator

mexx commented May 1, 2015

You should also rename uk-UA.resx file as well, then it should work, look at ru as example.

@dmytro-i
Copy link
Contributor Author

dmytro-i commented May 1, 2015

I see. Will do so.

@dmytro-i
Copy link
Contributor Author

dmytro-i commented May 3, 2015

Locale code updated

@hazzik
Copy link
Member

hazzik commented May 6, 2015

/cc @mexx @MehdiK

@@ -245,6 +245,10 @@ public class In

public class InflectorExtensions
{
public void AddIrregular(string singular, string plural) { }
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think something gone wrong with the rebase, as this methods are part of another PR.

@mexx
Copy link
Collaborator

mexx commented May 8, 2015

@hazzik Besides the comments, LGTM

This reverts commit ca96ffa.
@dmytro-i
Copy link
Contributor Author

dmytro-i commented May 8, 2015

Reverted changes.

@dmytro-i
Copy link
Contributor Author

Waiting for feedback. @mexx @hazzik

}
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this

@hazzik
Copy link
Member

hazzik commented May 12, 2015

@dmytro-ielkin

Ok, now the hardest part. Please squash your pull request and rebase it on master. Also add your PR to the release_notes.md

You can find more info in CONTRIBUTING.md

@dmytro-i
Copy link
Contributor Author

Ok. I was wrong to work on this PR in master. Will remove the repository and do it the right way.

@dmytro-i dmytro-i closed this May 13, 2015
@dmytro-i dmytro-i mentioned this pull request May 13, 2015
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

Successfully merging this pull request may close these issues.

3 participants