diff --git a/js/ISLCA11yStrings.js b/js/ISLCA11yStrings.js index c2d6a94..5e7b161 100644 --- a/js/ISLCA11yStrings.js +++ b/js/ISLCA11yStrings.js @@ -155,7 +155,7 @@ define( require => { value: 'Vectors {{size}}.' }, vectorSizeForcesValuePattern: { - value: 'Vectors {{size}}, forces now {{forceValue}} {{units}}.' + value: '{{vectorsCapitalized}} {{size}}, forces now {{forceValue}} {{units}}.' }, vectorsSizeClausePattern: { value: '{{vectors}} {{size}}' diff --git a/js/view/describers/ForceDescriber.js b/js/view/describers/ForceDescriber.js index dae2fce..95ea008 100644 --- a/js/view/describers/ForceDescriber.js +++ b/js/view/describers/ForceDescriber.js @@ -75,8 +75,6 @@ define( require => { const valuePatternString = ISLCA11yStrings.valuePattern.value; // helper functions - - const getScientificNotationTextFromPattern = ( forceValue, mantissaDecimalPlaces, pattern ) => { const { mantissa, exponent } = ScientificNotationNode.toScientificNotation( forceValue, { mantissaDecimalPlaces: mantissaDecimalPlaces } ); const mantissaPattern = mantissa < 0 ? negativeValuePatternString : valuePatternString; // negative values are possible in Coulomb's Law @@ -144,6 +142,9 @@ define( require => { this.vectorChangeForcesNowValuePatternString = StringUtils.fillIn( vectorChangeForcesNowValuePatternString, { vectorsCapitalized: options.vectorsCapitalizedString } ); + this.vectorSizeForcesValuePatternString = StringUtils.fillIn( vectorSizeForcesValuePatternString, { + vectorsCapitalized: options.vectorsCapitalizedString + } ); this.vectorsSizeClausePatternString = StringUtils.fillIn( vectorsSizeClausePatternString, { vectors: options.forceArrowsLower } ); @@ -293,7 +294,7 @@ define( require => { } /** - * Returns the string 'Vectors {{size}}, forces {{forceValue}} {{units}}.' + * Returns the string 'Vectors {{size}}, forces now {{forceValue}} {{units}}.' * * @returns {string} */ @@ -301,7 +302,7 @@ define( require => { const size = this.vectorSize; const forceValue = this.formattedForce; const units = this.units; - return StringUtils.fillIn( vectorSizeForcesValuePatternString, { size: size, forceValue: forceValue, units: units } ); + return StringUtils.fillIn( this.vectorSizeForcesValuePatternString, { size: size, forceValue: forceValue, units: units } ); } /**