1 // Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "popup/popup_string.h"
11 namespace popup_string {
13 const char kTextDomainWrt[] = "wrt";
15 const char kPopupTitleAuthRequest[] = "IDS_SA_BODY_USER_AUTHENTICATION";
16 const char kPopupTitleCert[] = "IDS_BR_HEADER_CERTIFICATE_INFO";
17 const char kPopupTitleGeoLocation[] = "IDS_WRT_OPT_ACCESS_USER_LOCATION";
18 const char kPopupTitleUserMedia[] = "IDS_WRT_OPT_USE_USER_MEDIA";
19 const char kPopupTitleWebNotification[] =
20 "IDS_BR_HEADER_WEB_NOTIFICATION";
21 const char kPopupTitleWebStorage[] = "IDS_WRT_OPT_USE_STORE_WEB_DATA";
23 const char kPopupBodyAuthRequest[] =
24 "IDS_BR_BODY_DESTINATIONS_AUTHENTICATION_REQUIRED";
25 const char kPopupBodyCert[] =
26 "IDS_BR_BODY_SECURITY_CERTIFICATE_PROBLEM_MSG";
27 const char kPopupBodyGeoLocation[] =
28 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_ACCESS_YOUR_LOCATION_INFORMATION";
29 const char kPopupBodyUserMedia[] =
30 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_USE_THE_MEDIA_FILES_STORED_ON_YOUR_DEVICE";
31 const char kPopupBodyWebNotification[] =
32 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_DISPLAY_NOTIFICATIONS";
33 const char kPopupBodyWebStorage[] =
34 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_SAVE_A_LARGE_AMOUNT_OF_DATA_ON_YOUR_DEVICE";
36 const char kPopupCheckRememberPreference[] =
37 "IDS_BR_BODY_REMEMBER_PREFERENCE";
39 const char kPopupLabelAuthusername[] = "IDS_BR_BODY_AUTHUSERNAME";
40 const char kPopupLabelPassword[] = "IDS_BR_BODY_AUTHPASSWORD";
42 const char kPopupButtonOk[] = "IDS_BR_SK_OK";
43 const char kPopupButtonLogin[] = "IDS_BR_BODY_LOGIN";
44 const char kPopupButtonCancel[] = "IDS_BR_SK_CANCEL";
45 const char kPopupButtonAllow[] = "IDS_BR_OPT_ALLOW";
46 const char kPopupButtonDeny[] = "IDS_COM_BODY_DENY";
48 std::string GetText(const std::string& msg_id) {
49 return dgettext(kTextDomainWrt, msg_id.c_str());
52 } // namespace popup_string