public class TransFileResolver extends Object
Constructor and Description |
---|
TransFileResolver(ConfigurableProjectOptions opts) |
Modifier and Type | Method and Description |
---|---|
File |
getTransFile(UnqualifiedSrcDocName unqualifiedSrcDocName,
LocaleMapping localeMapping)
Determines where to store the translation file for a given source
document and locale mapping.
|
File |
resolveTransFile(QualifiedSrcDocName qualifiedSrcDocName,
LocaleMapping localeMapping,
com.google.common.base.Optional<String> translationFileExtension)
Determines where to store the translation file for a given source
document and locale mapping.
|
public TransFileResolver(ConfigurableProjectOptions opts)
public File resolveTransFile(QualifiedSrcDocName qualifiedSrcDocName, LocaleMapping localeMapping, com.google.common.base.Optional<String> translationFileExtension)
qualifiedSrcDocName
- source document name with extensionlocaleMapping
- locale mappingpublic File getTransFile(UnqualifiedSrcDocName unqualifiedSrcDocName, LocaleMapping localeMapping)
unqualifiedSrcDocName
- source document name without extensionlocaleMapping
- locale mappingCopyright © 2015 Zanata Project. All rights reserved.