Merge "ApiSandbox: Move labels outside progress bars"
[lhc/web/wiklou.git] / resources / src / ooui-local.js
1 ( function () {
2 var isMobile;
3 // Connect OOUI to MediaWiki's localisation system
4 OO.ui.getUserLanguages = mw.language.getFallbackLanguageChain;
5 OO.ui.msg = mw.msg;
6 // Connect OOUI's deprecation warnings to MediaWiki's logging system
7 OO.ui.warnDeprecation = function ( message ) {
8 mw.track( 'mw.deprecate', 'oojs-ui' );
9 mw.log.warn( message );
10 };
11 OO.ui.isMobile = function () {
12 if ( isMobile === undefined ) {
13 isMobile = !!mw.config.get( 'wgMFMode' );
14 }
15 return isMobile;
16 };
17 }() );