Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion qml/pages/HelpPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,21 @@ Page {
"} " +
"</style>"

property string helpfile

Component.onCompleted: {
switch (Qt.locale().name.substring(0,2)) {
case "ru": // show Russian help in Russian locale (we can add other languages too)
helpfile = "../help-ru.html";
break;
default:
helpfile = "../help.html";
}
}

FileReader {
id: docReader
source: Qt.resolvedUrl("../help.html")
source: Qt.resolvedUrl(helpfile)
}

SilicaFlickable {
Expand Down