LibreOffice Module l10ntools (master) 1
|
Class for localization of *.properties files. More...
#include <propmerge.hxx>
Public Member Functions | |
PropParser (OString sInputFile, OString sLang, const bool bMergeMode) | |
~PropParser () | |
bool | isInitialized () const |
void | Extract (const OString &rPOFile) |
void | Merge (const OString &rMergeSrc, const OString &rDestinationFile) |
Private Attributes | |
std::vector< OString > | m_vLines |
OString | m_sSource |
OString | m_sLang |
bool | m_bIsInitialized |
Class for localization of *.properties files.
Parse *.properties files, extract translatable strings and merge translated strings.
Definition at line 23 of file propmerge.hxx.
PropParser::PropParser | ( | OString | sInputFile, |
OString | sLang, | ||
const bool | bMergeMode | ||
) |
Definition at line 91 of file propmerge.cxx.
References bMergeMode, m_bIsInitialized, m_sSource, and m_vLines.
PropParser::~PropParser | ( | ) |
Definition at line 124 of file propmerge.cxx.
void PropParser::Extract | ( | const OString & | rPOFile | ) |
Definition at line 129 of file propmerge.cxx.
References PoOfstream::APP, PoOfstream::close(), PoOfstream::isOpen(), m_bIsInitialized, m_sSource, m_vLines, nIndex, o3tl::trim(), and common::writePoEntry().
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
|
inline |
Definition at line 37 of file propmerge.hxx.
References m_bIsInitialized.
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
void PropParser::Merge | ( | const OString & | rMergeSrc, |
const OString & | rDestinationFile | ||
) |
Definition at line 160 of file propmerge.cxx.
References MergeEntrys::GetQTZText(), MergeEntrys::GetText(), m_bIsInitialized, m_sLang, m_sSource, m_vLines, nIndex, ResData::sResTyp, and o3tl::trim().
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
|
private |
Definition at line 29 of file propmerge.hxx.
Referenced by Extract(), isInitialized(), Merge(), and PropParser().
|
private |
Definition at line 28 of file propmerge.hxx.
Referenced by Merge().
|
private |
Definition at line 27 of file propmerge.hxx.
Referenced by Extract(), Merge(), and PropParser().
|
private |
Definition at line 26 of file propmerge.hxx.
Referenced by Extract(), Merge(), and PropParser().