Giter VIP home page Giter VIP logo

strasak's People

Contributors

cromica avatar evzenp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

strasak's Issues

Support for Studio 21

Hi there, I am using the new Studio 21 trial version but I get a ton of errors when using the scripts of the repo. Do you plan on releasing support for this latest update? Thanks!

Update TMs with SDLXLIFF files

New feature:
There're two good features about STraSAK:

  1. Create new file based translation memories
  2. Export the Trados Studio translation memories to TMX files

Is there something that can be added in the middle to update the created translation memories with their respective SDLXLIFF files from the main project? This avoids using third party apps like SDLXliff2Tmx (then exporting TMs to TMXs can do the trick).

Is it possible to use this with plugins?

Hello. No issue, but a question. Can I use your toolkit in combination with a Trados Studio plugin? Specifically for the StarTransit plugin to import PPF files? This plugin creates a Ribbon button to do the import.
Thanks for your time!

Can't use Machine Translation

Hi,

All functions of STraSAK are working perfectly fine, but when it comes to using Machine Translation, I get the following error:

Microsoft Windows [Version 10.0.18363.719]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Windows\system32>Call "C:\My Scripts\TS2017.cmd"  New-Project -Name "Sample_Project" -PrjLoc "\\Mac\Home\Desktop\Path\Project" -SrcLoc "\\Mac\Home\Desktop\Path\Source" -SrcLng "en-US" -TrgLng "nl-NL" -TMLoc "\\Mac\Home\Desktop\Path\Working TM" -LogLocation "\\Mac\Home\Desktop\Path\Log Files" -PrjTpl "\\Mac\Home\Desktop\Path\Template\Machine_Translation.sdltpl" -Pretranslate -Analyze

Creating new project...
log4net:ERROR Failed to find configuration section 'log4net' in the application's .config file. Check your .config file for the <log4net> and <configSections> elements. The configuration section should look like: <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />

Assigning TMs to project...
\\Mac\Home\Desktop\Path\Working TM\FileBased_TM_NL.sdltm added to project

Adding source files...
Done

Running preparation tasks...
Task Scan
   50%  Started
Information: There are multiple matching file type settings found: Graphics, XML: Any v 1.2.0.0
  100%  Completed
Task Scan successfully completed.
Task Convert to Translatable Format
  100%  Completed
Task Convert to Translatable Format successfully completed.
Task Copy to Target Languages
  100%  Completed
Task Copy to Target Languages successfully completed.
Done

Running automatic tasks...
    0%  Started
