CC-1960: Internationalize Airtime / Support translations
-added i18n for plupload
This commit is contained in:
parent
9a1a7b2e97
commit
96b87d23e0
|
@ -16,10 +16,12 @@ class PluploadController extends Zend_Controller_Action
|
||||||
global $CC_CONFIG;
|
global $CC_CONFIG;
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
$locale = Application_Model_Preference::GetLocale();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/plupload.full.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/plupload.full.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/jquery.plupload.queue.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/jquery.plupload.queue.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/plupload.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/plupload.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/i18n/'.$locale.'.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/plupload.queue.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'/css/plupload.queue.css?'.$CC_CONFIG['airtime_version']);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,9 +56,8 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$(window).bind('beforeunload', function(){
|
$(window).bind('beforeunload', function(){
|
||||||
if(uploadProgress){
|
if(uploadProgress){
|
||||||
return $.i18n._("You are currently uploading files.")+"\n"+
|
return sprintf($.i18n._("You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?"),
|
||||||
$.i18n._("Going to another screen will cancel the upload process.")+"\n"+
|
"\n", "\n");
|
||||||
$.i18n._("Are you sure you want to leave the page?");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
// English
|
||||||
|
plupload.addI18n({
|
||||||
|
'Select files' : 'Select files',
|
||||||
|
'Add files to the upload queue and click the start button.' : 'Add files to the upload queue and click the start button.',
|
||||||
|
'Filename' : 'Filename',
|
||||||
|
'Status' : 'Status',
|
||||||
|
'Size' : 'Size',
|
||||||
|
'Add files' : 'Add files',
|
||||||
|
'Stop current upload' : 'Stop current upload',
|
||||||
|
'Start uploading queue' : 'Start uploading queue',
|
||||||
|
'Uploaded %d/%d files': 'Uploaded %d/%d files',
|
||||||
|
'N/A' : 'N/A',
|
||||||
|
'Drag files here.' : 'Drag files here.',
|
||||||
|
'File extension error.': 'File extension error.',
|
||||||
|
'File size error.': 'File size error.',
|
||||||
|
'Init error.': 'Init error.',
|
||||||
|
'HTTP Error.': 'HTTP Error.',
|
||||||
|
'Security error.': 'Security error.',
|
||||||
|
'Generic error.': 'Generic error.',
|
||||||
|
'IO error.': 'IO error.',
|
||||||
|
'Stop Upload': 'Stop Upload',
|
||||||
|
'Add Files': 'Add Files',
|
||||||
|
'Start Upload': 'Start Upload',
|
||||||
|
'%d files queued': '%d files queued'
|
||||||
|
});
|
Loading…
Reference in New Issue