Lingobit Localizer - Software Localization ToolTools for software Localization DE | DA | FR | ES | IT | JA | NL | PL | PT | RU | TR | ZH
Software Localization

Lingobit Home > Lingobit Extractor
Lingobit Extractor

How to extract Visual Basic.NET hard-coded strings from source code to resourcesHow to extract Visual Basic.NET hard-coded strings to resources

Lingobit Extractor extracts hard-coded strings from Visual Basic.NET source code to ResX resources. Original string is replaced with a code that loads it from resources. By default Lingobit Extractor uses strongly typed resources to access resources. For example


will be replaced with


Strongly-typed resource wrappers are generated by Visual Studio. Therefore, after you extracted strings using Lingobit Extractor you need to open resources from Visual Studio and re-save them. It will force Visual Studio to generate strongly typed wrappers for new resources.

Working with ResX files

.NET applications usually use .ResX files to store resources. If you don't have such files in your project you can create it automatically using Visual Studio. Right-click the project, select Properties and go to Resources tab. It will ask you to create default resource file. You can also create new ResX file using Extractor and insert it into Visual Studio Visual Basic.NET project.

You can use the following extraction template to work with Visual Basic.NET resources


Step by step

Here are the steps to extract hardcoded strings from Visual Basic.NET source code and prepare your application for localization

  1. Create Extractor project
  2. Add source code files into the project
  3. Create ResX resource file in Visual Basic.NET project if you don't have it.
  4. Add ResX file as resource into Extractor project
  5. Review hard-coded string list and select which strings should be extracted. Use My.Resources.$(RESNAME).$(ID) replace template.
  6. Save all files
  7. Open Visual Studio and re-save resources. It will force it to generate strongly typed resource wrappers for new strings.