parent
3dd127d46f
commit
58a0639cb5
|
@ -1,4 +1,5 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
@ -7,7 +8,11 @@ import { Component } from '@angular/core';
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
title = 'ogWebconsole';
|
title = 'ogWebconsole';
|
||||||
|
constructor(private translateService: TranslateService) {
|
||||||
|
const savedLanguage = localStorage.getItem('language') || 'es';
|
||||||
|
this.translateService.use(savedLanguage);
|
||||||
|
}
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
localStorage.setItem('language', 'es');
|
sessionStorage.setItem('language', 'es');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<button mat-icon-button color="primary" (click)="iniciarTour()">
|
<button mat-icon-button color="primary" (click)="iniciarTour()">
|
||||||
<mat-icon>help</mat-icon>
|
<mat-icon>help</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<h2 class="title" joyrideStep="titleStep" text="{{ 'titleStepText' | translate }}">{{ 'adminCommandsTitle' | translate }}</h2>
|
<h2 class="title" joyrideStep="titleStep" text="{{ 'titleStepText' | translate }}">{{ 'CommandsTitle' | translate }}</h2>
|
||||||
<div class="command-button-row" joyrideStep="addCommandStep" text="{{ 'addCommandStepText' | translate }}">
|
<div class="command-button-row" joyrideStep="addCommandStep" text="{{ 'addCommandStepText' | translate }}">
|
||||||
<button mat-flat-button color="primary" (click)="openCreateCommandModal()">{{ 'addCommand' | translate }}</button>
|
<button mat-flat-button color="primary" (click)="openCreateCommandModal()">{{ 'addCommand' | translate }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<mat-divider class="divider"></mat-divider>
|
<mat-divider class="divider"></mat-divider>
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<mat-form-field appearance="fill" class="search-string" joyrideStep="searchImageField" text="Busca una imagen por nombre. Pulsa 'enter' para iniciar la búsqueda.">
|
<mat-form-field appearance="fill" class="search-string" joyrideStep="searchImagesField" text="Busca una imagen por nombre. Pulsa 'enter' para iniciar la búsqueda.">
|
||||||
<mat-label>Buscar nombre de imagen</mat-label>
|
<mat-label>Buscar nombre de imagen</mat-label>
|
||||||
<input matInput placeholder="Búsqueda" [(ngModel)]="filters['name']" (keyup.enter)="search()" i18n-placeholder="@@searchPlaceholder">
|
<input matInput placeholder="Búsqueda" [(ngModel)]="filters['name']" (keyup.enter)="search()" i18n-placeholder="@@searchPlaceholder">
|
||||||
<mat-icon matSuffix>search</mat-icon>
|
<mat-icon matSuffix>search</mat-icon>
|
||||||
|
|
|
@ -185,7 +185,7 @@ export class ImagesComponent implements OnInit {
|
||||||
steps: [
|
steps: [
|
||||||
'imagesTitleStep',
|
'imagesTitleStep',
|
||||||
'addImageButton',
|
'addImageButton',
|
||||||
'searchImageField',
|
'searchImagesField',
|
||||||
'imagesTable',
|
'imagesTable',
|
||||||
'actionsHeader',
|
'actionsHeader',
|
||||||
'editImageButton',
|
'editImageButton',
|
||||||
|
|
|
@ -340,5 +340,40 @@
|
||||||
"addClientButton": "Add client",
|
"addClientButton": "Add client",
|
||||||
"searchClientNameLabel": "Search client name",
|
"searchClientNameLabel": "Search client name",
|
||||||
"searchIPLabel": "Search IP",
|
"searchIPLabel": "Search IP",
|
||||||
"searchMACLabel": "Search MAC"
|
"searchMACLabel": "Search MAC",
|
||||||
|
"diskUsageTitle": "Disk Usage",
|
||||||
|
"ogBootServerStatus": "OgBoot Server Status",
|
||||||
|
"servicesTitle": "Services",
|
||||||
|
"Legend": "Legend",
|
||||||
|
"totalLabel": "Total",
|
||||||
|
"usedLabel": "Used",
|
||||||
|
"freeLabel": "Free",
|
||||||
|
"availableLabel": "Available",
|
||||||
|
"InstalledOglivesTitle": "Installed OgLives",
|
||||||
|
"idLabel": "ID",
|
||||||
|
"KernelLabel": "Kernel",
|
||||||
|
"architectureLabel": "Architecture",
|
||||||
|
"revisionLabel": "Revision",
|
||||||
|
"serverInfoTitle": "Server Information",
|
||||||
|
"adminPxeTitle": "Manage PXE Files",
|
||||||
|
"createdOgBootLabel": "Created in OgBoot",
|
||||||
|
"selectOptionPlaceholder": "Select an option",
|
||||||
|
"yesOption": "Yes",
|
||||||
|
"noOption": "No",
|
||||||
|
"actionsColumn": "Actions",
|
||||||
|
"createServerButton": "Create Server",
|
||||||
|
"labelName": "Name",
|
||||||
|
"diskUsageDescription": "Here is the disk usage of the server.",
|
||||||
|
"servicesStatusDescription": "Here is the status of the server services.",
|
||||||
|
"oglivesDescription": "Here are the OgLives installed on the server.",
|
||||||
|
"addImageButtonDescription": "Click to add a new image.",
|
||||||
|
"adminPxeDescription": "From here you can manage the PXE templates of the server.",
|
||||||
|
"addTemplateButtonDescription": "Add PXE Template",
|
||||||
|
"addTemplateButton": "Add Template",
|
||||||
|
"searchSyncDescription": "Filter PXE templates to show only synchronized or unsynchronized ones.",
|
||||||
|
"advancedNetbootDescription": "From here you can configure the advanced netboot of the clients.",
|
||||||
|
"selectUnitDescription": "Select the organizational unit to which the clients belong.",
|
||||||
|
"selectClassDescription": "Select the classroom to which the clients belong.",
|
||||||
|
"applyToAllDescription": "Select a template to apply to all clients.",
|
||||||
|
"saveButtonDescription": "Save the changes made."
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
"enabled": "Habilitado",
|
"enabled": "Habilitado",
|
||||||
"disabled": "Deshabilitado",
|
"disabled": "Deshabilitado",
|
||||||
"adminCommandsTitle": "Trazas de comandos y procedimientos",
|
"adminCommandsTitle": "Trazas de comandos y procedimientos",
|
||||||
|
"CommandsTitle": "Administrar Comandos",
|
||||||
"resetFiltersStepText": "Haz clic para reiniciar los filtros aplicados y ver todas las trazas.",
|
"resetFiltersStepText": "Haz clic para reiniciar los filtros aplicados y ver todas las trazas.",
|
||||||
"resetFilters": "Reiniciar filtros",
|
"resetFilters": "Reiniciar filtros",
|
||||||
"clientSelectStepText": "Selecciona un cliente para ver las trazas asociadas.",
|
"clientSelectStepText": "Selecciona un cliente para ver las trazas asociadas.",
|
||||||
|
@ -340,5 +341,40 @@
|
||||||
"addClientButton": "Añadir cliente",
|
"addClientButton": "Añadir cliente",
|
||||||
"searchClientNameLabel": "Buscar nombre de cliente",
|
"searchClientNameLabel": "Buscar nombre de cliente",
|
||||||
"searchIPLabel": "Buscar IP",
|
"searchIPLabel": "Buscar IP",
|
||||||
"searchMACLabel": "Buscar MAC"
|
"searchMACLabel": "Buscar MAC",
|
||||||
|
"diskUsageTitle": "Uso de disco",
|
||||||
|
"ogBootServerStatus": "Estado del servidor OgBoot",
|
||||||
|
"servicesTitle": "Servicios",
|
||||||
|
"Legend": "Leyenda",
|
||||||
|
"totalLabel": "Total",
|
||||||
|
"usedLabel": "Usado",
|
||||||
|
"freeLabel": "Libre",
|
||||||
|
"availableLabel": "Disponible",
|
||||||
|
"InstalledOglivesTitle": "OgLive instalados",
|
||||||
|
"idLabel": "ID",
|
||||||
|
"KernelLabel": "Kernel",
|
||||||
|
"architectureLabel": "Arquitectura",
|
||||||
|
"revisionLabel": "Revisión",
|
||||||
|
"serverInfoTitle": "Información del servidor",
|
||||||
|
"adminPxeTitle": "Administrar ficheros PXE",
|
||||||
|
"createdOgBootLabel": "Creado en OgBoot",
|
||||||
|
"selectOptionPlaceholder": "Selecciona una opción",
|
||||||
|
"yesOption": "Sí",
|
||||||
|
"noOption": "No",
|
||||||
|
"actionsColumn": "Acciones",
|
||||||
|
"createServerButton": "Crear servidor",
|
||||||
|
"labelName": "Nombre",
|
||||||
|
"diskUsageDescription": "Aquí se muestra el uso de disco del servidor.",
|
||||||
|
"servicesStatusDescription": "Aquí se muestra el estado de los servicios del servidor.",
|
||||||
|
"oglivesDescription": "Aquí se muestran los OgLive instalados en el servidor.",
|
||||||
|
"addImageButtonDescription": "Haz clic para añadir una nueva imagen.",
|
||||||
|
"adminPxeDescription": "Desde aquí puedes gestionar las plantillas PXE del servidor.",
|
||||||
|
"addTemplateButtonDescription": "Añadir plantilla PXE",
|
||||||
|
"addTemplateButton": "Añadir plantilla",
|
||||||
|
"searchSyncDescription": "Filtra las plantillas PXE para mostrar solo las sincronizadas o no sincronizadas.",
|
||||||
|
"advancedNetbootDescription": "Desde aquí puedes configurar el netboot avanzado de los clientes.",
|
||||||
|
"selectUnitDescription": "Selecciona la unidad organizativa a la que pertenecen los clientes.",
|
||||||
|
"selectClassDescription": "Selecciona el aula a la que pertenecen los clientes.",
|
||||||
|
"applyToAllDescription": "Selecciona una plantilla para aplicar a todos los clientes.",
|
||||||
|
"saveButtonDescription": "Guarda los cambios realizados."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue