Page 1 of 1

Adding to dictionary behaves incorrect with '&'

Posted: Thu May 24, 2007 1:32 pm
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

Posted: Thu May 24, 2007 6:50 pm
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.

Posted: Fri May 25, 2007 7:33 am
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

Posted: Fri May 25, 2007 5:15 pm
by isiticov
Glad to see it works fine for you. Unfortunatelly, it is possible now to set this option only during the session. :(