From d2122d9c9c9e2e12bb0e9bed289c41f5da65034d Mon Sep 17 00:00:00 2001
From: alexcjohnson <alex@plot.ly>
Date: Wed, 17 Jan 2018 09:48:37 -0500
Subject: [PATCH] localize "new text"

---
 src/components/annotations/common_defaults.js | 2 +-
 src/plots/plots.js                            | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/annotations/common_defaults.js b/src/components/annotations/common_defaults.js
index 62be89b24af..db58ad09b9f 100644
--- a/src/components/annotations/common_defaults.js
+++ b/src/components/annotations/common_defaults.js
@@ -24,7 +24,7 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
     var borderWidth = coerce('borderwidth');
     var showArrow = coerce('showarrow');
 
-    coerce('text', showArrow ? ' ' : 'new text');
+    coerce('text', showArrow ? ' ' : fullLayout._dfltTitle.annotation);
     coerce('textangle');
     Lib.coerceFont(coerce, 'font', fullLayout.font);
 
diff --git a/src/plots/plots.js b/src/plots/plots.js
index a54052cf16e..bec27b731ab 100644
--- a/src/plots/plots.js
+++ b/src/plots/plots.js
@@ -300,7 +300,8 @@ plots.supplyDefaults = function(gd) {
         plot: _(gd, 'Click to enter Plot title'),
         x: _(gd, 'Click to enter X axis title'),
         y: _(gd, 'Click to enter Y axis title'),
-        colorbar: _(gd, 'Click to enter Colorscale title')
+        colorbar: _(gd, 'Click to enter Colorscale title'),
+        annotation: _(gd, 'new text')
     };
     newFullLayout._traceWord = _(gd, 'trace');