StringDB Quick Start Guide

 

Create StringDB

  • Run StringDB Wizard
  • Click ‘Load String Table’ to load the Excel file, which contains the translations. There is a sample string table, ‘strtable.xls’ in the installation directory.
  • Select the languages you want for your application..
  • Press ‘Create StringDB’ button
  • StringDB.bin file is created in the directory of input file.
  • Now you can use this file in demo application or in your own application.

 

Create multi-language .Net applications with StringDB

  • Create a new Windows Forms Application
  • Add some components, the texts of which are contained in the StringDB default language, on the form. (Default language is the first language of StringDB)
  • If you are going to use the sample strtable.xls you can use the simple strings “Hello World”, “Language”, “Open”, “Close”, “Yes”, “No”.
  • Add StringDB.net.dll to your application’s references
  • Add namespace SWBOX.StringDB

using SWBOX.StringDB

  • Create an instance of SDBManager as a member of your form.

private SDBManager sdb = new SDBManager();

  • Register your form to StringDB, to update strings automatically

sdb.AddObject(this);

  • Add a button on your form to change the language. Call ShowLanguageDialog() in button’s Click event.

private void lanBtn_Click(object sender, System.EventArgs e)
{
DialogResult res = sdb.ShowLanguageDialog();
}

  • Copy the StringDB.bin to executable’s directory
  • Compile and run the application.
  • Change the language by pressing the language button.

Note: For a better understanding please read StringDB Wizard Manual and SDBManager manual and modify StringDB test application.