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

fixed compatibility issue in .NET5/WebAssembly where assemblies were not being loaded into the default AppDomain, optimized service registration on WebAssembly, fixed spelling mistake for satellite assemblies constant and fixed issue in LocalizableComponent #857

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

sbwalker
Copy link
Member

@sbwalker sbwalker commented Nov 3, 2020

No description provided.

sbwalker and others added 2 commits October 25, 2020 13:11
…not being loaded into the default AppDomain, optimized service registration on WebAssembly, fixed spelling mistake for satellite assemblies constant and fixed issue in LocalizableComponent
@sbwalker sbwalker merged commit 3cfb27b into oqtane:master Nov 3, 2020
@@ -68,7 +68,7 @@ public class Constants {
};
public static readonly string[] InvalidFileNameEndingChars = { ".", " " };

public static readonly string StalliteAssemblyExtension = ".resources.dll";
public static readonly string SatelliteAssemblyExtension = ".resources.dll";
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

@@ -18,7 +18,7 @@ protected string Localize(string name)
{
if (!IsLocalizable)
{
return null;
return name;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

Copy link
Member Author

@sbwalker sbwalker Nov 3, 2020

Choose a reason for hiding this comment

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

For modules that have been created for Oqtane 1.x they may have used the ActionDialog control. When trying to run these modules on Oqtane 2.0 (.NET5) the modules run fine however when the ActionDialog modal popup is displayed, the buttons do not have any text. I stepped through the code and it is because the Localize() method is returning null. This appears to be a breaking change as it affects backward compatibility. I am not sure if the solution I checked in is valid - if not, then we will need some other type of solution to deal with this issue. It does seem to make sense to me that if a component is not localizable then the method should return the text which was passed in?

Copy link
Contributor

Choose a reason for hiding this comment

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

Aha, I did that because you mentioned this in the PR about hating default values in localization ;)

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