diff options
author | Petr Mladek <pmladek@suse.cz> | 2012-06-19 13:50:55 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-06-19 13:52:50 +0200 |
commit | aab6aba1482c56823b9fcc9a5f0ed0d131d37af0 (patch) | |
tree | 4af9fe4544644b8c6261d4a36c1fa8a4bdb29e6c /l10ntools | |
parent | c7b98f2fd8d892cd63503bc053ba533fd5e7ca02 (diff) |
fix help localization from source tarballs
localize tool need to get strings also from src directory
Change-Id: If8e94198002888d1fcf9b0b0416b7b5dcaa46386
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/localize.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index 2279dd9c0bfe..81d4875dc1b0 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -367,15 +367,15 @@ bool excludeDirectory(rtl::OUString const & directory) { /// Handle one directory in the hierarchy. /// -/// Ignores symlinks and instead explicitly descends into clone/*, as the -/// Cygwin symlinks are not supported by osl::Directory on Windows. +/// Ignores symlinks and instead explicitly descends into clone/* or src/*, +/// as the Cygwin symlinks are not supported by osl::Directory on Windows. /// /// @param url the absolute file URL of this directory /// /// @param level 0 if this is either the root directory that contains the -/// projects or one of the clone/* directories that contain the additional -/// projects; -1 if this is the clone directory; 1 if this is a project -/// directory; 2 if this is a directory inside a project +/// projects or one of the clone/* or src/* directories that contain the +/// additional projects; -1 if this is the clone directory; 1 if this +/// is a project directory; 2 if this is a directory inside a project /// /// @param project the name of the project (empty and ignored if level <= 0) /// @@ -411,7 +411,7 @@ void handleDirectory( throw false; //TODO } switch (level) { - case -1: // the clone directory + case -1: // the clone or src directory if (stat.getFileType() == osl::FileStatus::Directory) { handleDirectory( stat.getFileURL(), 0, rtl::OUString(), rtl::OUString()); @@ -423,7 +423,7 @@ void handleDirectory( handleDirectory( stat.getFileURL(), 1, stat.getFileName(), rtl::OUString()); - } else if ( stat.getFileName() == "clone" ) + } else if ( stat.getFileName() == "clone" || stat.getFileName() == "src" ) { handleDirectory( stat.getFileURL(), -1, rtl::OUString(), |