Author: ekohl
Date: Mon May 20 18:10:30 2013
New Revision: 59056
URL:
http://svn.reactos.org/svn/reactos?rev=59056&view=rev
Log:
[WELCOME]
Adding RTL support for welcome.
Patch by Baruch Rutman.
CORE-7123 #resolve #comment Committed in revision 59056.
Modified:
trunk/reactos/base/setup/welcome/lang/he-IL.rc
trunk/reactos/base/setup/welcome/welcome.c
Modified: trunk/reactos/base/setup/welcome/lang/he-IL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/welcome/lang/he…
==============================================================================
--- trunk/reactos/base/setup/welcome/lang/he-IL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/setup/welcome/lang/he-IL.rc [iso-8859-1] Mon May 20 18:10:30 2013
@@ -12,7 +12,6 @@
// IDS_CHECKTEXT "×ר×× ×××× ×× ×©××"
// IDS_CLOSETEXT "×צ×××"
END
-/* The topic pane needs to be in the right side because Hebrew is written in opposite of
english */
/* Topic buttons */
STRINGTABLE DISCARDABLE
Modified: trunk/reactos/base/setup/welcome/welcome.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/welcome/welcome…
==============================================================================
--- trunk/reactos/base/setup/welcome/welcome.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/welcome/welcome.c [iso-8859-1] Mon May 20 18:10:30 2013
@@ -36,6 +36,7 @@
#include <winuser.h>
#include <reactos/version.h>
#include <tchar.h>
+#include <winnls.h>
#include "resource.h"
@@ -115,6 +116,16 @@
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpszCmdLine);
+
+ switch (GetUserDefaultUILanguage())
+ {
+ case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
+ SetProcessDefaultLayout(LAYOUT_RTL);
+ break;
+
+ default:
+ break;
+ }
hInstance = hInst;