2
Answers

translation of a website in C# asp net webform

venus najad

venus najad

Oct 06
395
1

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

Answers (2)
1
Anupam Maiti

Anupam Maiti

186 10.7k 3.5m Oct 06

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 .resx resource files to store localized text. You should create one .resx file for each language and one default file.

  • Example structure:
    • 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_GlobalResources folder in your project.

For more details refer : https://learn.microsoft.com/en-us/dotnet/core/extensions/localization

1
Željko Perić

Željko Perić

396 4k 242k Oct 06

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