public TranslationProviderDisplayInfo GetDisplayInfo(Uri translationProviderUri, string translationProviderState)
        {
            var displayInfo = FileBasedTranslationProviderUi.GetDisplayInfo(new Uri("sdltm.file://" + translationProviderUri.AbsolutePath),
                                                                            translationProviderState);

            displayInfo.Name        = "AddSourceTm: " + displayInfo.Name;
            displayInfo.TooltipText = "AddSourceTm: " + displayInfo.TooltipText;
            return(displayInfo);
        }
Esempio n. 2
0
        public TranslationProviderDisplayInfo GetDisplayInfo(Uri translationProviderUri, string translationProviderState)
        {
            var displayInfo = FileBasedTranslationProviderUi.GetDisplayInfo(translationProviderUri.GetInnerProviderUri(),
                                                                            translationProviderState);

            displayInfo.Name                    = "Record Source TU: " + displayInfo.Name;
            displayInfo.TooltipText             = "Record Source TU: " + displayInfo.TooltipText;
            displayInfo.TranslationProviderIcon = PluginResources.Approved;
            return(displayInfo);
        }
 public TranslationProviderDisplayInfo GetDisplayInfo(Uri translationProviderUri, string translationProviderState)
 {
     return(FileBasedTranslationProviderUi.GetDisplayInfo(new Uri("sdltm.file://" + translationProviderUri.AbsolutePath),
                                                          translationProviderState));
 }