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

Add mega force and torque #342

Merged
merged 3 commits into from
Dec 16, 2017

Conversation

CGrisselin
Copy link
Contributor

@CGrisselin CGrisselin commented Dec 12, 2017

Hi Andreas,
First of all, thank you very much for your wonderful work with UnitsNet. It is really helpful!
I need for one of my project bigger units for torques and forces. I have followed your instruction to add them and send you this mergerequest.
I am a beginner with github so tell me if I have done something wrong.
Best regards,
Christophe

@angularsen
Copy link
Owner

Thanks I'm glad you appreciate it and that you decided to help out improving it!
I won't have time to look at this PR in a day or two, but maybe some of the other collaborators can take a look in the meantime. From first glance it looks good!

@CGrisselin CGrisselin changed the title Add mega force and torque WIP:Add mega force and torque Dec 13, 2017
@CGrisselin CGrisselin changed the title WIP:Add mega force and torque [WIP] Add mega force and torque Dec 13, 2017
@CGrisselin
Copy link
Contributor Author

Glad you haven't time to do it too fast. I just saw that in pounds units doesn't show up (AbbreviationsWithPrefixes are missing). I fix it and commit asap.

@CGrisselin CGrisselin changed the title [WIP] Add mega force and torque Add mega force and torque Dec 13, 2017
Copy link
Owner

@angularsen angularsen left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! Verified the test case numbers.

"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "lbf·in" ],
"AbbreviationsWithPrefixes": [ "kipf·in" ]
"AbbreviationsWithPrefixes": [ "kipf·in", "Mlbf·in"]
Copy link
Owner

Choose a reason for hiding this comment

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

It seems to me that kipf or kip is a special case of widely used abbreviations although it "should" have been named klbf·in for consistency. Unfortunately the current code generator doesn't support multiple units per prefix, so we have to choose one and I won't change it now to avoid breaking anything. I'm creating a new issue to address the need to support multiple abbreviations for prefixed units so we can add it later. See #344

You don't have to take any action in this PR, this is just an observation on my part.

@angularsen angularsen merged commit 0afe5ce into angularsen:master Dec 16, 2017
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.

2 participants