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

Fallback to the default localization resource for base classes with the L property #3967

Closed
hikalkan opened this issue May 15, 2020 · 0 comments

Comments

@hikalkan
Copy link
Member

Base classes like ApplicationService has a L property. But it requires to set the LocalizationResource property by the derived class. Otherwise, it fails. We generally set it in the constructor of the derived class (example).
If the developer inherits from this class, no problem. But sometimes developers directly inherit from to ApplicationService and forgot to set the resource type. In such cases, we will try to fallback to the default resource (introduced with #3790 and documented here). If developer set it (with is already done in the startup template) everyting will work as expected.

@hikalkan hikalkan added this to the 2.8 milestone May 15, 2020
@hikalkan hikalkan self-assigned this May 15, 2020
hikalkan added a commit that referenced this issue May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant