Try our conversational search powered by Generative AI!

Is there a way to create a Phrase Dictionary for MS Translator?

Jim
Jim
Vote:
 

Is there a way to create a Phrase Dictionary for MS Translator that will work with the EPiServer translation service?  We need to block certain phrases from being translated.

#251103
Mar 22, 2021 14:04
Vote:
 

Not sure I understand your problem. You can write your own Localization provider that can integrate with MS Translator.

Is this something you want to achieve? 

#251433
Edited, Mar 25, 2021 21:38
Jim
Vote:
 

Hi Naveed,

Maybe.  This is in relation to using the Microsoft Translator service editors use to translate pages via the CMS interface.  We need a way to get the translator to not translate certain phrases, prefereably from a list. 

I don't know if writing an Epi localization provider is needed in this case, but I'm not sure.

#251434
Mar 25, 2021 21:48
Vote:
 

I think you are talking about Episerver Language translator Add-On 

https://world.episerver.com/add-ons/episerver-languages/ 

https://webhelp.episerver.com/latest/en/addons/languages.htm 

Not sure if they have the functionality to exclude certain phrases from translation. you probably need to contact epi support.

2nd Option - This add-on creates translations from the master language and after reviewing editor normally publish the page.

You can create a Phrase Dictionary to exclude from translation in cms

After that listen to Publish event (example link below) and checks if any translation contains your prohibited phrase then exclude it.

https://world.episerver.com/blogs/Daniel-Ovaska/Dates/2019/6/content-events-in-episerver/ 

I hope that helps

#251436
Mar 25, 2021 22:16
Jim
Vote:
 

Thanks for the info.  It looks like I'll have to pre-process the pages before translating to wrap each phrase in <span class="notranslate"> and strip the tag out of the translated content (unless that's done already).

#251456
Mar 25, 2021 23:16
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.