Kaydet (Commit) df6c9753 authored tarafından Andras Timar's avatar Andras Timar

tweak handling of extension descriptions

üst adb8868e
...@@ -685,9 +685,8 @@ void XRMResMerge::WorkOnDesc( ...@@ -685,9 +685,8 @@ void XRMResMerge::WorkOnDesc(
sSearch = ByteString("xlink:href=\""); sSearch = ByteString("xlink:href=\"");
sReplace = sSearch; sReplace = sSearch;
ByteString sLocDescFilename = sCur; ByteString sLocDescFilename = sDescFilename;
sLocDescFilename += ByteString("-"); sLocDescFilename.SearchAndReplace( "en-US", sCur );
sLocDescFilename += sDescFilename;
sSearch += sDescFilename; sSearch += sDescFilename;
sReplace += sLocDescFilename; sReplace += sLocDescFilename;
...@@ -697,8 +696,9 @@ void XRMResMerge::WorkOnDesc( ...@@ -697,8 +696,9 @@ void XRMResMerge::WorkOnDesc(
DirEntry aEntry( String( sOutputFile, RTL_TEXTENCODING_ASCII_US )); DirEntry aEntry( String( sOutputFile, RTL_TEXTENCODING_ASCII_US ));
aEntry.ToAbs(); aEntry.ToAbs();
ByteString sOutputDescFile( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US ); ByteString sOutputDescFile( aEntry.GetPath().GetFull(), RTL_TEXTENCODING_ASCII_US );
sOutputDescFile.SearchAndReplaceAll( "description.xml", "" ); ByteString sDel( DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US );
sOutputDescFile += sDel;
sOutputDescFile += sLocDescFilename; sOutputDescFile += sLocDescFilename;
sText.SearchAndReplaceAll( "\\n", "\n" ); sText.SearchAndReplaceAll( "\\n", "\n" );
ofstream file ( sOutputDescFile.GetBuffer() ); ofstream file ( sOutputDescFile.GetBuffer() );
......
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