Page 1 of 1

Making a column readonly in RT Language editor

Posted: Thu Jan 18, 2007 3:16 pm
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!

Posted: Fri Jan 19, 2007 3:42 am
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).