From 28033fe6f35558b017b52f2564e3a2149cdd0c51 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 6 Apr 2014 22:32:48 +0200 Subject: webm i18n --- js/webm-settings.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'js/webm-settings.js') diff --git a/js/webm-settings.js b/js/webm-settings.js index 6b1ed45c..cecf36d0 100644 --- a/js/webm-settings.js +++ b/js/webm-settings.js @@ -1,5 +1,9 @@ /* This file is dedicated to the public domain; you may do as you wish with it. */ +if (typeof _ == 'undefined') { + var _ = function(a) { return a; }; +} + // Default settings var defaultSettings = { "videoexpand": true, @@ -35,11 +39,11 @@ var settingsMenu = document.createElement("div"); settingsMenu.style.textAlign = "right"; settingsMenu.style.background = "inherit"; -settingsMenu.innerHTML = 'WebM Settings' +settingsMenu.innerHTML = ''+_('WebM Settings')+'' + '
' - + '
' - + '
' - + '
' + + '
' + + '
' + + '
' + '
'; function refreshSettings() { -- cgit v1.3