question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LocalizableString in Core dll

See original GitHub issue

I try to localize a UserFriendlyException but in Core dll is not possibile.

I think that is a good option extend UserFriendlyException or AbpException to do it.

Mat

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hikalkancommented, Feb 26, 2016

Statics can not inject dependencies. This is a general programming issue. We introduced LocalizationHelper for this purpose. Use this:

LocalizationHelper.GetString("tmkRequestIsInThePast", tmkConsts.LocalizationSourceName)

0reactions
andmattiacommented, Feb 26, 2016

Great!

Thks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Globalization and localization in ASP.NET Core
Provide localized resources for the cultures the app supports. Implement a strategy to select the culture for each request.
Read more >
publishing - .net core build produces localization folders
In ASP.NET Core 6, why language folders needed in Published output for System.Private.ServiceModel.resources.dll and how to eliminate them? 1.
Read more >
Class LocalizableString | Azure SDK for Net - Microsoft .NET
Assembly: Microsoft.Azure.Management.Monitor.dll ... Initializes a new instance of the LocalizableString class. ... public LocalizableString (string value,
Read more >
ASP.NET Core Localization Deep Dive - Joonas W's blog
This article covers pretty much all the important things about localization in ASP.NET Core and MVC Core. It's quite long, but I tried...
Read more >
LocalizedStrings.dll - Download and Fix DLL Errors
Dynamic Link Library files, like LocalizedStrings.dll, are essentially a "guide book" that stores information and instructions for executable ( ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found