2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "runtime/popup_string.h"
24 namespace popup_string {
26 const char kTextDomainWrt[] = "wrt";
28 const char kPopupTitleAuthRequest[] = "IDS_SA_BODY_USER_AUTHENTICATION";
29 const char kPopupTitleCert[] = "IDS_BR_HEADER_CERTIFICATE_INFO";
30 const char kPopupTitleGeoLocation[] = "IDS_WRT_OPT_ACCESS_USER_LOCATION";
31 const char kPopupTitleUserMedia[] = "IDS_WRT_OPT_USE_USER_MEDIA";
32 const char kPopupTitleWebNotification[] =
33 "IDS_BR_HEADER_WEB_NOTIFICATION";
34 const char kPopupTitleWebStorage[] = "IDS_WRT_OPT_USE_STORE_WEB_DATA";
36 const char kPopupBodyAuthRequest[] =
37 "IDS_BR_BODY_DESTINATIONS_AUTHENTICATION_REQUIRED";
38 const char kPopupBodyCert[] =
39 "IDS_BR_BODY_SECURITY_CERTIFICATE_PROBLEM_MSG";
40 const char kPopupBodyGeoLocation[] =
41 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_ACCESS_YOUR_LOCATION_INFORMATION";
42 const char kPopupBodyUserMedia[] =
43 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_USE_THE_MEDIA_FILES_STORED_ON_YOUR_DEVICE";
44 const char kPopupBodyWebNotification[] =
45 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_DISPLAY_NOTIFICATIONS";
46 const char kPopupBodyWebStorage[] =
47 "IDS_WRT_BODY_ALLOWS_THIS_SITE_TO_SAVE_A_LARGE_AMOUNT_OF_DATA_ON_YOUR_DEVICE";
49 const char kPopupCheckRememberPreference[] =
50 "IDS_BR_BODY_REMEMBER_PREFERENCE";
52 const char kPopupLabelAuthusername[] = "IDS_BR_BODY_AUTHUSERNAME";
53 const char kPopupLabelPassword[] = "IDS_BR_BODY_AUTHPASSWORD";
55 const char kPopupButtonOk[] = "IDS_BR_SK_OK";
56 const char kPopupButtonLogin[] = "IDS_BR_BODY_LOGIN";
57 const char kPopupButtonCancel[] = "IDS_BR_SK_CANCEL";
58 const char kPopupButtonAllow[] = "IDS_BR_OPT_ALLOW";
59 const char kPopupButtonDeny[] = "IDS_COM_BODY_DENY";
61 std::string GetText(const std::string& msg_id) {
62 return dgettext(kTextDomainWrt, msg_id.c_str());
65 } // namespace popup_string