Making a column readonly in RT Language editor

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Paul Zip
Posts: 20
Joined: Wed Jul 26, 2006 2:58 pm

Making a column readonly in RT Language editor

Post by Paul Zip »

Is there any way to prevent editing of the primary language column in the runtime SI lang editor?

e.g. Our first (default) language is English, but we have been asked by our customers to make this readonly so that users and / or translators don't change things by mistake. The secondary languages French, German are editable.

Code: Select all

ENGLISH   |   FRENCH   |  GERMAN 
----------------------------------------
Read Only | Read Write | Read Write 
This is quite important to them, and could be a deal breaker!
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

TsiCustomLang has protected property called FixedLanguages. You can either Just add English to it using something like the folowing:

Code: Select all

type
TAccessLang = class(TsiCustomLang);
...
begin
  TAccessLang(siLang1).FixedLanguages.Add('English');
end;
Or configure it using SIL Editor (menu Tools|Fixed Languages).
Best regards,
Igor Siticov.
Post Reply