LibreOffice Module l10ntools (master) 1
|
Class for localization of *.ulf files. More...
#include <lngmerge.hxx>
Public Member Functions | |
LngParser (OString sLngFile) | |
~LngParser () | |
void | CreatePO (const OString &rPOFile) |
void | Merge (const OString &rPOFile, const OString &rDestinationFile, std::string_view rLanguage) |
Static Private Member Functions | |
static bool | isNextGroup (OString &sGroup_out, std::string_view sLine_in) |
static void | ReadLine (std::string_view rLine_in, OStringHashMap &rText_inout) |
static void | WritePO (PoOfstream &aPOStream, OStringHashMap &rText_inout, const OString &rActFileName, const OString &rID) |
Private Attributes | |
std::vector< OString > | mvLines |
OString | sSource |
std::vector< OString > | aLanguages |
Class for localization of *.ulf files.
Parse *.ulf files, extract translatable strings and merge translated strings.
Definition at line 40 of file lngmerge.hxx.
LngParser::LngParser | ( | OString | sLngFile | ) |
Definition at line 61 of file lngmerge.cxx.
LngParser::~LngParser | ( | ) |
Definition at line 88 of file lngmerge.cxx.
void LngParser::CreatePO | ( | const OString & | rPOFile | ) |
Definition at line 92 of file lngmerge.cxx.
References PoOfstream::APP, PoOfstream::close(), isNextGroup(), PoOfstream::isOpen(), mvLines, nPos, ReadLine(), sSource, Text, and WritePO().
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
|
staticprivate |
void LngParser::Merge | ( | const OString & | rPOFile, |
const OString & | rDestinationFile, | ||
std::string_view | rLanguage | ||
) |
Definition at line 151 of file lngmerge.cxx.
References aLanguages, o3tl::equalsIgnoreAsciiCase(), MergeDataFile::GetLanguages(), MergeDataFile::GetMergeEntrys(), MergeEntrys::GetText(), i, mvLines, n, nPos, ResData::sResTyp, sSource, Text, and o3tl::trim().
Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().
|
staticprivate |
Definition at line 138 of file lngmerge.cxx.
References o3tl::getToken(), o3tl::starts_with(), and o3tl::trim().
Referenced by CreatePO().
|
staticprivate |
Definition at line 124 of file lngmerge.cxx.
References common::writePoEntry().
Referenced by CreatePO().
|
private |
Definition at line 45 of file lngmerge.hxx.
Referenced by Merge().
|
private |
Definition at line 43 of file lngmerge.hxx.
Referenced by CreatePO(), LngParser(), and Merge().
|
private |
Definition at line 44 of file lngmerge.hxx.
Referenced by CreatePO(), LngParser(), and Merge().