ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Multilingual functions
  • Which syntax to use?
  • Managing the space characters
  • Displaying a message in an unavailable language
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 26, this function is kept for backward compatibility. It is recommended to enter the message directly in the code. For more details, see Translation of programming messages.
Retrieves a message found in the code of a program in the current language.
Remark: It's advisable to use multilingual strings directly in the code.
Example
// Récupère et affiche le message 2100 
// présent dans le code de la fenêtre "FEN_Menu"
Info(MessTranslate(FEN_Menu, 2100))
// Récupère et affiche le message 2100 
// présent dans le code
Info(MessTranslate(2100))
Syntax

Retrieving the message corresponding to the identifier (compatibility with version 5.5) Hide the details

<Result> = MessTranslate(<Message number>)
<Result>: Character string
Sought message in the current language.
<Message number>: Integer
Number of the message to display:
  • Number between 1 and 500 inclusive: the resource is searched for in the project.
  • Number between 2000 and 2499 inclusive: the resource is searched in the current window.
  • Number between 5000 and 5499 inclusive: the resource is searched for in the current class.
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadIOS WidgetApple WatchMac CatalystUser code (UMC)Ajax

Retrieving the message associated with a project element Hide the details

<Result> = MessTranslate(<Element> , <Message number>)
<Result>: Character string
Sought message in the current language.
<Element>: Character string
Object in which the resource must be sought.
  • Empty string (""): search in current object.
  • "." project search.
  • "Object name": search in the specified object.
<Message number>: Integer
Identifier of the message to find:
  • Message associated with the project: number between 1 and 65535.
  • Message associated with a collection of procedures: number between 1 and 65535.
  • Message associated with a window: number between 2000 and 65535.
  • Message associated with a status: number between 2000 and 65535.
  • Message associated with a class: number between 5000 and 65535.
Remarks

Which syntax to use?

We recommend that you use the first syntax.
To find resources whose identifiers are greater than the above-mentioned limits, you must use the first syntax.

Managing the space characters

The space characters entered at the end of messages are ignored. For example: "Customer: " becomes "Customer:".. To force one or more space characters at the end of a message, you must use the non-breaking space character (Alt+0160, the 0 in front of 160 is mandatory).
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax

Displaying a message in an unavailable language

If a message was not translated for the specified language (the element is not associated with this language), the mechanism of preferred languages is used to display the requested information in another language, very close to the requested one.
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help