public class PoReader2 extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.zanata.common.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 |
|---|---|
org.zanata.rest.dto.resource.TranslationsResource |
extractTarget(InputSource inputSource)
Extract contents of a PO file and convert to a TranslationsResource.
|
org.zanata.rest.dto.resource.Resource |
extractTemplate(InputSource inputSource,
org.zanata.common.LocaleId sourceLocaleId,
String docName)
Extract contents of a POT file and convert to a Resource.
|
public static final org.zanata.common.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 org.zanata.rest.dto.resource.TranslationsResource extractTarget(InputSource inputSource)
inputSource - PO file to be extractedpublic org.zanata.rest.dto.resource.Resource extractTemplate(InputSource inputSource, org.zanata.common.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 © 2013 Zanata Project. All Rights Reserved.