Author: andrei_exadel
Date: 2008-03-27 11:37:40 -0400 (Thu, 27 Mar 2008)
New Revision: 7307
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Implement 'uploading' label internationalization
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
---
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-27
15:34:26 UTC (rev 7306)
+++
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-03-27
15:37:40 UTC (rev 7307)
@@ -70,18 +70,18 @@
/** Set of bundles that can be defined */
private static final String[] bundlesLables = { "add", "upload",
"stop",
"clear_all", "entry_cancel", "entry_clear",
"entry_stop", "done",
- "size_error", "transfer_error" };
+ "size_error", "transfer_error","progress" };
/** Default labels values */
private static final String[] defaultLables = { "Add...",
"<b>Upload</b>",
"<b>Stop</b>", "Clear All", "Cancel",
"Clear", "Stop",
- "<b>Done</b>", "File size restricted", "Transfer
error occuried" };
+ "<b>Done</b>", "File size restricted", "Transfer
error occuried","uploading"};
/** Set of attributes that can define label's value */
private static final String[] labelAttribues = { "addControlLabel",
"uploadControlLabel", "stopControlLabel",
"clearAllControlLabel",
"cancelEntryControlLabel", "clearControlLabel",
- "stopEntryControlLabel", null, null, null };
+ "stopEntryControlLabel", null, null, null, null };
/**
* Overrides standard JSF component method.
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-27
15:34:26 UTC (rev 7306)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-03-27
15:37:40 UTC (rev 7307)
@@ -16,7 +16,7 @@
FileUploadEntry.LABELS = {};
FileUploadEntry.LABELS[FileUploadEntry.INITIALIZED] = '';
FileUploadEntry.LABELS[FileUploadEntry.READY] = '';
-FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_IN_PROGRESS] = 'uploading';
+FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_IN_PROGRESS] = '';
FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_CANCELED] = '';
FileUploadEntry.LABELS[FileUploadEntry.UPLOAD_FORBIDDEN] = 'Uploading
forbidden';