Bug - Translation not using base language if field is blank

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
RobertJNoble
Posts: 1
Joined: Wed Aug 20, 2008 2:13 pm

Bug - Translation not using base language if field is blank

Post by RobertJNoble »

If i use 3+ languages and not all translations are filled in the sib file, the correct method should use the base language if a translation is missing. This however is not the case.
Example :

Language : L1 L2 L3

Caption L1 L2 L3
C1 C1 Blank Blank
C2 C2 C22 Blank
C3 C3 Blank C33

Language L1 selected -> C1 C2 C3
Language L2 selected next -> C1 C22 C3
Language L3 selected next -> C1 C22 C33 > this is incorrect
it should be C1 C2 C33, the base language when no translation available.
Language L2 selected next -> C1 C22 C33 > this is incorrect again.

It appears that a blank translation does not fire the event to translate and therefore keeps whatever the control had as its last contents.

Thanks,
Rob
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

This is not a bug.
Just set TranslateType property to ttGetDeafult and you will have the behavior you need.
Best regards,
Igor Siticov.
Post Reply