Index: trunk/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -179,7 +179,8 @@ |
180 | 180 | |
181 | 181 | var fonts = [], |
182 | 182 | languages = mw.webfonts.config.languages, |
183 | | - requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )], |
| 183 | + requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), |
| 184 | + mw.config.get( 'wgUserLanguage' ), mw.config.get( 'wgPageContentLanguage' )], |
184 | 185 | i, j; |
185 | 186 | |
186 | 187 | for ( i = 0; i < requested.length; i++ ) { |
— | — | @@ -229,7 +230,8 @@ |
230 | 231 | */ |
231 | 232 | loadFontsForLangAttr: function() { |
232 | 233 | var languages = mw.webfonts.config.languages; |
233 | | - var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )]; |
| 234 | + var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), |
| 235 | + mw.config.get( 'wgUserLanguage' ), mw.config.get( 'wgPageContentLanguage' )]; |
234 | 236 | var fontFamily = false; |
235 | 237 | // If there are tags with lang attribute, |
236 | 238 | $( 'body' ).find( '*[lang]' ).each( function( i, el) { |