Table of Contents

TMS FNC Localization Collector

TTMSFNCLocalizationCollector is the engine that discovers the translatable text in your application. It walks the application's forms and components, gathers the properties worth translating (captions, hints, list items, and so on) according to its rules, and builds the translation set that the Localization Editor presents and the Localizer applies. It is a non-visual component: drop it alongside the localizer, point it at a translation folder, and it produces and maintains the list of strings to translate.

Documentation

Start here Use when
Getting started You want the collector scanning your app quickly.
User guide You want the details: analyzing, excluding objects, saving, and change events.
API reference You want class, property, method, and event details.
Release notes You want the Collector change history.

Quick start

Configure the collector and scan the running application for translatable text:

procedure TDataModule1.DataModuleCreate(Sender: TObject);
begin
  { Collector is usually dropped on a data module together with the localizer. }
  Collector.LocalizationFolder := TPath.Combine(TPath.GetDocumentsPath, 'Translations');

  { Save the collected set automatically when the component is destroyed. }
  Collector.AutoSaveOnDestroy := True;

  { Walk the running application and gather everything translatable. }
  Collector.AnalyzeApplication;
end;

Key classes

Class Role
TTMSFNCLocalizationCollector The collection engine.

See also