Skip to content

Migration

Eberhard Beilharz edited this page May 17, 2019 · 4 revisions

This document describes necessary changes in client code when updating to a newer major version of l10nsharp.

Migration to 4.0

Version 4.0 merges the two branches that use TMX or XLIFF files as translation memory. The translation memory system can now be selected by passing an additional parameter to the LocalizationManager.Create method and returns a ILocalizationManager object:

ILocalizationManager manager = LocalizationManager.Create(TranslationMemory.XLiff, lang,
    "SampleApp", "SampleApp", Application.ProductVersion, directoryOfInstalledXliffFiles,
    "MyCompany/L10NSharpSample", icon, "sample@example.com", "SampleApp");

Two public methods got renamed to be applicable for both XLIFF and TMX:

  • LocalizationManager.IgnoreExistingEnglishXliffFiles is now LocalizationManager.IgnoreExistingEnglishTranslationFiles
  • LocalizationManager.MergeExistingEnglishXliffFileIntoNew is now LocalizationManager.MergeExistingEnglishTranslationFileIntoNew
Clone this wiki locally