PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Checking in the translated messages into the corresponding extraction files
  • Loading the extraction files
  • Notes
  • Examples
  • Using the translated messages in a project managed in WLanguage
  • WINDEV application only: Using the translated messages in an application developed in C (mode compatible with WINDEV 5.5)
  • WINDEV application only: Using the translated messages in an application developed in C
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
Once the translation of framework libraries (".DLL" files) used in your project is completed, you must:
  • Check in the translated messages into the corresponding extraction files (".WDM" files).
  • Copy the extraction files (".WDM" files) into the "EXE" directory of your project.
  • Load the extraction files (".WDM" files).
How to proceed?

Checking in the translated messages into the corresponding extraction files

To check in the translated messages into the corresponding extraction files:
  1. Start the wizard of WDINT ("Tools .. WDInt .. WDInt - Translate the framework"). Start the wizard of WDINT: on the "Project" pane, in the "Translate" group, expand "Translate" and select "WDInt - Translate the framework".
  2. Select "Check in the translated messages into the translation file".
  3. Select the relevant ".WDM" file.
    WDINT proposes the list of extraction files (".WDM" extension) created on the current computer. The following details are returned for each file: its location (full path) as well as the information regarding the last modification (date and time).
    If the WDM file is not displayed in this list, the "Find" button allows you to select the ".WDM" file to check in.
  4. WDINT checks the translated messages back into the selected "WDM" file.

Loading the extraction files

Each extraction file can be associated with the corresponding language:
  • in the description window of project ("Project .. Project description", "Languages" tab, "Translate the Framework" column).
  • in the description window of project ("Project .. Project description", "Languages" tab, "Various" tab, "WDM translation files").
  • in the project description:
    • On the "Project" pane, in the "Project" group, click "Description".
    • Display the "Languages" tab of the project description.
    • In the "Various" tab, specify the extraction file in "WDM translation file".
  • by programming with LoadError or Library,Error in external language (for a WINDEV application only). See "Examples" for more details.
Note: The ".WDM" file must be found beside the executable (in test mode, this file must be found in the EXE sub-directory of project).
Notes
  • To define the runtime language of your project (captions, messages, etc.), use Nation.
  • If the extraction files are not loaded, the messages found in the framework libraries (".DLL" files) will be displayed:
    • in French if you are using a French version of WINDEV, WEBDEV or WINDEV Mobile to develop your project.
    • in English if you are using an English version of WINDEV, WEBDEV or WINDEV Mobile to develop your project.
  • When creating the setup, the files found in the "EXE" directory of your project are automatically included in the setup program.
Examples

Using the translated messages in a project managed in WLanguage

This example explains how the translated messages can be used in a project developed in WLanguage:
// LANGUAGE is a radio button
SWITCH LANGUAGE
        CASE 1: //French
                Nation(nationFrench)
        CASE 2: //Spanish
                Nation(nationSpanish)
                IF LoadError("SPANISH.WDM")>0 THEN
                        Error("File of messages in Spanish not found. ", ...
                               "The messages will be displayed in French.")
        END
END
WINDEVExternal language

WINDEV application only: Using the translated messages in an application developed in C (mode compatible with WINDEV 5.5)

This example explains the how translated messages can be used in an application developed in C (mode compatible with WINDEV 5.5).
See External language for more details.
int French = 5;
int Spanish = 7;
// LANGUAGE is a radio button
CALLWD("SCREEN,GET, LANGUAGE");
if (WdInt==1) { // French
CALLWD("NATION,%d",French);
}
else if (WdInt==2) { // Spanish
CALLWD("NATION,%d",Spanish);
CALLWD("LIBRARY,ERROR,SPANISH.WDM");
if (WdInt>0) {
CALLWD("ERROR,Message file not found");
}
}
WINDEVExternal language

WINDEV application only: Using the translated messages in an application developed in C

This example explains how the translated messages can be used in an application developed in C.
See External language for more details.
int French = 5;
int Spanish = 7;
//LANGUAGE is a radio button
nWDEvaluate("MyWindow.Language");
if(nWDGetReturnValue()==1) {  // French
nWDExecute("Nation(%d)");
}
else if(nWDGetReturnValue()==2) { // Spanish
nWDExecute("Nation(%d)",French);
nWDExecute("LoadError(\"SPANISH.WDM\")");
if(nWDGetReturnValue()>0) {
nWDExecute("Error(\"Message file not found\")");
}
}
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment