Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
prop: fix PO_LOCALE handling
  • Loading branch information
perexg committed Jun 23, 2015
1 parent 3f4405e commit fdd3c70
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/prop.c
Expand Up @@ -310,8 +310,13 @@ prop_read_value
htsmsg_add_s64(m, name, *(int64_t *)val);
break;
case PT_STR:
if ((s = *(const char **)val))
htsmsg_add_str(m, name, lang ? tvh_gettext_lang(lang, s) : s);
if (optmask & PO_LOCALE) {
if ((s = *(const char **)val))
htsmsg_add_str(m, name, lang ? tvh_gettext_lang(lang, s) : s);
} else {
if ((s = *(const char **)val))
htsmsg_add_str(m, name, s);
}
break;
case PT_DBL:
htsmsg_add_dbl(m, name, *(double*)val);
Expand Down

0 comments on commit fdd3c70

Please sign in to comment.