public class GlossaryCSVWriter extends AbstractGlossaryPullWriter
| Constructor and Description |
|---|
GlossaryCSVWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(OutputStream stream,
List<GlossaryEntry> entries,
LocaleId srcLocale,
List<LocaleId> transLocales) |
void |
write(Writer fileWriter,
List<GlossaryEntry> entries,
LocaleId srcLocale,
List<LocaleId> transLocales)
This output a csv files of given
transLocales. |
getGlossaryTermpublic void write(@Nonnull OutputStream stream, @Nonnull List<GlossaryEntry> entries, @Nonnull LocaleId srcLocale, @Nonnull List<LocaleId> transLocales) throws IOException
IOException#write(Writer, List, LocaleId, List)}public void write(@Nonnull Writer fileWriter, @Nonnull List<GlossaryEntry> entries, @Nonnull LocaleId srcLocale, @Nonnull List<LocaleId> transLocales) throws IOException
transLocales.
First column - source string of srcLocale from GlossaryEntry.glossaryTerms
Second last column (part of speech)- GlossaryEntry.pos
Last column (description)- GlossaryEntry.description
Between first and second last column - translations of transLocales from GlossaryEntry.glossaryTermsIOExceptionCopyright © 2018 Zanata Project. All rights reserved.