change whiteboard translation
This commit is contained in:
@@ -211,6 +211,9 @@ define(function () {
|
|||||||
out.canvas_enable = "Enable draw";
|
out.canvas_enable = "Enable draw";
|
||||||
out.canvas_width = "Width";
|
out.canvas_width = "Width";
|
||||||
out.canvas_opacity = "Opacity";
|
out.canvas_opacity = "Opacity";
|
||||||
|
out.canvas_opacityLabel = "opacity: {0}";
|
||||||
|
out.canvas_widthLabel = "Width: {0}";
|
||||||
|
|
||||||
|
|
||||||
// File manager
|
// File manager
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ window.canvas = canvas;
|
|||||||
var updateBrushWidth = function () {
|
var updateBrushWidth = function () {
|
||||||
var val = $width.val();
|
var val = $width.val();
|
||||||
canvas.freeDrawingBrush.width = Number(val);
|
canvas.freeDrawingBrush.width = Number(val);
|
||||||
$widthLabel.text(val);
|
$widthLabel.text(val)
|
||||||
|
$widthLabel.text(Cryptpad.Messages._getKey("canvas_widthLabel", [val]))
|
||||||
$widthLabel.text("width: " + $width.val())
|
$widthLabel.text("width: " + $width.val())
|
||||||
createCursor();
|
createCursor();
|
||||||
console.log("change size")
|
console.log("change size")
|
||||||
@@ -111,7 +112,7 @@ window.canvas = canvas;
|
|||||||
brush.opacity = Number(val);
|
brush.opacity = Number(val);
|
||||||
canvas.freeDrawingBrush.color = Colors.hex2rgba(brush.color, brush.opacity);
|
canvas.freeDrawingBrush.color = Colors.hex2rgba(brush.color, brush.opacity);
|
||||||
$opacityLabel.text(val)
|
$opacityLabel.text(val)
|
||||||
$opacityLabel.text("opacity: " + $opacity.val());
|
$opacityLabel.text(Cryptpad.Messages._getKey("canvas_opacityLabel", [val]));
|
||||||
createCursor();
|
createCursor();
|
||||||
console.log("change opacity")
|
console.log("change opacity")
|
||||||
console.log("opacity: " + $opacity.val())
|
console.log("opacity: " + $opacity.val())
|
||||||
|
|||||||
Reference in New Issue
Block a user