-
Notifications
You must be signed in to change notification settings - Fork 634
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
localize obsolete messages in protogeo #13580
Conversation
{ | ||
if (resourceType == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is moved to base class
Message = message; | ||
} | ||
} | ||
[AttributeUsage(AttributeTargets.Method| AttributeTargets.Constructor | AttributeTargets.Property)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can now be applied to more function types.
/// <param name="descriptionResourceID">resx id for this resource</param> | ||
/// <param name="typeName">name of type that contains resource strings.</param> | ||
/// <exception cref="ArgumentNullException"></exception> | ||
public IsObsoleteAttribute(string descriptionResourceID, string typeName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is very useful for autogen because we can't reference the type inside the resource assembly in some situations - but we know the type name and assembly name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test failure is the flaky one - I will file task to fix that. |
* move resx lookup to base class so libG can use it * add new constructor for when we only know type name, but cant reference actual type * can apply to different function types * comments
Purpose
DYN-5249
This PR adds localization capabilities into the base class of our custom obsolete attribute types. This way it can be used from LibG.
This PR must be merged and ideally generate a nuget package before we can merge the related LibG PR which localizes most obsolete node messages.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Improves API for localizing obsolete node messages
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of