mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Improve 'upload' package config
This commit is contained in:
@@ -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() {
|
||||
|
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
24
ng2-components/ng2-alfresco-upload/src/i18n/en.json
Normal file
24
ng2-components/ng2-alfresco-upload/src/i18n/en.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
24
ng2-components/ng2-alfresco-upload/src/i18n/it.json
Normal file
24
ng2-components/ng2-alfresco-upload/src/i18n/it.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user