Merge "Use data-i18n for system font l10n"

This commit is contained in:
jenkins-bot
2013-11-13 09:32:48 +00:00
committed by Gerrit Code Review

View File

@@ -419,9 +419,11 @@
} }
} ); } );
// Using attr() instead of data() because jquery.i18n doesn't
// currently see latter.
$systemFont = $( '<option>' ) $systemFont = $( '<option>' )
.val( 'system' ) .val( 'system' )
.text( $.i18n( 'ext-uls-webfonts-system-font' ) ); .attr( 'data-i18n', 'ext-uls-webfonts-system-font' );
$fontSelector.append( $systemFont ); $fontSelector.append( $systemFont );
$systemFont.attr( 'selected', savedFont === 'system' || !savedFont ); $systemFont.attr( 'selected', savedFont === 'system' || !savedFont );