summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gamil.com>2012-11-16 18:19:13 +0100
committerZtamas <zolnaitamas2000g@gmail.com>2012-11-17 14:31:15 +0100
commitf6147cbe1c6097314a91299cb8a352bb40eeb4d6 (patch)
tree7094b51a034a664aea877ae2a34ba488bd002907 /l10ntools
parent3777191e95400d76bd7dcd71ed1249a6a001317a (diff)
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
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/localize.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 107d516cd354..8b3e94fbd0ef 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -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));
}