I watched like 15 videos on this subject and was totally lost. Then I watched your video and you made it very clear and easy to understand, finally got my project to work the way I wanted it to. Thanks Again.
@mister_dotnet4657
3 жыл бұрын
You are wellcome :)
@ervinsapinis2379
3 ай бұрын
excellent, straight to the point, explained better than any resource on the web or chatgpt.
@semihcelikol47
6 ай бұрын
Thank you so much. I researched everywhere but did'nt found anyhting. Thanks to you I finally could do it.
@RyelleBlitz
2 жыл бұрын
Actual hero, thanks legend!
@mahnaznoorizadeh3509
Жыл бұрын
Perfect video. It solved my problem. Thanks a lot.
@thokankit007
Жыл бұрын
Thank you for this video. I subscribed instantly ❤️🔥
@ИванИванов-я5э9к
Жыл бұрын
Fast and good explanation. Thank you!
@kevinj5989
2 жыл бұрын
Your video was *exactly* what I needed to learn as a newbie. I was giving the resource name as MyProject\MyFolder\MyStrings, but instead you taught me MyProject.Myfolder.Mystrings. You unstuck me! Thank you!
@KibbleWhite
2 жыл бұрын
Yep, super simple to understand and great for newbies - thanks 👍
@mahdi8572
2 жыл бұрын
This was very helpful, thank you.
@irinaristova2443
3 жыл бұрын
Great video. Thank you!
@elliottperry5762
3 жыл бұрын
Great explanation. Nice and clear! Thank you!
@jonathanvargasv2009
2 жыл бұрын
Thanks! Great video!
@michaszatkowski1624
8 ай бұрын
Great video. Thx
@oualidtube
2 жыл бұрын
Thank you !
@michaelbowers3842
Жыл бұрын
So if I just Right-Click on my project and select Properties, I can go to the Resources tab and start creating resources. But I have no idea how to find them in the code. Where are they?
@coolpie
3 жыл бұрын
Excellent!
@anhophuong9318
Жыл бұрын
thank you
@carlossantamaria1820
Ай бұрын
What can I do to make this work in other pages as well? not just in the Layout page, I don´t know what I did wrong
@ikasheducation5383
2 жыл бұрын
How we can retrive data from local resources file in nopCommerce
@HammadBinSajid
2 жыл бұрын
Why you change Thread culture on line 21?
@mister_dotnet4657
2 жыл бұрын
I think i had done this because the resource manager try to find the resourcefile based on the culture. I have on my computer while i run the programm culture "de-DE", but in the video i created only resources for english (en, en-GB, en-US) And first i invoke the rescourcemanager with rm.GetString("Welcome") than it takes the current thread culture later i invoke the method rm.GetString("Welcome", new CultureInfor("en-GB") in this case line 21 is for nothing. I only do not deleted it. Hopefully this answers your question
@LevelHorizon
Жыл бұрын
I think this is used as an example. We would not normally change the culture like this. If the user's culture (in this case de-DE) is not found, it should use the default: strings.resx. So if we decide that the default culture is going to be en-US, for example, this should be in our default strings.resx file.
@TheAppAlchemist
2 жыл бұрын
thank you so much feedback: it was very good video, I would like you to talk with more joy and energy in the video and start by a very concrete and complete answer at the beginning of the video :D
@mister_dotnet4657
2 жыл бұрын
Thank you for that advise :)
@tranvanngoan2780
3 жыл бұрын
How about with winform??
@kathiravankkathir
2 жыл бұрын
Please take a look ResourceManager resourceManager = new ResourceManager("Language.Resources.String", Assembly.GetExecutingAssembly()); var currentUICulture = Thread.CurrentThread.CurrentUICulture.Name; Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB"); var NewcurrentUICulture = Thread.CurrentThread.CurrentUICulture.Name; var string = resourceManager.GetString("hello"); but language not changed its still only I am getting below error System.Resources.MissingManifestResourceException: 'Could not find the resource "Language.Resources.String.resources" among the resources "" embedded in the assembly "Language", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'
@mister_dotnet4657
2 жыл бұрын
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB"); your are chaging the "CurrentCulture" var NewcurrentUICulture = Thread.CurrentThread.CurrentUICulture.Name; but in this line u are asking for "CurrentUICulture" try to change Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB"); to Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("en-GB");
@kathiravankkathir
2 жыл бұрын
@@mister_dotnet4657 Now culture changed but I am still getting below error System.Resources.MissingManifestResourceException: 'Could not find the resource "Language.Resources.String.resources" among the resources "" embedded in the assembly "Language", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'
@mister_dotnet4657
2 жыл бұрын
@@kathiravankkathir Maybe you have a failur in naming of your resource or your rescources are not in the expected folder at runtime. I would suggest to check if you have a failur in your names and then check were your sattelite assemblies are stored at runtime.
@kathiravankkathir
2 жыл бұрын
@@mister_dotnet4657 Now Its working Thanks for input and support 🙂
Пікірлер: 32