hello everybody, i have websites in C# asp net webform, and i will them avaiable in few other countries. how should i translate it by buttons. my website has masterpage too, which its menubar should be translated too.
thanks for respond with codes, please. kind regards
Anupam MaitiPosted Oct 6, 2024, 8:06 PM
To localize and translate your ASP.NET Web Forms website, including master pages and menu bars, you can use resource files (.resx) and implement language selection with buttons.
ASP.NET uses
.resxresource files to store localized text. You should create one.resxfile for each language and one default file.GlobalResources.resx(default English resource file)GlobalResources.fr.resx(French resource file)GlobalResources.de.resx(German resource file)Place the resource files inside the
App_GlobalResourcesfolder in your project.For more details refer : https://learn.microsoft.com/en-us/dotnet/core/extensions/localization
Željko PerićPosted Oct 6, 2024, 7:51 PM
Hello,
Here is a usefull link to VS Studio extension that is most sutable for localization:
ResXManager - Visual Studio Marketplace
https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager#:~:text=Extension%20for%20Visual%20Studio%20-%20The
All the best,
Željko