Bug fix about incorrect value at 'window.navigator.language'.
authorTaejeong Lee <taejeong.lee@samsung.com>
Fri, 11 Jan 2013 08:41:12 +0000 (17:41 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Fri, 11 Jan 2013 08:41:12 +0000 (17:41 +0900)
 * Changed to perform setting appcore region information before forking WebProcess.

[Issue#] N/A
[Problem] incorrect value at 'window.navigator.language'
[Cause] N/A
[Solution] Changed to perform setting appcore region information before forking WebProcess.

Change-Id: I598de8e430c253adfdd9f18c1da7b3ccae5068a6

src/wrt-client/CMakeLists.txt
src/wrt-client/wrt-client.cpp

index ae644ee..16eecce 100644 (file)
@@ -24,6 +24,7 @@ SET(WRT_CLIENT_SRCS
 PKG_CHECK_MODULES(CLIENT_DEP
     dpl-wrt-dao-ro
     wrt-plugin-js-overlay
+    appcore-efl
     REQUIRED
 )
 
index b04c4d1..4f4e823 100644 (file)
@@ -14,6 +14,7 @@
  *    limitations under the License.
  */
 #include "wrt-client.h"
+#include <appcore-efl.h>
 #include <cstdlib>
 #include <cstdio>
 #include <string>
@@ -684,6 +685,8 @@ int main(int argc,
         if (!tizenId.empty())
         {
             LogDebug("Launching by fork mode");
+            // Language env setup
+            appcore_set_i18n("wrt-client", NULL);
             ewk_init();
             ewk_set_arguments(argc, argv);
             setenv("WRT_LAUNCHING_PERFORMANCE", "1", 1);