mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Merge pull request #1129 from jetic83/master
Update strings.js solves issue #1124
This commit is contained in:
commit
2bde6a2ec4
@ -82,7 +82,7 @@ $.extend( $, /** @lends OpenSeadragon */{
|
||||
string = container[ props[ i ] ];
|
||||
|
||||
if ( typeof( string ) != "string" ) {
|
||||
$.console.debug( "Untranslated source string:", prop );
|
||||
$.console.log( "Untranslated source string:", prop );
|
||||
string = ""; // FIXME: this breaks gettext()-style convention, which would return source
|
||||
}
|
||||
|
||||
|
@ -22,11 +22,11 @@
|
||||
|
||||
test("getInvalidString", function() {
|
||||
equal(OpenSeadragon.getString("Greeting"), "", "Handled unset string key");
|
||||
ok(testLog.debug.contains('["Untranslated source string:","Greeting"]'),
|
||||
ok(testLog.log.contains('["Untranslated source string:","Greeting"]'),
|
||||
'Invalid string keys are logged');
|
||||
|
||||
equal(OpenSeadragon.getString("Errors"), "", "Handled requesting parent key");
|
||||
ok(testLog.debug.contains('["Untranslated source string:","Errors"]'),
|
||||
ok(testLog.log.contains('["Untranslated source string:","Errors"]'),
|
||||
'Invalid string parent keys are logged');
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user