Project translation memory not in translator package

I create a project with a project translation memory. To be sure, that the project translation memory I check in the project folder and we can see it here:

Now I want to create a project package for my translator: 

The project translation memory is missing!

In order to get the TM into the translator package, I have to go on pre-translate files. Not here!!! 

I go here …

And click on “Finish”. And now I create the package

There is not logic reason for this behaviour.

The problem is, that this trick does not work with the API. I tried to use

AutomaticTaskTemplateIds.PopulateProjectTranslationMemories

and other methods but I did not find a way to include the TM.

Please help!

R.

Martin

Parents Reply
  • Dear Evzen

    thanks a million for your answer. We added the following lines to our code, but unfortunately it is not working:

    options.IncludeReports = true;
    options.IncludeExistingReports = true;

    This is our PackageSettingsBlock:

    private ProjectPackageCreationOptions GetPackageOptions()
    {
    #region "ProjectPackageCreationOptions"
    ProjectPackageCreationOptions options = new ProjectPackageCreationOptions();
    #endregion

    #region "IncludeRessources"
    options.IncludeAutoSuggestDictionaries = false;
    options.IncludeMainTranslationMemories = false;

    options.RemoveServerBasedTranslationMemories = false;
    options.IncludeTermbases = true;
    #endregion

    #region "RemoveAutomatedTranslationProviders"
    options.RemoveAutomatedTranslationProviders = false;
    #endregion

    #region "RecomputeAnalysisStatistics"
    options.RecomputeAnalysisStatistics = true;
    options.ProjectTranslationMemoryOptions = ProjectTranslationMemoryPackageOptions.CreateNew;

    options.IncludeReports = true;
    options.IncludeExistingReports = true;
    #endregion

    #region "ReturnOptions"
    return options;
    #endregion
    }

    Do you have an idea why it might fail?

    Best regards and thanks a lot in advance
Children