Search found 20 matches

by Paul Zip
Mon Feb 12, 2007 3:53 pm
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

Yes there is a 1 in the against the form in the expert. It does seem to stream the data if you right click on the component on the form, but not if you do it from the expert form.
by Paul Zip
Mon Feb 12, 2007 3:10 pm
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

I've followed your instructions exactly and TranslationData is still not being streamed. As I said, I suspect the problem relates to NeedWriteTranslation sub procedure in TsiCustomLang.DefineProperties. I think it would be good to add something to TsiCustomLang.Options e.g. loAlwaysStreamTranslation...
by Paul Zip
Mon Feb 12, 2007 2:22 pm
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

In fact, I've caused siLangRT to be streamed to DFM by moving it (Left property changed) on descendent form, but this still won't cause TranslationData to be streamed if I use "Update Translations". I think the problem somehow relates to NeedWriteTranslation sub procedure in TsiCustomLang....
by Paul Zip
Mon Feb 12, 2007 2:12 pm
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

I've tried "Update Translations" with a particular form open and it still doesn't stream TranslationData unless the DFM contains an inherited reference to the siLangRT - i.e. siLangRT has changed in some way to its ancestor. So I still have a big hurdle to circumvent. Do you have any other...
by Paul Zip
Mon Feb 12, 2007 12:35 pm
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

I'm sorry, I spoke too soon, this is still a problem with form inheritance. The "Update translations" only seems to work if the inherited siLang component exists in a descendent's DFM. i.e. Something has changed which differs from its ancestor. This would still mean somehow causing a chang...
by Paul Zip
Mon Feb 12, 2007 12:08 pm
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

Sorry, ignore last post. The DFM data was streamed after I clicked the Save in the IDE.
by Paul Zip
Mon Feb 12, 2007 11:59 am
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

I tried your suggestion, but nothing was streamed to the DFMs.
by Paul Zip
Mon Feb 12, 2007 11:15 am
Forum: TsiLang Components Suite
Topic: TsiLang and form inheritance / run-time issue
Replies: 13
Views: 17376

TsiLang and form inheritance / run-time issue

Why is it that to allow a form to be translated, the siLang component needs to have streamed TranslationData to the DFM? Why can't there be a run-time option for situations where translation is only being done at run-time? The design time option means whenever any change is made to a form, I have to...
by Paul Zip
Fri Feb 09, 2007 11:10 am
Forum: TsiLang Components Suite
Topic: Form inheritance and exclude properties
Replies: 2
Views: 7072

Form inheritance and exclude properties

I wonder if I am missing something obvious, but it seems SiComponents do not lend themselves very well to form inheritance and property exclusions. For example, I have a project with 2000 forms. I have a base form frmBase with siLangRT on it, I have a descendent form frmTranslateBase which sets siLa...
by Paul Zip
Thu Jan 18, 2007 3:16 pm
Forum: TsiLang Components Suite
Topic: Making a column readonly in RT Language editor
Replies: 1
Views: 5036

Making a column readonly in RT Language editor

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 Fre...
by Paul Zip
Thu Jan 18, 2007 2:59 pm
Forum: TsiLang Components Suite
Topic: Dynamically adding languages at runtime
Replies: 5
Views: 8493

Thanks, that worked!
by Paul Zip
Thu Jan 18, 2007 11:45 am
Forum: TsiLang Components Suite
Topic: Dynamically adding languages at runtime
Replies: 5
Views: 8493

I forgot to mention that at runtime, TfrmBase loads any saved SIB file the user has created and saved. constructor TfrmBase.Create(AOwner: TComponent); var TranslationFile : string; begin inherited; TranslationFile := ExtractFilePath(Application.ExeName) + Self.ClassName + '.sib'; siLangRT.StorageFi...
by Paul Zip
Thu Jan 18, 2007 11:18 am
Forum: TsiLang Components Suite
Topic: Dynamically adding languages at runtime
Replies: 5
Views: 8493

Due to the sheer size of our applications (1000s of forms) we use form inheritance to achieve multi-lingual capability, this is achieved in the following way: TdmoTranslator = class(TDatamodule) holds our language dispatcher on, loads languages at app start-up. Created and persistent for lifetime of...
by Paul Zip
Wed Jan 17, 2007 6:11 pm
Forum: TsiLang Components Suite
Topic: Dynamically adding languages at runtime
Replies: 5
Views: 8493

Dynamically adding languages at runtime

Our users want to dynamically add languages at run time, and although we can do this by changing LangDispatcher.LangNames, when you go to use the si translation form to translate, they only see columns for languages created at design time, even though we are loading / saving translations to an exter...
by Paul Zip
Mon Jan 08, 2007 1:29 pm
Forum: TsiLang Components Suite
Topic: Import Resource Strings Issue
Replies: 5
Views: 8755

I have tried the new wizards file and there is no improvement, it still takes ages to select all of the checkboxes and it uses 100% cpu. Could this exe be made command line callable? e.g. siimporter.exe /app="c:\files\App.exe" /obsolete="Y" /checkall="Y" /dfm="c:\s...