Fixed translation service

This commit is contained in:
mauriziovitale84
2016-05-20 17:22:58 +01:00
parent 55c766e74b
commit 9c9c4fbba2
5 changed files with 53 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ declare var document: any;
{path: '/search', name: 'Search', component: AlfrescoSearchComponent}
])
export class AppComponent {
translate: TranslateService;
translate: AlfrescoTranslationService;
searchForm: ControlGroup;
constructor(private _fb: FormBuilder,
@@ -58,7 +58,8 @@ export class AppComponent {
searchTerm: ['', Validators.compose([Validators.required, Validators.minLength(3)])]
});
translate.translationInit('');
this.translate = translate;
this.translate.translationInit();
}
isActive(instruction: any[]): boolean {

View File

@@ -1,3 +1,41 @@
{
"title" : "Benvenuto"
}
"DOCUMENT_LIST": {
"COLUMNS": {
"DISPLAY_NAME": "Mostra name",
"CREATED_BY": "Creato da",
"CREATED_ON": "Creato il"
},
"ACTIONS": {
"FOLDER": {
"SYSTEM_1": "Azione 1 di sistema sulla cartella",
"CUSTOM": "Azione personalizzata su cartella"
},
"DOCUMENT": {
"DOWNLOAD": "Download",
"SYSTEM_2": "System document action 2",
"CUSTOM": "Custom action"
}
}
},
"DATATABLE": {
"COLUMNS": {
"DISPLAY_NAME": "Display name",
"CREATED_BY": "Created by",
"CREATED_ON": "Created on"
},
"ACTIONS": {
"FOLDER": {
"SYSTEM_1": "System folder action 1",
"CUSTOM": "Custom folder action"
},
"DOCUMENT": {
"DOWNLOAD": "Download",
"SYSTEM_2": "System document action 2",
"CUSTOM": "Custom action"
}
}
}
}