Class TranslationMemoryUpgradeUtil
Utility class for upgrading file-based translation memories and checking if they need maintenance
Inheritance
System.Object
TranslationMemoryUpgradeUtil
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class TranslationMemoryUpgradeUtil
Constructors
TranslationMemoryUpgradeUtil()
Declaration
public TranslationMemoryUpgradeUtil()
Methods
FineGrainedAlignmentSupportRecommended(ITranslationMemory)
Determine if file grained alingment (FGA) support is recommended
Declaration
public static bool FineGrainedAlignmentSupportRecommended(ITranslationMemory translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemory | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryRequiresAlignment(ITranslationProvider)
Determine if TM has content that should be aligned (FGA)
Declaration
public static bool TranslationMemoryRequiresAlignment(ITranslationProvider translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationProvider | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryRequiresModelRebuild(ITranslationProvider)
Determines if TM requires model rebuild
Declaration
public static bool TranslationMemoryRequiresModelRebuild(ITranslationProvider translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationProvider | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryRequiresReindex(ITranslationProvider)
Determine if TM is indicating it has content that needs reindexing
Declaration
public static bool TranslationMemoryRequiresReindex(ITranslationProvider translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationProvider | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryRequiresUpgrade(ITranslationProvider)
Determine if the TM requires upgrade
Declaration
public static bool TranslationMemoryRequiresUpgrade(ITranslationProvider translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationProvider | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryRequiresUpgradeOrFGASupportRecommended(ITranslationProvider)
Determine if the TM requires upgrade or FGA support is recommended
Declaration
public static bool TranslationMemoryRequiresUpgradeOrFGASupportRecommended(ITranslationProvider translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationProvider | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryWillRequireReindexAfterUpgrade(ITranslationMemory)
Determine if the TM will require a reindex after upgrade
Declaration
public static bool TranslationMemoryWillRequireReindexAfterUpgrade(ITranslationMemory translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemory | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
TranslationMemoryWithAsianLanguageRequiresUpgrade(ITranslationMemory)
Determine if the TM requires an upgrade with an Asian source language
Declaration
public static bool TranslationMemoryWithAsianLanguageRequiresUpgrade(ITranslationMemory translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemory | translationMemory |
Returns
Type | Description |
---|---|
System.Boolean |
UpgradeTranslationMemory(ITranslationMemory)
Modifies the translation memory settings so as to prompt in-place upgrade when saved
Declaration
public static void UpgradeTranslationMemory(ITranslationMemory translationMemory)
Parameters
Type | Name | Description |
---|---|---|
ITranslationMemory | translationMemory |
UseCharacterCounts(CultureCode)
Diferentiate between Asian/non Asian source culture
Declaration
public static bool UseCharacterCounts(CultureCode cultureCode)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | cultureCode |
Returns
Type | Description |
---|---|
System.Boolean |