give priority to field label over i18n string, if it exists (fix #1070)

This commit is contained in:
Sacha Greif 2015-08-01 11:56:09 +09:00
parent e5399458ea
commit bcf05a124b

View file

@ -26,7 +26,7 @@ Template.user_info.helpers({
if (Telescope.getNestedProperty(user, fieldName)) {
var field = schema._schema[fieldName];
var item = {
label: i18n.t(fieldName.replace("telescope.", "")),
label: !!field.label ? field.label: i18n.t(fieldName.replace("telescope.", "")),
value: Telescope.getNestedProperty(user, fieldName)
};
if (!!field.template) {