Add-In that prompt the user if the translation contain invalid character

Hi!

 

With the information i received with my last question i now want to create an add-in that prompt the translator if there is an invalid character in the translation or in the validation of a translation. Check the first photo to see what I want to show the user. I've tried to use the TokenCheck component but there is nothing happening when I change change the translated string. See second photo to see my TokenCheckComponent. I then chose to use the translation component but it is only working when I use the "translate", "pre-translate' and "find fuzzy translations' tools. See third photo to look at my TranslationComponent. I finally tried the event component but I had nothing showing up on in the log. See the fourth photo to look at the EventComponent. Is this possible to show a warning after the user pressed "enter" to change a token from the stringList?

P.S : I found that the there is no GetToken() method in the CPAITranslation class from the .Net Reference documentation and there is no method description in the .Net documentation for the OnTokenEvents() method from the Event Component. The method is present in the .dll but not in the documentation.

Parents
  • The form was simply for testing purposes and to give an idea of what I want to do but I tried the PAIFN_CheckToken. When I changed a string from the translation StringList nothing showed up or happened. This is the override of the TokenCheck I made, no matter what I try to show in the log window or operation I want to do on the string, there is nothing happening. I feel that the function is never called after I changed a string or when I perform a check on the string List. Is there something wrong in my code?

     

Reply
  • The form was simply for testing purposes and to give an idea of what I want to do but I tried the PAIFN_CheckToken. When I changed a string from the translation StringList nothing showed up or happened. This is the override of the TokenCheck I made, no matter what I try to show in the log window or operation I want to do on the string, there is nothing happening. I feel that the function is never called after I changed a string or when I perform a check on the string List. Is there something wrong in my code?

     

Children
No Data