DCForm Translator

Overview

DC.FormTranslator is a COM based component that allows you Support MultiLanguage Application , by populate form labels with predefined translation automatically

DC.FormTranslator may be used with any developing language support COM based application like Visual Basic,Visual C++,Borland C++,Delphi, etc.

EgyFirst has done a lot of work for you. no need to waste time , designing your form again to support multi languages and eastern languages application you design one form and we design the other by translating it for you

Features

If you develop multi language application or eastern language application , you must get DC.FormTranslator Only one Line to add in your Form_Load event and we will translate the form with all its labels for you

Note: It is recommended to use DC.FormFlipper with DC.FormTranslator

Example:

Dim FT as DynamicComponents.FormTranslator()

FT.TranslateForm(Me, CN, 2) 'Trnslate form into French

where CN is your DSN , and parameter 2 is language id , here it refer to French language

\1) First image show orginal form in English

\2) Second image show form after translating it into french

System Requirements

DC.FormTranslator runs as a COM class for Developing with Visual Basic.Net underMicrosoft Windows 98/NT/ 2000 or Windows XP.

Installing DC.FormTranslator-----

The DC.FormTranslator setup program will automatically register theDC_FormTranslator10.dll file on your system.

There is no need to manually run RegSvr32.exe on your development system.

Including DC.FormTranslator

To include DC.FormTranslator in your project

  1. From Project menu select add reference
  2. Push Browse button to locate your DC_FormTranslator10.DLL file which by default located in c:\windows\system32 , now the specific DLL included in your references

Deploying DC.FormTranslator Applications

The only file needs to be distributed withDC.FormTranslator COM applications is DC_FormTranslator10.dll

this file should be copied to the WinSystem directory which by default is C:\Windows\System32

TranslateForm

We support Multi Language Applications , you can use same application with different languages

All you need is:

  1. Create a new table , name it "Multilanguage" and put it in your database
  2. create 4 fields as specified
Name Type Length
Tag Text 50
Id Text 50
Language1 Text 50
Language2 Text 50
  1. Fill Tag field with your Form Name

  2. Fill Id Field with your Label name

  3. Fill Language1 field with your first language translation

  4. Fill Language2 field with your second language translation and so on , you can add many languages as you like, no limitation !

Note:

to change form text put form name in both field tag and id

Syntax:

Function TranslateForm(ByRef dm_Form As System.Windows.Forms.Form, ByRef dm_DSN As ADODB.Connection, ByVal dm_Language As Byte)

Example:

FT.TranslateForm(Me, CN, 2) 'Trnslate form into French

This will populate your form text and all its labels with your translation in field "Languge2" in table "Multilanguage" in database refered to it by DSN named CN in this example

Example of French Translation

Tutorial

This tutorial describe most of features supported by DC.FormTranslator

also you can refer to the project example which installed by default into C:\Program Files\Dynamic Components\Form Translator\Tutorial\

Dim FT As New DynamicComponents.FormTranslator()

Dim CN As New ADODB.Connection()

Dim oOrders As New ADODB.Recordset()

Dim oAccess As New Access.Application()

Dim DAO\_DBEngine As New DAO.DBEngine()



Private Sub TestForm\_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load

'establish DSN

oAccess.DBEngine.RegisterDatabase("DCDM\_Nwind", "Microsoft Access Driver (\*.mdb)", True, "DBQ=" & VB6.GetPath & "\Nwind.mdb")

CN.Open("DSN=DCDM\_NWind")

oOrders.Open("Orders", CN, oOrders.CursorType.adOpenKeyset, oOrders.LockType.adLockOptimistic)

PopulateDate()

FT.TranslateForm(Me, CN, 2) 'Trnslate form into French 

End Sub