diff options
Diffstat (limited to 'helpcompiler/source')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 6d00f67742e3..0bdde1848c68 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -373,7 +373,9 @@ void HelpLinker::link() throw( HelpProcessingException ) } else { - langsourceRoot.append('/' + lang + '/'); + langsourceRoot.append( "/" ); + if ( m_bUseLangRoot ) + langsourceRoot.append( lang + '/' ); xhpFile = fs::path(xhpFileName, fs::native); } @@ -732,6 +734,8 @@ void HelpLinker::main( std::vector<std::string> &args, if (!addFileUnderPath.empty() && !addFile.empty()) additionalFiles[addFileUnderPath] = addFile; } + else if (args[i].compare("-nolangroot") == 0) + m_bUseLangRoot = false; else helpFiles.push_back(args[i]); ++i; |