Commit 5796c2d0 authored by Eric Windham's avatar Eric Windham

added localization for some strings

parent 8262bba1
......@@ -397,7 +397,7 @@ define( ['views/app/drawer/mergeTagsContent', 'views/app/drawer/settingError'],
if( 0 == minMaxHelperStr.length ) {
minMaxHelperStr = "(";
}
minMaxHelperStr = minMaxHelperStr + "Min. Value: " + this.min_val;
minMaxHelperStr = minMaxHelperStr + nfi18n.minVal + ": " + this.min_val;
}
// if we have a max value output it to the helper text
......@@ -409,12 +409,12 @@ define( ['views/app/drawer/mergeTagsContent', 'views/app/drawer/settingError'],
// else, we know we have a min so add a comma
minMaxHelperStr = minMaxHelperStr + ", ";
}
minMaxHelperStr = minMaxHelperStr + " Max Value: " + this.max_val;
minMaxHelperStr = minMaxHelperStr + nfi18n.maxVal + ": " + this.max_val;
}
// if not an empty string, then add ')'
if( 0 < minMaxHelperStr.length ) {
minMaxHelperStr = minMaxHelperStr + " )";
minMaxHelperStr = minMaxHelperStr + ")";
}
return minMaxHelperStr;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -76,6 +76,8 @@ return apply_filters( 'ninja_forms_i18n_builder', array(
' retrieve data for this field!' ),
'delete' => __( 'Delete' ),
'cancel' => __( 'Cancel' ),
'minVal' => __( 'Min Value' ),
'maxVal' => __( 'Max Value' ),
'valueChars' => __( 'In order to prevent errors, values may only contain'
. ' a specific subset of characters ( a-z, 0-9, -, _, @, space ). You'
. ' can use the option label in your success message(s) or email action(s) by adding'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment