Search found 16 matches

by plumothy
Fri Feb 14, 2020 2:46 pm
Forum: TsiLang Components Suite
Topic: Fixing Format Strings
Replies: 1
Views: 783

Fixing Format Strings

When siLang fixes format strings it works OK if they are simple ones like '% s' (gets fixed to '%s').

But it does not work for ones which contain an index specifier. So this one '% 0: s' does not get fixed.

Is this by design or is it a bug?
by plumothy
Thu Feb 13, 2020 12:24 pm
Forum: TsiLang Components Suite
Topic: How to Translate Frames
Replies: 2
Views: 866

I cannot do that because my Frame does not use the MainForm (because it is common to multiple projects). So, here is what I have done: - a DataModule with a TsiLangDispatcher and a TsiLang - several different Frames (each with a TsiLangLinked) that use the DataModule - MainForm (with a TsiLangLinked...
by plumothy
Wed Feb 12, 2020 4:18 pm
Forum: TsiLang Components Suite
Topic: How to Translate Frames
Replies: 2
Views: 866

How to Translate Frames

My Delphi project will be using frames. I have viewed other questions in this forum to learn how to translate frames that are created and placed at design time. This is what I do - can you confirm it is OK? 1 Create the frame and drop a TsiLangLinked on it 2 Place the frame on the form that needs it...
by plumothy
Fri Jan 06, 2017 8:48 am
Forum: TsiLang Components Suite
Topic: End-user Editing of Translations at Runtime
Replies: 1
Views: 6321

End-user Editing of Translations at Runtime

I am making good use of siLang in my Delphi project (which is developed in English), with about 12 languages. I distribute translations as a SIB file and load this file when the application launches. I would like the end user to be able to amend translations (to improve on the Google translations) a...
by plumothy
Mon Oct 19, 2015 11:44 am
Forum: TsiLang Components Suite
Topic: DevExpress DBTreeList ExtLookupCombo Column
Replies: 8
Views: 15793

OK, I now understand what was happening in my test project - thank you.

Was this also responsible for the runtime error (List index out of bounds) that I reported in my original post?
by plumothy
Mon Oct 19, 2015 8:47 am
Forum: TsiLang Components Suite
Topic: DevExpress DBTreeList ExtLookupCombo Column
Replies: 8
Views: 15793

I think I have figured out what is going on. My project is quite big - 55 forms, resulting in several thousand items for translation. Before I build my project for release, I save the project to a SIL file, then select all the forms and clear all the translations. I then export the SIL to SIB and lo...
by plumothy
Sun Oct 18, 2015 8:48 am
Forum: TsiLang Components Suite
Topic: DevExpress DBTreeList ExtLookupCombo Column
Replies: 8
Views: 15793

Yes. As I said before, I have done it many times.
by plumothy
Wed Oct 14, 2015 8:25 pm
Forum: TsiLang Components Suite
Topic: DevExpress DBTreeList ExtLookupCombo Column
Replies: 8
Views: 15793

Thanks for the reply. I have spent 2 days battling with this so I have been through the following procedure many many times: - Update Translations - Open Translations Editor for this form and checked that the Collections section is empty - Close & Save Translation Editor - Save Project to SIL, then ...
by plumothy
Wed Oct 14, 2015 1:09 pm
Forum: TsiLang Components Suite
Topic: DevExpress DBTreeList ExtLookupCombo Column
Replies: 8
Views: 15793

DevExpress DBTreeList ExtLookupCombo Column

TsiLang has caused me a massive amount of wasted time this week. I have a form called frmAssetTree with a DevExpress TcxDBTreeList, called tlAssets . This TreeList has a column (called tlAssetsAnalysisID ) which had its Properties property set to LookupComboBox . There were 3 columns names in tlAsse...
by plumothy
Tue May 28, 2013 2:32 pm
Forum: TsiLang Components Suite
Topic: Translation Editor Add to Dictionary Does Not Work
Replies: 1
Views: 7282

Translation Editor Add to Dictionary Does Not Work

When I open the Translation Editor for any form, the Dictionary | Add Row menu item is disabled at all times.

The Dictionary | Add All menu command displays the dialog for selecting the base language. I click on OK, but it does NOT add any rows to the dictionary.

What could be causing this?
by plumothy
Fri May 17, 2013 12:41 pm
Forum: TsiLang Components Suite
Topic: Multi-line String Constants
Replies: 2
Views: 9184

isiticov wrote:Just use #13#10 or ^M instead of crlf2. TsiLang Expert can't compile your units and detect the value of predefined constants, but if you will use #13#10 instead of crlf2 it will recognaize this as multiline constant.
Hope this helps.
Ok - I can manage that. Thank you.
by plumothy
Fri May 17, 2013 10:21 am
Forum: TsiLang Components Suite
Topic: Multi-line String Constants
Replies: 2
Views: 9184

Multi-line String Constants

I have TSILang on Delphi XE3, Windows 7 Professional I would like to know how to get TsiLang to cope with strings that span multiple lines and which have carriage returns within them. I have this code before scanning for strings: const crlf2 = #13#10#13#10; TestMultiLineString = 'Line 01' + crlf2 + ...
by plumothy
Thu Oct 28, 2010 8:30 am
Forum: VCL Scheduling Agent
Topic: Error: "Keyset does not exist"
Replies: 2
Views: 11393

It is just a small console program that I have written to log into a database and issue a backup command. I want to use the VCL Scheduling Agent to write another application that will make it easy for my customers to schedule the console application to backup their database. Since my original post, ...
by plumothy
Tue Oct 26, 2010 12:52 pm
Forum: VCL Scheduling Agent
Topic: Filtering task list in demo
Replies: 1
Views: 9873

My apologies everyone. I have now seen how to do it. The task must be activated first like this: procedure TMainForm.acRefreshExecute(Sender: TObject); var Task: TTaskItem; Item: TListItem; Index: Integer; begin ListView.Items.Clear; Scheduler.Refresh; for Index := 0 to Scheduler.Count - 1 do begin ...
by plumothy
Tue Oct 26, 2010 12:36 pm
Forum: VCL Scheduling Agent
Topic: Filtering task list in demo
Replies: 1
Views: 9873

Filtering task list in demo

I am trying to filter the task list in the demo app by testing Task properties in acRefreshExecute. But every time I try to access a task property (like Task.ApplicationName or Task.Status) I get a runtime error. Like this: procedure TMainForm.acRefreshExecute(Sender: TObject); var Task: TTaskItem; ...