diff options
author | Jan Arve Saether <jan-arve.saether@theqtcompany.com> | 2015-02-04 11:23:55 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-02-06 10:00:22 +0000 |
commit | dc511a947ab16429682e4887f95f94fc8bcb6fd2 (patch) | |
tree | 619ccd9e31e1bd4c01172e966809c6af09670596 /translations/qtbase_ru.ts | |
parent | 22680333bd6748106afce258255e1201ae5493f8 (diff) | |
download | qttranslations-dc511a947ab16429682e4887f95f94fc8bcb6fd2.tar.gz |
Fix regression from Qt4 with layout direction
In order to resolve Right-to-Left layout from the translation file, we
used to check if the result of QApplication::tr("QT_LAYOUT_DIRECTION")
was the string "RTL".
During modularization this changed context (using the wrong
QCoreApplication::tr()), but the translation files didn't change.
It turns out that it didn't make much sense to use that context,
since the layout direction can only be changed on the QGuiApplication.
We therefore have changed the context to QGuiApplication (in qtbase),
and we must therefore update the relevant translation files.
Change-Id: Iacea23da32a3d4128c259d7e8aad1823801dfd5f
Task-number: QTBUG-43447
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'translations/qtbase_ru.ts')
-rw-r--r-- | translations/qtbase_ru.ts | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/translations/qtbase_ru.ts b/translations/qtbase_ru.ts index bb3fe4c..ee6e30a 100644 --- a/translations/qtbase_ru.ts +++ b/translations/qtbase_ru.ts @@ -374,11 +374,6 @@ Press ESC to cancel</source> <comment>QSystemSemaphore</comment> <translation>%1: ошибка ftok</translation> </message> - <message> - <source>QT_LAYOUT_DIRECTION</source> - <comment>Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout.</comment> - <translation>LTR</translation> - </message> </context> <context> <name>QCupsJobWidget</name> @@ -1412,6 +1407,14 @@ Do you want to delete it anyway?</source> </message> </context> <context> + <name>QGuiApplication</name> + <message> + <source>QT_LAYOUT_DIRECTION</source> + <comment>Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout.</comment> + <translation>LTR</translation> + </message> +</context> +<context> <name>QHostInfo</name> <message> <source>No host name given</source> |