Skip to content

Localize VerbAttribute#473

Merged
moh-hassan merged 1 commit into
commandlineparser:developfrom
moh-hassan:localize-verb
Jul 16, 2019
Merged

Localize VerbAttribute#473
moh-hassan merged 1 commit into
commandlineparser:developfrom
moh-hassan:localize-verb

Conversation

@moh-hassan
Copy link
Copy Markdown
Collaborator

This PR is extending PR #356 to localize VerbAttribute

@moh-hassan
Copy link
Copy Markdown
Collaborator Author

@gkelling
You can try the new dev package that include the localization of PR #356 and VerbAttributes.
I appreciate your feedback before merging the PR.

@gkelling
Copy link
Copy Markdown

gkelling commented Jul 12, 2019

@moh-hassan
I pulled down the package and re-tested that I can use resx to localize the Options help text and tested to localizing the Verb help text, both of these were successful.

I also verified that instead of using the provided example in the previous PR
[Option("lastname", HelpText = "LastName", ResourceType = typeof(EmployeeResx))]

You can use this as well
[Option("lastname", HelpText = nameof(EmployeeResx.LastName), ResourceType = typeof(EmployeeResx))]

@moh-hassan
Copy link
Copy Markdown
Collaborator Author

Thanks @gkelling for feedback. I'll merge this PR.

@moh-hassan moh-hassan merged commit 86d7582 into commandlineparser:develop Jul 16, 2019
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