Skip to content

Commit

Permalink
LocalizedResourceExtension is fully rewritten
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackAndDie committed Feb 15, 2024
1 parent c242ac0 commit 1120560
Show file tree
Hide file tree
Showing 19 changed files with 163 additions and 2,648 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ private void Preparer(object sender, EventArgs e)

var currLang = LocalizationManager.CurrentLanguage;
string translated = LocalizationManager.GetValue(_key);
if (currLang != null && translated != null)
if (currLang != null && !string.IsNullOrWhiteSpace(translated))
{
OnNextOuter(translated);
}
else
{
OnNextOuter(_key);
OnNextOuter($"Key not found: {_key}");
}
}

Expand Down
89 changes: 0 additions & 89 deletions Hypocrite.Wpf/Localization/Deps/DefaultConverter.cs

This file was deleted.

45 changes: 0 additions & 45 deletions Hypocrite.Wpf/Localization/Deps/DependencyObjectHelper.cs

This file was deleted.

39 changes: 0 additions & 39 deletions Hypocrite.Wpf/Localization/Deps/EndpointReachedEventArgs.cs

This file was deleted.

119 changes: 0 additions & 119 deletions Hypocrite.Wpf/Localization/Deps/IDictionaryEventListener.cs

This file was deleted.

40 changes: 0 additions & 40 deletions Hypocrite.Wpf/Localization/Deps/INestedMarkupExtension.cs

This file was deleted.

Loading

0 comments on commit 1120560

Please sign in to comment.