Apply string localization
authorhyun lee <hyunn.lee@samsung.com>
Thu, 24 Oct 2013 10:53:50 +0000 (19:53 +0900)
committerhyun lee <hyunn.lee@samsung.com>
Thu, 24 Oct 2013 10:53:50 +0000 (19:53 +0900)
Change-Id: Ie20e73548e30b8e385ce258df70a38cf35f72ab7
Signed-off-by: hyun lee <hyunn.lee@samsung.com>
src/controls/FWebCtrl_InputPickerPopup.cpp
src/controls/FWebCtrl_UserConfirmPopup.cpp

index b528c42..1b83049 100755 (executable)
@@ -129,6 +129,9 @@ _InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType, Ti
 
        int space = dateHeight/4;
 
+       _SystemResource* pSysResource = _SystemResource::GetInstance();
+       SysAssertf(pSysResource != null, "Failed to get _SystemResource instance");
+
        switch (__inputType)
        {
        case EWK_INPUT_TYPE_TIME :
@@ -137,7 +140,7 @@ _InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType, Ti
                r = CreatePopup();
                SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
-               SetTitleText("Select time");
+               SetTitleText(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_HEADER_SET_TIME"));
 
                r = pEditTime->Construct(Point(0, 0), L"Time (Default format) :");
                SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
@@ -157,7 +160,7 @@ _InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType, Ti
                r = CreatePopup();
                SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
-               SetTitleText("Select datetime");
+               SetTitleText(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_HEADER_SET_DATE_AND_TIME_ABB"));
 
                r = pEditDate->Construct(Point(0, 0), L"Date (Default format) :");
                SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
@@ -189,7 +192,7 @@ _InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType, Ti
                __popupHeight = dateHeight + space + __panelHeight;
                r = CreatePopup();
                SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
-               SetTitleText("Select date");
+               SetTitleText(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_HEADER_SET_DATE"));
 
                r = pEditDate->Construct(Point(0, 0), L"Date (Default format) :");
                SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
@@ -220,9 +223,6 @@ _InputPickerPopup::Construct(const String& strDate, Ewk_Input_Type inputType, Ti
 
        idList.Add(*(new Integer(ID_BUTTON_INPUT_DATE_SELECTION)));
 
-       _SystemResource* pSysResource = _SystemResource::GetInstance();
-       SysAssertf(pSysResource != null, "Failed to get _SystemResource instance");
-
        titleList.Add(*(new String(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_BUTTON_OK"))));
 
        r = CreateAndAddButtons(idList, titleList, __pButtonPanel);
@@ -284,7 +284,7 @@ _InputPickerPopup::Construct(const Color& color, Tizen::Web::Controls::_WebImpl*
        r = CreatePopup();
        SysTryReturn(NID_WEB_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
-       SetTitleText("Select color");
+       SetTitleText(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_HEADER_SET_COLOUR"));
 
        SetPropagatedKeyEventListener(this);
 
index 6f73c03..95ea782 100755 (executable)
@@ -263,8 +263,8 @@ _UserConfirmPopup::Construct(_UserConfirmMode userConfirmMode, void* pEventInfo,
        {
                idList.Add(*(new Integer(ID_BUTTON_USER_CANCEL)));
                idList.Add(*(new Integer(ID_BUTTON_USER_ALLOW)));
-               titleList.Add(*(new String(L"Leave")));
-               titleList.Add(*(new String(L"Stay")));
+               titleList.Add(*(new String(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_BUTTON_LEAVE"))));
+               titleList.Add(*(new String(pSysResource->GetString(_RESOURCE_DOMAIN_ID_OSP, "IDS_TPLATFORM_BUTTON_STAY"))));
        }
        else
        {