public class PoReader2 extends Object
| Modifier and Type | Field and Description |
|---|---|
static ContentType |
PO_CONTENT_TYPE |
static com.google.common.collect.ImmutableSet<String> |
PO_HEADER_FIELDS |
static com.google.common.collect.ImmutableSet<String> |
POT_HEADER_FIELDS |
| Constructor and Description |
|---|
PoReader2() |
PoReader2(boolean mapIdFromMsgctxt) |
| Modifier and Type | Method and Description |
|---|---|
TranslationsResource |
extractTarget(InputSource inputSource)
Extract contents of a PO file and convert to a TranslationsResource.
|
Resource |
extractTemplate(InputSource inputSource,
LocaleId sourceLocaleId,
String docName)
Extract contents of a POT file and convert to a Resource.
|
public static final ContentType PO_CONTENT_TYPE
public static final com.google.common.collect.ImmutableSet<String> POT_HEADER_FIELDS
public static final com.google.common.collect.ImmutableSet<String> PO_HEADER_FIELDS
public PoReader2(boolean mapIdFromMsgctxt)
public PoReader2()
public TranslationsResource extractTarget(InputSource inputSource)
inputSource - PO file to be extractedpublic Resource extractTemplate(InputSource inputSource, LocaleId sourceLocaleId, String docName)
inputSource - POT file to be extractedsourceLocaleId - locale of POT, used to set metadata fieldsdocName - name of POT file (minus .pot extension) used to set metadata
fieldsCopyright © 2017 Zanata Project. All rights reserved.