Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@shana
Copy link
Contributor

@shana shana commented Sep 8, 2015

Merge #42 with master, clear up string duplication and unused code, and add new strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The whitespace and alignment was all screwed up on this file, so I reformatted it, hence all the apparent changes :/

@shana shana changed the title [wip] Localization Localization Sep 15, 2015
@shana
Copy link
Contributor Author

shana commented Sep 15, 2015

Fixed the rest of the view model strings and updated from master. This should be good for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

At this point, could we remove <Rule Id="CA1303" Action="None" /> so that we get build failures if we add literal strings?

Copy link
Contributor

Choose a reason for hiding this comment

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

I should have linked that. https://msdn.microsoft.com/en-us/library/ms182187.aspx?f=255&MSPPError=-2147217396

CA1303: Do not pass literals as localized parameters
A method passes a string literal as a parameter to a constructor or method in the .NET Framework class library and that string should be localizable.
This warning is raised when a literal string is passed as a value to a parameter or property and one or more of the following cases is true:

  • The LocalizableAttribute attribute of the parameter or property is set to true.
  • The parameter or property name contains "Text", "Message", or "Caption".
  • The name of the string parameter that is passed to a Console.Write or Console.WriteLine method is either "value" or "format".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, this is a good idea, those conditions won't trigger for our other usages of string literals (logging and such), so should be helpful!

@haacked
Copy link
Contributor

haacked commented Sep 16, 2015

selfie-0

haacked added a commit that referenced this pull request Sep 16, 2015
@haacked haacked merged commit 8c4cfe6 into master Sep 16, 2015
@haacked haacked deleted the shana/localization branch September 16, 2015 06:04
@haacked
Copy link
Contributor

haacked commented Sep 16, 2015

We can deal with #75 (comment) in another PR if there's anything to be done.

@shana shana modified the milestone: 1.0.15 Sep 16, 2015
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.

6 participants