diff --git a/js/common/view/GravityAndDampingControlNode.js b/js/common/view/GravityAndDampingControlNode.js index 1c490850..d795b1a3 100644 --- a/js/common/view/GravityAndDampingControlNode.js +++ b/js/common/view/GravityAndDampingControlNode.js @@ -23,6 +23,7 @@ define( function( require ) { var NumberControl = require( 'SCENERY_PHET/NumberControl' ); var PhetFont = require( 'SCENERY_PHET/PhetFont' ); var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + var SunConstants = require( 'SUN/SunConstants' ); var Text = require( 'SCENERY/nodes/Text' ); var Util = require( 'DOT/Util' ); var Vector2 = require( 'DOT/Vector2' ); @@ -127,7 +128,7 @@ define( function( require ) { } } ), valuePattern: StringUtils.fillIn( gravityValueString, { - gravity: '{0}' + gravity: SunConstants.VALUE_NAMED_PLACEHOLDER } ), valueFont: new PhetFont( { size: 14 } ), useRichText: true, diff --git a/js/common/view/MassValueControlPanel.js b/js/common/view/MassValueControlPanel.js index e3b9fb7e..c5980e42 100644 --- a/js/common/view/MassValueControlPanel.js +++ b/js/common/view/MassValueControlPanel.js @@ -16,6 +16,7 @@ define( function( require ) { var MassesAndSpringsConstants = require( 'MASSES_AND_SPRINGS/common/MassesAndSpringsConstants' ); var Node = require( 'SCENERY/nodes/Node' ); var NumberControl = require( 'SCENERY_PHET/NumberControl' ); + var SunConstants = require( 'SUN/SunConstants' ); var Panel = require( 'SUN/Panel' ); var PhetFont = require( 'SCENERY_PHET/PhetFont' ); var Property = require( 'AXON/Property' ); @@ -64,7 +65,7 @@ define( function( require ) { } ); var trackSizeProperty = new Property( options.basics ? new Dimension2( 132, 0.1 ) : new Dimension2( 125, 0.1 ) ); - var valuePattern = StringUtils.fillIn( massValueString, { mass: '{0}' }, { + var valuePattern = StringUtils.fillIn( massValueString, { mass: SunConstants.VALUE_NAMED_PLACEHOLDER }, { font: new PhetFont( { size: 14, weight: 'bold' } ) } ); var numberControl = new NumberControl( massString, massInGramsProperty, range, {