Kaydet (Commit) 3ec0b7ed authored tarafından jan iversen's avatar jan iversen

genlang .xhp ==> .pot identical

Checked .xhp conversion.

The current tools have a problem with windows
get an error "cannot convert path to URL", seems
it was not tested on windows.

Also "make translations" does not cover submodules.

Change-Id: I36a0a3643eb40ff9c02735acdf79498d16691069
üst aad4aa64
......@@ -55,8 +55,6 @@ void convert_tree::doExecute()
string sLang;
string sFile, sFile2;
mcMemory.setResourceName("help_section");
if (mbMergeMode)
throw l10nMem::showError("Merge not implemented");
......
......@@ -54,6 +54,8 @@ void convert_xhp::doExecute()
string sLang;
string sFile, sFile2;
mcMemory.setResourceName("help");
// prepare list with languages
miCntLanguages = mcMemory.prepareMerge();
if (mbMergeMode) {
......@@ -245,8 +247,12 @@ void convert_xhp::closeTransTag(char *yytext)
if (meExpectValue == VALUE_IS_VALUE || meExpectValue == VALUE_IS_VALUE_TAG) {
if (msCollector.size() && msCollector != "-")
mcMemory.setSourceKey(miLineNo, msSourceFile, msKey, msCollector, mbMergeMode);
if (msCollector.size() && msCollector != "-") {
string newString(msCollector);
if (newString[newString.length() - 1] == ' ')
newString = newString.substr(0, newString.length() - 1);
mcMemory.setSourceKey(miLineNo, msSourceFile, msKey, newString, mbMergeMode);
}
msKey.clear();
iType = 2;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment