Handle dictionaries in the same way in localize

By now, not needed to handle dictionaries
in other way, because its root moves up directly
to core.

Change-Id: I90d6a67c90b00eea290f17e277fb13c0a6b0b5cd
This commit is contained in:
Zolnai Tamás 2012-11-16 18:19:13 +01:00 committed by Ztamas
parent 3777191e95
commit f6147cbe1c

View file

@ -267,15 +267,10 @@ void handleCommand(
{
const sal_Int32 nProjectInd = inPath.indexOf(project);
const OString relativPath =
project == OUString("dictionaries") ?
OUStringToOString(
inPath.copy( nProjectInd + 13,
inPath.lastIndexOf('/')- nProjectInd - 13),
RTL_TEXTENCODING_UTF8 ) :
OUStringToOString(
inPath.copy( nProjectInd,
inPath.lastIndexOf('/')- nProjectInd),
RTL_TEXTENCODING_UTF8 );
OUStringToOString(
inPath.copy( nProjectInd,
inPath.lastIndexOf('/')- nProjectInd),
RTL_TEXTENCODING_UTF8 );
rPoOutPut.writeHeader(PoHeader(relativPath));
}