[app] Set window title

This commit is contained in:
Slava Monich 2015-08-26 13:24:51 +03:00
parent a56349fe11
commit 7d891bfd45
6 changed files with 20 additions and 0 deletions

View file

@ -37,6 +37,9 @@ ApplicationWindow {
id: window
allowedOrientations: Orientation.All
//% "Books"
readonly property string title: qsTrId("books-app-name")
property variant currentShelf: mainPage.currentShelf
BooksSettings { id: globalSettings }

View file

@ -170,6 +170,7 @@ void ZLibrary::run(ZLApplication* aApp)
root->setContextProperty("PointsPerInch", BOOKS_PPI);
root->setContextProperty("MaximumHintCount", 1);
view->setTitle(qtTrId("books-app-name"));
view->setSource(QUrl::fromLocalFile(qml));
view->show();
HDEBUG("started");

View file

@ -3,6 +3,10 @@
<TS version="2.1" language="fi">
<context>
<name></name>
<message id="books-app-name">
<source>Books</source>
<translation>Kirjat</translation>
</message>
<message id="book-view-back">
<source>Back to library</source>
<translation>Takaisin kirjalistaan</translation>

View file

@ -3,6 +3,10 @@
<TS version="2.1" language="ru">
<context>
<name></name>
<message id="books-app-name">
<source>Books</source>
<translation>Книги</translation>
</message>
<message id="book-view-back">
<source>Back to library</source>
<translation>Вернуться в библиотеку</translation>

View file

@ -3,6 +3,10 @@
<TS version="2.1" language="sv">
<context>
<name></name>
<message id="books-app-name">
<source>Books</source>
<translation>Böcker</translation>
</message>
<message id="book-view-back">
<source>Back to library</source>
<translation>Tillbaka till biblioteket</translation>

View file

@ -3,6 +3,10 @@
<TS version="2.1" language="en">
<context>
<name></name>
<message id="books-app-name">
<source>Books</source>
<translation>Books</translation>
</message>
<message id="book-view-back">
<source>Back to library</source>
<translation>Back to library</translation>