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:
@@ -419,9 +419,11 @@
|
||||
}
|
||||
} );
|
||||
|
||||
// Using attr() instead of data() because jquery.i18n doesn't
|
||||
// currently see latter.
|
||||
$systemFont = $( '<option>' )
|
||||
.val( 'system' )
|
||||
.text( $.i18n( 'ext-uls-webfonts-system-font' ) );
|
||||
.attr( 'data-i18n', 'ext-uls-webfonts-system-font' );
|
||||
$fontSelector.append( $systemFont );
|
||||
$systemFont.attr( 'selected', savedFont === 'system' || !savedFont );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user