Getting started with the Editor
This page covers the shortest path to opening the translation editor over a collector. For the details — the modal result, saving changes, and the callback overload — see the user guide.
Prerequisites
- TMS FNC Core installed and the runtime package added to the project.
- TMS FNC Localization installed.
- A Collector that has gathered the application's translatable strings (see the Collector getting started).
Add the component
Drop a TTMSFNCLocalizationEditor from the TMS FNC Localization palette tab. At design time you can open the editor directly from the IDE; to open it from your own UI, call Execute:
procedure TForm1.EditTranslations;
begin
{ Open the editor. It analyzes the application when it opens, lets the user
translate, and (on VCL and FMX) saves the translations to the collector's
folder when it closes - no manual analyze or save is required. }
Editor.Execute;
end;
void __fastcall TForm1::EditTranslations()
{
// Open the editor. It analyzes the application when it opens, lets the user
// translate, and (on VCL and FMX) saves the translations to the collector's
// folder when it closes - no manual analyze or save is required.
Editor->Execute();
}
There is no collector property to assign: the editor works on the application's collector. You do not call AnalyzeApplication or save the translations yourself: the editor analyzes the application when it opens and, on VCL and FMX, saves the translations to the collector's folder when it closes (on TMS WEB Core the editor offers a Download button instead, since browsers cannot write files silently). Execute returns no result. Note that it only blocks in a design-time host: at run time it returns while the editor is still open, so put anything that should happen after the editor closes, such as refreshing text your code builds, in the callback it accepts rather than on the next line.
See also
- User guide — saving, the callback overload, filtering, and the editor language
- Editing translations
- API reference