JVCL Help:TJvTranslatorStrings.Add

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Adds a new Name/Value pair to the translation list.


Pascal

 functionAdd(constName: string; varValue: string): Integer;


Parameters

Parameters Description
const Name: string The name of the string variable. This value must be unique within the application.
var Value: string The value of the string.


Return Value

The index into the list where the Name/Value pair was saved.


Description

Use Add to add Name/Value pair of strings that you want to be able to translate. The Value must be available as a global variable somewhere in your project since TJvTranslatorStrings only stores a reference to it (that is how it can translate it automatically). When you use the string, use the variable, so you get the translated value of the string.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page