diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2023-01-18 15:53:26 +0100 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2023-01-25 18:08:36 +0100 |
commit | 6972cf37228a9808ed225915b1fc4e38ff17b06a (patch) | |
tree | f51941512a8f82cc14577faf3fb7eab44af62761 /src | |
parent | aa551eebb5c276b0ee80a9b77b45715789e6f41a (diff) |
Doc: Link to lupdate instructions instead of specifying the command
When building with CMake, you now build the lupdate target to
run lupdate.
Change-Id: I72ab7bbc0a013f23c38bc04cdcd543e03feff65e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/doc/src/concepts/positioning/righttoleft.qdoc | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/quick/doc/src/concepts/positioning/righttoleft.qdoc b/src/quick/doc/src/concepts/positioning/righttoleft.qdoc index 330de14511..722d7b747b 100644 --- a/src/quick/doc/src/concepts/positioning/righttoleft.qdoc +++ b/src/quick/doc/src/concepts/positioning/righttoleft.qdoc @@ -114,27 +114,25 @@ The painting of these icons can be mirrored with a dedicated \c mirror property: \section1 Default Layout Direction -The \l {QtQml::Qt::application}{Qt.application.layoutDirection} property can be used to query the active layout direction of the -application. It is based on QGuiApplication::layoutDirection(), which most commonly determines the layout -direction from the active language translation file. +Use the \l {QtQml::Qt::application}{Qt.application.layoutDirection} property +to query the active layout direction of the application. It inherits +QGuiApplication::layoutDirection(), which determines the layout direction from +the active language translation file. -To define the layout direction for a particular locale, declare the dedicated string literal -\c QT_LAYOUT_DIRECTION in context \c QGuiApplication as either "LTR" or "RTL". +To define the layout direction for a particular locale, declare the dedicated +string literal \c QT_LAYOUT_DIRECTION in the context \c QGuiApplication as +either \c LTR or \c RTL. -You can do this by first introducing this line +First, introduce this line somewhere in your QML source code: \code qsTr("QT_LAYOUT_DIRECTION","QGuiApplication"); \endcode -somewhere in your QML source code and calling \c lupdate to generate the translation source file. +Then use \l {Using lupdate} to generate the translation source file. -\code -lupdate myapp.qml -ts myapp.ts -\endcode - -This will append the following declaration to the translation file, where you can fill in either "LTR" or -"RTL" as the translation for the locale. +This appends the following declaration to the translation file, where you can +enter either \c LTR or \c RTL as the translation for the locale. \code <context> |