Adding to dictionary behaves incorrect with '&'

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
robert.kuipers
Posts: 9
Joined: Thu Sep 14, 2006 12:47 pm

Adding to dictionary behaves incorrect with '&'

Post by robert.kuipers »

I have found the following bug in the latest version of TsiLang (6.1.0.1):

1. Create a new project with just one form
2. Add a TsiLangDispatcher, set its languages to 'English', 'Dutch' and 'German'
3. Add a TsiLang component, and link it to the TsiLangDispatcher from step 2
4. Add a new button on the form
5. Set the caption of the button to '&Help'
6. Set the hint of the button to 'Help' (without the ampersand)
7. Doubleclick on the TsiLang component added in step 3, and add the following translations:

For the caption of the button:
English: '&Help'
Dutch: '&Help Dutch'
German: '&Help German'

For the hint of the button
English: 'Help'
Dutch: 'Help Dutch'
German: 'Help German'

8. Add the caption-translations to a new, empty dictionary using 'Add All' (<ctrl>+<alt>+A)
9. Check the dictionary, the translations should be added. Note that the translations include the underscore under the character 'H', to represent the ampersand.
10. Now add the hint-translations to the dictionary in the same way as in step 8
10. Now check the dictionary again. There is still only one row for the button, the german and dutch translations for the hint string have overwritten the translations for the caption string, even though the english hint string differs from the english caption string ('&Help' <> 'Help') !!!!

Could you please fix this bug as soon as possible? It is causing a lot of translation errors in the hint-string translations.

Thanks in advance :D
Last edited by robert.kuipers on Fri May 25, 2007 7:30 am, edited 1 time in total.
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Thank you very much for your notice. Please take a look at the following: when you add all to the dictionary there are several options in the dialog appeared; these options include "Skip & when searching". This options is used exactly to distinguish between terms with ampersand and without it. Just deactivate it and all must work just fine.
Please let us know if this helps.
Best regards,
Igor Siticov.
robert.kuipers
Posts: 9
Joined: Thu Sep 14, 2006 12:47 pm

Post by robert.kuipers »

Thank you very much for your quick reply! I disabled the option (I didn't notice it before to be honest :oops: ) and it all works correctly!

Is there a way I can set this option to disabled for all projects (so not only for the session)?

Thanks again,

Robert
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Glad to see it works fine for you. Unfortunatelly, it is possible now to set this option only during the session. :(
Best regards,
Igor Siticov.
Post Reply