summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant/lib')
-rw-r--r--tools/assistant/lib/lib.pro13
-rw-r--r--tools/assistant/lib/qhelpprojectdata.cpp6
2 files changed, 17 insertions, 2 deletions
diff --git a/tools/assistant/lib/lib.pro b/tools/assistant/lib/lib.pro
index 26d3456..e84cf31 100644
--- a/tools/assistant/lib/lib.pro
+++ b/tools/assistant/lib/lib.pro
@@ -69,3 +69,16 @@ HEADERS += qhelpenginecore.h \
# access to clucene
HEADERS += qhelpsearchindexwriter_clucene_p.h \
qhelpsearchindexreader_clucene_p.h
+
+TR_DIR = $$PWD/../../../translations
+TRANSLATIONS = \
+ $$TR_DIR/qt_help_cs.ts \
+ $$TR_DIR/qt_help_da.ts \
+ $$TR_DIR/qt_help_de.ts \
+ $$TR_DIR/qt_help_hu.ts \
+ $$TR_DIR/qt_help_ja.ts \
+ $$TR_DIR/qt_help_pl.ts \
+ $$TR_DIR/qt_help_ru.ts \
+ $$TR_DIR/qt_help_zh_CN.ts \
+ $$TR_DIR/qt_help_zh_TW.ts \
+ $$TR_DIR/qt_help_fr.ts
diff --git a/tools/assistant/lib/qhelpprojectdata.cpp b/tools/assistant/lib/qhelpprojectdata.cpp
index b0faf0c..5247847 100644
--- a/tools/assistant/lib/qhelpprojectdata.cpp
+++ b/tools/assistant/lib/qhelpprojectdata.cpp
@@ -327,10 +327,12 @@ bool QHelpProjectDataPrivate::hasValidSyntax(const QString &nameSpace,
QUrl url;
const QLatin1String scheme("qthelp");
url.setScheme(scheme);
- url.setHost(nameSpace);
+ const QString canonicalNamespace = nameSpace.toLower();
+ url.setHost(canonicalNamespace);
url.setPath(vFolder);
- const QString expectedUrl(scheme + QLatin1String("://") + nameSpace + slash + vFolder);
+ const QString expectedUrl(scheme + QLatin1String("://")
+ + canonicalNamespace + slash + vFolder);
return url.isValid() && url.toString() == expectedUrl;
}