diff --git a/src/guiengine/widgets/bubble_widget.cpp b/src/guiengine/widgets/bubble_widget.cpp index 14289227e..dc8e09ec4 100644 --- a/src/guiengine/widgets/bubble_widget.cpp +++ b/src/guiengine/widgets/bubble_widget.cpp @@ -50,7 +50,11 @@ void BubbleWidget::add() IGUIStaticText* irrwidget; irrwidget = GUIEngine::getGUIEnv()->addStaticText(message.c_str(), m_shrinked_size, false, true /* word wrap */, m_parent, (m_focusable ? getNewID() : getNewNoFocusID())); - + +#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8) + irrwidget->setRightToLeft( translations->isRTLLanguage() ); +#endif + // find expanded bubble size int text_height = irrwidget->getTextHeight(); diff --git a/src/guiengine/widgets/label_widget.cpp b/src/guiengine/widgets/label_widget.cpp index c519e1128..03ca68fc4 100644 --- a/src/guiengine/widgets/label_widget.cpp +++ b/src/guiengine/widgets/label_widget.cpp @@ -20,6 +20,7 @@ #include "guiengine/engine.hpp" #include "guiengine/scalable_font.hpp" #include "guiengine/skin.hpp" +#include "utils/translation.hpp" #include @@ -62,6 +63,10 @@ void LabelWidget::add() irrwidget = GUIEngine::getGUIEnv()->addStaticText(message.c_str(), widget_size, false, word_wrap, m_parent, -1); +#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8) + irrwidget->setRightToLeft( translations->isRTLLanguage() ); +#endif + m_element = irrwidget; irrwidget->setTextAlignment( align, valign );