diff --git a/resources/js/ext.uls.displaysettings.js b/resources/js/ext.uls.displaysettings.js
index cc8ac175..a25d2e9a 100644
--- a/resources/js/ext.uls.displaysettings.js
+++ b/resources/js/ext.uls.displaysettings.js
@@ -20,38 +20,72 @@
( function ( $, mw, undefined ) {
"use strict";
- var template = '
'
- + ''
- + ''
- + ''
+ var template = '' // Top "Display settings" title
+ + '
'
+ + '
'
+ + ''
+ + '
'
+
+ // "Language for display", title above the buttons row
+ ''
+ '
'
- + '
'
+ + '
'
+
+ // UI languages buttons row
+ + ''
+
+ // "Font settings" title
+ + ''
+ + '
'
+ + '
'
+ + ''
+ + '
'
+
+ // Webfonts enabling chechbox with label
+ + ''
- + ''
+
+ // Font selection title
+ + ''
+ + '
'
+ + ''
+
+ // Menus font selection dropdown with label
+ ''
- + '
'
+ + '
'
+ + ''
+ + '
'
+ '
'
+ '
'
+
+ // Content font selection dropdown with label
+ ''
- + '
'
+ + '
'
+ + ''
+ + '
'
+ '
'
+ '
'
+
+ // Separator
+ ''
+
+ // Apply and Cancel buttons
+ ''; // FIXME i18n and too much hardcoding.
@@ -242,13 +276,15 @@
var $systemFont = $( "