Interface IScopedTranslationProvider
- All Known Implementing Classes:
ScopedTranslationProvider
public interface IScopedTranslationProvider
Provides translating of IContextTranslationQuery based on the history
of already translated features in the project.
Unlike IHistoryTranslationProvider this provider allows prioritizing
of translation results based on scopes defined at DefaultQueryScopes.
Note that because of some overhead for searching and filtering translation results
by the given scope this provider may be much slower than
the IHistoryTranslationProvider. For details see the concrete implementation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe result of translation that contains all translations are grouped by translated value and filtered by specified scope. -
Method Summary
Modifier and TypeMethodDescriptionReturns a translation results have been found by the given query and filtered by the specified query scope.
-
Method Details
-
translate
Returns a translation results have been found by the given query and filtered by the specified query scope.The implementators must provide that the size of returned list must be limited by the following preferences parameter
HistoryTransPrefs.getMaxTranslations().- Parameters:
query- the query to search translations- Returns:
- a list of translations
-