Skip to content
Browse files

New English strings for Moodle 1.9.

--HG--
extra : convert_revision : svn%3Afc1ba2b4-ac28-11dd-a772-7fcde58d38e6/trunk%40154
  • Loading branch information...
1 parent b699e0f commit d074652a786b2f9085486e57841ce295dbd43e6a mihai.sucan committed Nov 16, 2009
Showing with 30 additions and 20 deletions.
  1. +5 −0 CHANGES
  2. +4 −2 src/lang/en.json
  3. +21 −18 src/tools/cbucket.js
View
5 CHANGES
@@ -1,3 +1,8 @@
+2009-11-16:
+===========
+
+- New English strings for Moodle 1.9.
+
2009-11-10:
===========
View
6 src/lang/en.json
@@ -1,5 +1,5 @@
{
- // $Date: 2009-11-08 19:50:19 +0200 $
+ // $Date: 2009-11-16 18:13:48 +0200 $
"errorInitBufferCanvas": "Error: adding the new buffer canvas element failed.",
"errorInitContext": "Error while initializing the canvas context.",
@@ -256,7 +256,9 @@
"proxyNotFound": "Could not find the PaintWeb image file proxy script.",
"malformedDataUrl": "The data URL is malformed.",
"failedMkdir": "Failed to create the PaintWeb images folder inside the Moodle data folder.",
- "saveFailed": "Saving the image failed."
+ "saveFailed": "Saving the image failed.",
+ "backingupImages": "Backing-up images saved with PaintWeb...",
+ "backupFailed": "An error occurred while copying images saved by PaintWeb."
}
// vim:set spell spl=en fo=wan1croql tw=80 ts=2 sw=2 sts=2 sta et ai cin fenc=utf-8 ff=unix ft=javascript:
View
39 src/tools/cbucket.js
@@ -17,7 +17,7 @@
* along with PaintWeb. If not, see <http://www.gnu.org/licenses/>.
*
* $URL: http://code.google.com/p/paintweb $
- * $Date: 2009-11-10 15:50:24 +0200 $
+ * $Date: 2009-11-10 20:12:34 +0200 $
*/
/**
@@ -92,7 +92,7 @@ pwlib.tools.cbucket = function (app) {
*
* @returns {Boolean} True if the image was modified, or false otherwise.
*/
- this.click = this.contextmenu = function (ev) {
+ this.click = function (ev) {
// Allow the user to right-click or hold down the Shift key to use the
// border color for filling the image.
if (ev.type === 'contextmenu' || ev.button === 2 || ev.shiftKey) {
@@ -125,6 +125,7 @@ pwlib.tools.cbucket = function (app) {
return true;
};
+ this.contextmenu = this.click;
/**
* Fill the image with the current fill color, starting from the <var>x</var>
@@ -200,22 +201,24 @@ pwlib.tools.cbucket = function (app) {
};
var pushLine = function (y, xl, xr, dy) {
- if (lines.length < stackMax && (y+dy) >= 0 && (y+dy) < iheight) {
- lines.push([y, xl, xr, dy]);
- }
- },
- pixelRead = function (x) {
- var r = 4 * x;
- return layerpix[r] + ';' + layerpix[r+1] + ';' + layerpix[r+2] + ';'
- + layerpix[r+3];
- },
- pixelWrite = function (x) {
- var r = 4 * x;
- layerpix[r] = pixelNew[0];
- layerpix[r+1] = pixelNew[1];
- layerpix[r+2] = pixelNew[2];
- layerpix[r+3] = pixelNew[3];
- };
+ if (lines.length < stackMax && (y+dy) >= 0 && (y+dy) < iheight) {
+ lines.push([y, xl, xr, dy]);
+ }
+ };
+
+ var pixelRead = function (x) {
+ var r = 4 * x;
+ return layerpix[r] + ';' + layerpix[r+1] + ';' + layerpix[r+2] + ';'
+ + layerpix[r+3];
+ };
+
+ var pixelWrite = function (x) {
+ var r = 4 * x;
+ layerpix[r] = pixelNew[0];
+ layerpix[r+1] = pixelNew[1];
+ layerpix[r+2] = pixelNew[2];
+ layerpix[r+3] = pixelNew[3];
+ };
};
// vim:set spell spl=en fo=wan1croqlt tw=80 ts=2 sw=2 sts=2 sta et ai cin fenc=utf-8 ff=unix:

0 comments on commit d074652

Please sign in to comment.
Something went wrong with that request. Please try again.