mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +03:00
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:
parent
464428cef7
commit
494bf7fe41
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user