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
This commit is contained in:
Chris Adams 2013-06-27 18:08:06 -04:00
parent 464428cef7
commit 494bf7fe41

View File

@ -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) {