20 << (
"Syntax: Treex [-r Root] -i FileIn -o FileOut"
21 " [-m DataBase] [-l Lang]\n"
22 " Root: Path to root of localized xhp files\n"
23 " FileIn: Source files (*.tree)\n"
24 " FileOut: Destination file (*.*)\n"
25 " DataBase: Mergedata (*.po)\n"
26 " Lang: Restrict the handled languages; one element of\n"
27 " (de, en-US, ...) or all\n");
36 if (std::strcmp(argv[
nIndex],
"-r") == 0)
38 sXHPRoot = OString( argv[
nIndex + 1] );
39 for(
int nIndex2 =
nIndex+3; nIndex2 < argc; nIndex2 = nIndex2 + 2 )
Class for localization of *.tree files.
void Extract(const OString &rPOFile)
Export strings.
bool isInitialized() const
void Merge(const OString &rMergeSrc, const OString &rDestinationFile, const OString &rXhpRoot)
Merge strings to tree file and update reference to help files(xhp)
bool handleArguments(int argc, char *argv[], HandledArgs &o_aHandledArgs)
Handle command line parameters.
Result type of handleArguments()
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)