ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / Object functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Nation (External language)
In french: Nation
Defines the display language for the titles, captions, messages... of the windows and controls.
Example
// In C
French=5
Spanish=7;
//LANGUAGE is a radio button
CALLWD("SCREEN,GET, LANGUAGE");
If WdInt==1 CALLWD("NATION,%d",French);
If WdInt==2 { //Spanish
CALLWD("NATION,%d",Spanish);
CALLWD("LIBRARY,ERROR,SPANISH.WDM");
If WdInt>0 CALLWD("ERROR,WDM file not found")
// In Pascal
French:=5; Spanish:=7;
{LANGUAGE is a radio button}
CALLWD('SCREEN,GET, LANGUAGE');
If WdInt=1 THEN {French}
CALLWD('NATION,'+ConvertString(French));
End;
If WdInt=2 THEN {Spanish}
Begin
CALLWD('NATION,'+ ConvertString(Spanish));
CALLWD('LIBRARY, ERROR,SPANISH.WDM');
If WdInt>0 THEN CALLWD('ERROR,WDM file not found');
End;
// In VB
French=5
Spanish=7
'LANGUAGE is a radio button
CALL CALLWD("SCREEN,GET, LANGUAGE")
If WdInt=1 THEN
CALL CALLWD("NATION,"+STR$(French))
End If

If WdInt=2 THEN
CALL CALLWD("NATION,"+STR$(Spanish))
CALL CALLWD("LIBRARY,ERROR,SPANISH.WDM")
If WdInt>0 THEN
CALL CALLWD("ERROR,WDM file not found")
End if
End if
Syntax
Nation(<Language Number>)
<Language Number>: Integer
Number of the language in which the project will be run. This value is defined in the editor when choosing the languages.
Remarks
  • After the call to Nation, the windows (titles, captions, messages) will be loaded... in the requested language.
  • Nation can be used to develop international applications to be distributed in multiple languages
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help