Error: Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'modernmt:///?sm=20629&k=NntgyUTgrPStYcXvlxKGMYcw8DDbklfVqhWUB+jf+WKaICIdBBrR39KfkEfJgTmodp7jIh0/sK0E1+gsOKD81d4MQXQeIoAMF8zIeRHmfmlDP222MhYuoTIoCNYZ1EVRoJzF7ituY4/4m8jyue+Cfxe6N7Rmu49LCJ8hMm+NxBk='..
Sdl.ProjectAutomation.Core.ProjectAutomationException: Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'modernmt:///?sm=20629&k=NntgyUTgrPStYcXvlxKGMYcw8DDbklfVqhWUB+jf+WKaICIdBBrR39KfkEfJgTmodp7jIh0/sK0E1+gsOKD81d4MQXQeIoAMF8zIeRHmfmlDP222MhYuoTIoCNYZ1EVRoJzF7ituY4/4m8jyue+Cfxe6N7Rmu49LCJ8hMm+NxBk='.. ---> Sdl.ProjectApi.ProjectApiException: Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'modernmt:///?sm=20629&k=NntgyUTgrPStYcXvlxKGMYcw8DDbklfVqhWUB+jf+WKaICIdBBrR39KfkEfJgTmodp7jIh0/sK0E1+gsOKD81d4MQXQeIoAMF8zIeRHmfmlDP222MhYuoTIoCNYZ1EVRoJzF7ituY4/4m8jyue+Cfxe6N7Rmu49LCJ8hMm+NxBk='.. ---> Sdl.ProjectAutomation.Core.ProjectAutomationException: Failed to create an instance of translation provider 'modernmt:///?sm=20629&k=NntgyUTgrPStYcXvlxKGMYcw8DDbklfVqhWUB+jf+WKaICIdBBrR39KfkEfJgTmodp7jIh0/sK0E1+gsOKD81d4MQXQeIoAMF8zIeRHmfmlDP222MhYuoTIoCNYZ1EVRoJzF7ituY4/4m8jyue+Cfxe6N7Rmu49LCJ8hMm+NxBk='. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: element
   at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
   at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T](Assembly element)
   at ModernMT.Core.PluginInfo..ctor()
   at ModernMT.Plugin.ModernMTProviderFactory..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Sdl.Core.PluginFramework.DefaultObjectResolver.CreateObject(Type objectType, XElement attributeElement)
   at Sdl.Core.PluginFramework.Implementation.Extension.CreateInstance()
   at Sdl.Core.PluginFramework.ObjectRegistry`2.CreateObjects()
   at Sdl.LanguagePlatform.TranslationMemoryApi.TranslationProviderManager.GetTranslationProviderFactories()
   at Sdl.LanguagePlatform.TranslationMemoryApi.TranslationProviderManager.CreateTranslationProvider(Uri translationProviderUri, String translationProviderState, ITranslationProviderCredentialStore credentialStore)
   at Sdl.ProjectApi.TranslationProviderCache.CreateTranslationProvider(Uri translationProviderUri, String translationProviderState, ITranslationProviderCredentialStore credentialStore)
   at Sdl.ProjectApi.TranslationProviderCache.GetTranslationProvider(Uri translationProviderUri, String translationProviderState, ITranslationProviderCredentialStore credentialStore, Boolean performUpdate, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.GetTranslationProviderLanguageDirection(TranslationProviderItem translationProviderItem, LanguagePair languageDirection, Boolean performUpdate, Boolean refreshCache)
   --- End of inner exception stack trace ---
   at Sdl.ProjectAutomation.FileBased.Internal.AutomationServerEvents.HandleTranslationProviderException(TranslationProviderItem translationProviderItem, Exception exception)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.GetTranslationProviderLanguageDirection(TranslationProviderItem translationProviderItem, LanguagePair languageDirection, Boolean performUpdate, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.CreateProjectCascadeEntries(IList`1 projectCascadeEntryDataList, LanguagePair languagePair, Boolean readOnly, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.CreateCascade(ProjectCascadeSettings projectCascadeSettings, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.LanguageDirectionHelper.CreateCascade(ILanguageDirection languageDirection, ProjectCascadeEntryDataFilterFunction filter, IComparer`1 sort, Boolean readOnly, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.<>c__DisplayClass5_0.<GetRecognizers>b__0()
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetOrCreateObject(String key, Func`1 createObject)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetRecognizers(ILanguageDirection languageDirection)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetLanguageTools(ILanguageDirection languageDirection)
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisDataCollectorX.CreateAnalysisDataStorage(ILanguageDirection languageDirection, AnalysisTaskSettings analysisSettings, TranslationMemorySettings translationMemorySettings, ILanguageObjectsCache objectsCache)
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisDataCollectorX.Initialize(IList`1 files)
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.CreateAnalysisDataCollectors()
   at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.InitializeTask(IExecutingAutomaticTask task)
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.InitializeTaskImplementations()
   --- End of inner exception stack trace ---
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.InitializeTaskImplementations()
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.Execute()
   at Sdl.ProjectApi.Implementation.AutomaticTaskExecuter.Execute()
   --- End of inner exception stack trace ---
Task Pre-translate Files+Analyze Files failed.
Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'modernmt:///?sm=20629&k=NntgyUTgrPStYcXvlxKGMYcw8DDbklfVqhWUB+jf+WKaICIdBBrR39KfkEfJgTmodp7jIh0/sK0E1+gsOKD81d4MQXQeIoAMF8zIeRHmfmlDP222MhYuoTIoCNYZ1EVRoJzF7ituY4/4m8jyue+Cfxe6N7Rmu49LCJ8hMm+NxBk='..

Saving logs...
Done

Saving project...
Done

C:\Windows\system32>

Tried with Studio 2019, but the same.
I'm using ModernMT, but I guess it's the same for all other machine translation providers.
The strange part is that even if I try to create a project without specifying the MT, I still get the same error. Only after I uninstall the plugin I don't get this error.

Not sure if this is a plugin error as creating the same manually works fine.

Any idea how to solve this?

Thanks a lot,
Sergei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.