snprintf(strColor, 256, "<color=#%02x%02x%02x%02x>", r, g, b, a);
// ea_theme_font_get(code,&fontStyle,&fontSize);
-
+/*
if (fontStyle) {
snprintf(strFont, 256, "<font=Tizen:style=%s><font_size=%d>", fontStyle, fontSize);
} else {
free(fontStyle);
fontStyle = NULL;
}
+*/
return strRet;
}
switch (index) {
case 1:
- sprintf(body_str, gettext("LDS_IME_BODY_INFORMATION_PROVISION_AGREEMENT_P1_LEGALPHRASE_WC1"), " <a href=\"file://local-nuance-tos\">","</a>","<a href=\"http://www.vlingo.com/wap/samsung-asr-privacy-addendum\">","</a>");
+ snprintf(body_str, sizeof(body_str), gettext("LDS_IME_BODY_INFORMATION_PROVISION_AGREEMENT_P1_LEGALPHRASE_WC1"), " <a href=\"file://local-nuance-tos\">","</a>","<a href=\"http://www.vlingo.com/wap/samsung-asr-privacy-addendum\">","</a>");
terms = tagging(std::string(body_str));
terms = replaceAll(terms , std::string("\n"), std::string("<br>"));
elm_entry_entry_set(elm_layout_content_get(_obj, "elm.swallow.content"), terms.c_str());
// 2. Set String ID depend on Count Code
char* popup_title_id = NULL;
char* popup_body_id = NULL;
- if (country_code) {
- if (!strcmp(country_code, "CN")) {
- popup_title_id = TOS_TITLE_CHN;
- popup_body_id = TOS_N66_BODY_CHN;
- } else {
- popup_title_id = TOS_TITLE;
- popup_body_id = TOS_N66_BODY;
- }
- } else {
+// if (country_code) {
+// if (!strcmp(country_code, "CN")) {
+// popup_title_id = TOS_TITLE_CHN;
+// popup_body_id = TOS_N66_BODY_CHN;
+// } else {
+// popup_title_id = TOS_TITLE;
+// popup_body_id = TOS_N66_BODY;
+// }
+// } else {
PRINTFUNC(DLOG_ERROR, "Getting Count Code is Error!!! Set default TOS Text!");
popup_title_id = TOS_TITLE;
popup_body_id = TOS_N66_BODY;
- }
+// }
// ea_cutlink_h cutlink;
// ea_cutlink_create(&cutlink, entry, EA_CUTLINK_USER);
terms = tagging(std::string(gettext(txt)));
elm_entry_entry_set(entry, terms.c_str());
- if (txt)
- free(txt);
+// if (txt)
+// free(txt);
if (markup)
free(markup);
// 2. Set String ID depend on Count Code
char* popup_title_id = NULL;
char* popup_body_id = NULL;
- if (country_code) {
- if (!strcmp(country_code, "CN")) {
- popup_title_id = TOS_TITLE_CHN;
- popup_body_id = TOS_N66_BODY_CHN;
- } else {
- popup_title_id = TOS_TITLE;
- popup_body_id = TOS_N66_BODY;
- }
- } else {
+// if (country_code) {
+// if (!strcmp(country_code, "CN")) {
+// popup_title_id = TOS_TITLE_CHN;
+// popup_body_id = TOS_N66_BODY_CHN;
+// } else {
+// popup_title_id = TOS_TITLE;
+// popup_body_id = TOS_N66_BODY;
+// }
+// } else {
PRINTFUNC(DLOG_ERROR, "Getting Count Code is Error!!! Set default TOS Text!");
popup_title_id = TOS_TITLE;
popup_body_id = TOS_N66_BODY;
- }
+// }
//------------outer layout----------------------
terms = tagging(std::string(gettext(txt)));
elm_entry_entry_set(entry, terms.c_str());
- if (txt)
- free(txt);
+// if (txt)
+// free(txt);
if (markup)
free(markup);