From 494bf7fe416bc72dd39cf1cd6804da2648b2dc04 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Thu, 27 Jun 2013 18:08:06 -0400 Subject: [PATCH] strings: add logging for untranslated source messages This should probably be changed to be closer to the goal of being like gettext but we can at least tell developers when we clobber the string --- src/strings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strings.js b/src/strings.js index 2b1f0c79..fba93de0 100644 --- a/src/strings.js +++ b/src/strings.js @@ -80,7 +80,8 @@ $.extend( $, { string = container[ props[ i ] ]; if ( typeof( string ) != "string" ) { - string = ""; + $.console.debug( "Untranslated source string:", prop ); + string = ""; // FIXME: this breaks gettext()-style convention, which would return source } return string.replace(/\{\d+\}/g, function(capture) {