diff --git a/plap/plap_connection.c b/plap/plap_connection.c index d9770a9..a1386c8 100644 --- a/plap/plap_connection.c +++ b/plap/plap_connection.c @@ -28,6 +28,7 @@ #include "plap_dll.h" #include #include "resource.h" +#include "localization.h" /* A "class" that implements IConnectableCredentialProviderCredential */ diff --git a/plap/ui_glue.c b/plap/ui_glue.c index 3ac0274..f848654 100644 --- a/plap/ui_glue.c +++ b/plap/ui_glue.c @@ -501,10 +501,14 @@ RunProgressDialog(connection_t *c, PFTASKDIALOGCALLBACK cb_fn, LONG_PTR cb_data) { dmsg(L"Entry with profile = <%ls>", c->config_name); - const TASKDIALOG_FLAGS flags = TDF_SHOW_MARQUEE_PROGRESS_BAR|TDF_CALLBACK_TIMER|TDF_USE_HICON_MAIN; + TASKDIALOG_FLAGS flags = TDF_SHOW_MARQUEE_PROGRESS_BAR|TDF_CALLBACK_TIMER|TDF_USE_HICON_MAIN; wchar_t main_text[256]; wchar_t details_btn_text[256]; + if (LangFlowDirection() == 1) + { + flags |= TDF_RTL_LAYOUT; + } _sntprintf_0(main_text, L"%ls %ls", LoadLocalizedString(IDS_MENU_CONNECT), c->config_name); LoadLocalizedStringBuf(details_btn_text, _countof(main_text), IDS_MENU_STATUS);