Improve 'upload' package config

This commit is contained in:
Denys Vuika
2016-07-15 11:55:50 +01:00
parent e76b9bcc76
commit aaed924b6f
7 changed files with 12 additions and 22 deletions

View File

@@ -56,7 +56,7 @@ export class FileUploadingDialogComponent implements OnInit {
constructor(private cd: ChangeDetectorRef,
translate: AlfrescoTranslationService,
private _uploaderService: UploadService) {
translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');
}
ngOnInit() {

View File

@@ -92,7 +92,7 @@ export class UploadButtonComponent {
let formFields = this.createFormFields();
this._uploaderService.setOptions(formFields);
this.translate = translate;
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');
}
/**

View File

@@ -66,7 +66,7 @@ export class UploadDragAreaComponent {
this._uploaderService.setOptions(formFields);
this.translate = translate;
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');
}
/**

View File

@@ -0,0 +1,24 @@
{
"FILE_UPLOAD": {
"BUTTON": {
"UPLOAD_FILE": "Upload file",
"UPLOAD_FOLDER": "Upload folder",
"CANCEL": "CANCEL"
},
"MESSAGES": {
"COMPLETED": "uploads complete",
"PROGRESS": "Upload in progress...",
"FOLDER_ALREADY_EXIST": "The folder {0} already exist",
"FOLDER_NOT_SUPPORTED": "Folder upload isn't supported by your browser"
},
"FILE_INFO": {
"NAME": "File name",
"PROGRESS": "File progress",
"SIZE": "File size",
"ACTION": "Actions"
},
"ACTION": {
"UNDO": "Undo"
}
}
}

View File

@@ -0,0 +1,24 @@
{
"FILE_UPLOAD": {
"BUTTON": {
"UPLOAD_FILE": "Carica un file",
"UPLOAD_FOLDER": "Carica una cartella",
"CANCEL": "CANCELLA"
},
"MESSAGES": {
"COMPLETED": "caricamenti completati",
"PROGRESS": "caricamento in corso...",
"FOLDER_ALREADY_EXIST": "Cartella {0} già presente",
"FOLDER_NOT_SUPPORTED": "L' upload di cartelle non é supportato dal tuo browser"
},
"FILE_INFO": {
"NAME": "Nome file",
"PROGRESS": "Percentuale caricamento",
"SIZE": "Dimensione file",
"ACTION": "Azioni"
},
"ACTION": {
"UNDO": "Annulla"
}
}
}

View File

@@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EventEmitter, Injectable } from '@angular/core';
import { Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';