Use data-i18n for system font l10n

This ensures that the translation is updated properly in the
language live preview.

Bug: 56888
Change-Id: I320c570f9272e8d191144f66a9cf0079c89d201d
This commit is contained in:
Niklas Laxström
2013-11-13 08:36:47 +00:00
parent 4c6229e9ba
commit de4f78a6be

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 );