[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [49] Fixed localisation for the mute button.
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [49] Fixed localisation for the mute button. |
Date: |
Wed, 27 Apr 2011 09:41:22 +0000 |
Revision: 49
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=49
Author: valkov
Date: 2011-04-27 09:41:21 +0000 (Wed, 27 Apr 2011)
Log Message:
-----------
Fixed localisation for the mute button. Was not properly migrated to the new
localisation function committed in r34. See also tasks #11056.
Revision Links:
--------------
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=34
Ticket Links:
------------
http://savannah.gnu.org/task/?11056
Modified Paths:
--------------
trunk/src/lm_interface_player_web_buttons.js
Modified: trunk/src/lm_interface_player_web_buttons.js
===================================================================
--- trunk/src/lm_interface_player_web_buttons.js 2011-04-26 10:15:50 UTC
(rev 48)
+++ trunk/src/lm_interface_player_web_buttons.js 2011-04-27 09:41:21 UTC
(rev 49)
@@ -342,53 +342,54 @@
mute.setAttribute("title", this._("Mute"));
mute.textContent ="M";
- mute.addEventListener("click", function(ev)
- {
- ev.preventDefault();
- var volume =
- self.player.toggle_mute.apply(self,[id]);
+ var mute_click_function = function(ev)
+ {
+ ev.preventDefault();
+ var volume =
+ self.player.toggle_mute.apply(self,[id]);
- if (/M/i.test(mute.textContent))
- {
- mute.textContent = "U";
- mute.setAttribute("title", this._("Unmute"));
+ if (/M/i.test(mute.textContent))
+ {
+ mute.textContent = "U";
+ mute.setAttribute("title", self._.apply(self, ["Unmute"]));
- mute.setAttribute(
- "class",
- "linterna-magica-controls-buttons "+
- "linterna-magica-controls-"+
- "buttons-unmute");
- volume_text.textContent = "0%";
- volume_text.setAttribute("title",
- this._("Muted"));
- volume_slider.setAttribute("title",
- this._("Muted"));
- volume_knob.setAttribute("title",
- this._("Muted"));
- }
- else
- {
- mute.textContent = "M";
- mute.setAttribute("title", this._("Mute"));
- volume_text.textContent = volume;
+ mute.setAttribute(
+ "class",
+ "linterna-magica-controls-buttons "+
+ "linterna-magica-controls-"+
+ "buttons-unmute");
- volume_text.removeAttribute("title");
- mute.setAttribute(
- "class",
- "linterna-magica-controls-buttons "+
- "linterna-magica-controls-"+
- "buttons-mute");
+ volume_text.textContent = "0%";
+ volume_text.setAttribute("title",
+ self._.apply(self, ["Muted"]));
+ volume_slider.setAttribute("title",
+ self._.apply(self, ["Muted"]));
+ volume_knob.setAttribute("title",
+ self._.apply(self, ["Muted"]));
+ }
+ else
+ {
+ mute.textContent = "M";
+ mute.setAttribute("title", self._.apply(self, ["Mute"]));
+ volume_text.textContent = volume;
- volume_slider.
- setAttribute("title",
- this._("Volume control"));
- volume_knob.
- setAttribute("title",
- this._("Volume control"));
- }
+ volume_text.removeAttribute("title");
+ mute.setAttribute(
+ "class",
+ "linterna-magica-controls-buttons "+
+ "linterna-magica-controls-"+
+ "buttons-mute");
+ volume_slider.
+ setAttribute("title",
+ self._.apply(self, ["Volume control"]));
+ volume_knob.
+ setAttribute("title",
+ self._.apply(self, ["Volume control"]));
+ }
+ };
- },false);
+ mute.addEventListener("click", mute_click_function, false);
controls.appendChild(mute);
var fullscreen = document.createElement("a");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [49] Fixed localisation for the mute button.,
Ivaylo Valkov <=