Merge pull request 'Añadido campo resolución en los ajustes de red de aulas y grupos para propagarlo a los equipos. Rediseño de la vista de propiedades de una OU' (#73) from ou-menu-resolution into main
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
oggui-debian-package/pipeline/head This commit looks good Details

Reviewed-on: #73
pull/74/head
Juan Manuel Bardallo 2026-04-24 09:02:03 +02:00
commit a0dd9a1803
10 changed files with 3365 additions and 3069 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## [1.5.2] - 2026-04-24
### Added
- Añadido campo resolución en los ajustes de red de aulas y grupos para propagarlo a los equipos.
- Rediseño del menú de configuracion de una Unidad Organizativa
## [1.5.1] - 2026-04-23
### Improved
- Creadas claves de traducción para idiomas, añadido menu para cambiar de idioma en la barra superior

View File

@ -108,23 +108,23 @@ export class ClientDetailsComponent {
updateGeneralData() {
this.generalData = [
{ property: 'Nombre', value: this.clientData?.name || '' },
{ property: 'IP', value: this.clientData?.ip || '' },
{ property: 'MAC', value: this.clientData?.mac || '' },
{ property: 'Nº de serie', value: this.clientData?.serialNumber || '' },
{ property: 'Netiface', value: this.clientData?.netiface || this.clientData?.organizationalUnit?.networkSettings?.netiface || '' },
{ property: 'Perfil hardware', value: this.clientData?.hardwareProfile?.description || '' },
{ property: this.translate.instant('labelName'), value: this.clientData?.name || '' },
{ property: this.translate.instant('labelIp'), value: this.clientData?.ip || '' },
{ property: this.translate.instant('labelMac'), value: this.clientData?.mac || '' },
{ property: this.translate.instant('labelSerialNumber'), value: this.clientData?.serialNumber || '' },
{ property: this.translate.instant('labelNetiface'), value: this.clientData?.netiface || this.clientData?.organizationalUnit?.networkSettings?.netiface || '' },
{ property: this.translate.instant('labelHardwareProfile'), value: this.clientData?.hardwareProfile?.description || '' },
];
}
updateNetworkData() {
this.networkData = [
{ property: 'Padre', value: this.clientData?.organizationalUnit?.name || '' },
{ property: 'Pxe', value: this.clientData?.pxeTemplate?.name || '' },
{ property: 'Remote Pc', value: this.clientData.remotePc || '' },
{ property: 'Subred', value: this.clientData?.subnet || '' },
{ property: 'OGlive', value: this.clientData?.ogLive?.name || '' },
{ property: 'Repositorio', value: this.clientData?.repository?.name || '' },
{ property: this.translate.instant('labelParent'), value: this.clientData?.organizationalUnit?.name || '' },
{ property: this.translate.instant('labelTemplate'), value: this.clientData?.pxeTemplate?.name || '' },
{ property: this.translate.instant('remotePc'), value: this.clientData.remotePc || '' },
{ property: this.translate.instant('labelSubnet'), value: this.clientData?.subnet || '' },
{ property: this.translate.instant('labelOgLive'), value: this.clientData?.ogLive?.name || '' },
{ property: this.translate.instant('labelRepository'), value: this.clientData?.repository?.name || '' },
];
}
@ -154,14 +154,14 @@ export class ClientDetailsComponent {
this.chartDisk = Array.from(diskUsageMap.entries()).map(([diskNumber, { total, used, partitions }]) => {
const partitionData = partitions.map(partition => ({
name: `Partición ${partition.partitionNumber}`,
name: `${this.translate.instant('labelPartition')} ${partition.partitionNumber}`,
value: Number((partition.size / 1024).toFixed(2))
}));
const freeSpace = total - used;
if (freeSpace > 0) {
partitionData.push({
name: 'Espacio libre',
name: this.translate.instant('labelFreeSpace'),
value: Number(freeSpace.toFixed(2))
});
}

View File

@ -55,8 +55,8 @@ mat-option .unit-path {
padding: 1.5em;
}
/* Boot grouping */
.boot-group {
/* Generic fieldset grouping */
.fieldset-group {
grid-column: 1 / -1;
border: 1px solid #c5c5c5;
border-radius: 6px;
@ -64,7 +64,7 @@ mat-option .unit-path {
margin: 0;
}
.boot-group-legend {
.fieldset-legend {
font-size: 0.78rem;
color: #3f51b5;
font-weight: 600;
@ -73,7 +73,13 @@ mat-option .unit-path {
text-transform: uppercase;
}
.boot-group-grid {
.fieldset-grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 20px;
}
.fieldset-grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 20px;

View File

@ -20,7 +20,7 @@
</mat-form-field>
<mat-form-field class="form-field">
<mat-label>{{ 'labelRoleName' | translate }}</mat-label>
<mat-label>{{ 'labelName' | translate }}</mat-label>
<input matInput formControlName="name" required>
</mat-form-field>
@ -59,6 +59,14 @@
</mat-select>
</mat-form-field>
<mat-checkbox formControlName="maintenance">
{{ 'maintenance' | translate }}
</mat-checkbox>
<!-- ===== Agrupación: Configuración del menú ===== -->
<fieldset class="fieldset-group">
<legend class="fieldset-legend">{{ 'menuConfiguration' | translate }}</legend>
<div class="fieldset-grid-2">
<mat-form-field class="form-field">
<mat-label>{{ 'labelMenu' | translate }}</mat-label>
<mat-select formControlName="menu">
@ -87,15 +95,13 @@
</mat-select>
<mat-error>{{ 'resolutionError' | translate }}</mat-error>
</mat-form-field>
<mat-checkbox formControlName="maintenance">
{{ 'maintenance' | translate }}
</mat-checkbox>
</div>
</fieldset>
<!-- ===== Agrupación: Configuración de arranque ===== -->
<fieldset class="boot-group">
<legend class="boot-group-legend">{{ 'bootConfiguration' | translate }}</legend>
<div class="boot-group-grid">
<fieldset class="fieldset-group">
<legend class="fieldset-legend">{{ 'bootConfiguration' | translate }}</legend>
<div class="fieldset-grid-3">
<mat-form-field class="form-field">
<mat-label>{{ 'bootServer' | translate }}</mat-label>

View File

@ -66,16 +66,16 @@ h1 {
margin-bottom: 10px;
}
/* Boot grouping */
.boot-group {
/* Generic fieldset grouping */
.fieldset-group {
grid-column: 1 / -1;
border: 1px solid #c5c5c5;
border-radius: 6px;
padding: 12px 16px 4px 16px;
margin: 0;
margin: 10px 0;
}
.boot-group-legend {
.fieldset-legend {
font-size: 0.78rem;
color: #3f51b5;
font-weight: 600;
@ -84,7 +84,13 @@ h1 {
text-transform: uppercase;
}
.boot-group-grid {
.fieldset-grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 20px;
}
.fieldset-grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 20px;

View File

@ -42,10 +42,9 @@
</form>
<!-- Paso 2: Información del Aula -->
<span *ngIf="generalFormGroup.value.type === 'classroom' && !loading"
class="step-title">{{ 'labelClassroomInfoStep' | translate }}</span>
<form *ngIf="generalFormGroup.value.type === 'classroom' && !loading" class="grid-form"
[formGroup]="classroomInfoFormGroup">
@if (generalFormGroup.value.type === 'classroom' && !loading) {
<span class="step-title">{{ 'labelClassroomInfoStep' | translate }}</span>
<form class="grid-form" [formGroup]="classroomInfoFormGroup">
<mat-form-field class="form-field">
<mat-label>{{ 'labelLocation' | translate }}</mat-label>
<input matInput formControlName="location">
@ -70,14 +69,16 @@
<mat-slide-toggle formControlName="board">{{ 'boardToggle' | translate }}</mat-slide-toggle>
</div>
</form>
}
<!-- Paso 3: Configuración de Red -->
<span *ngIf="!loading" class="step-title">{{ 'labelNetworkSettingsStep' | translate }}</span>
<form *ngIf="networkSettingsFormGroup && !loading" [formGroup]="networkSettingsFormGroup" class="grid-form">
<!-- ===== Agrupación: Configuración de arranque ===== -->
<fieldset class="boot-group">
<legend class="boot-group-legend">{{ 'bootConfiguration' | translate }}</legend>
<div class="boot-group-grid">
<fieldset class="fieldset-group">
<legend class="fieldset-legend">{{ 'bootConfiguration' | translate }}</legend>
<div class="fieldset-grid-3">
<mat-form-field class="form-field">
<mat-label>{{ 'bootServer' | translate }}</mat-label>
@ -114,6 +115,7 @@
</div>
</fieldset>
<mat-form-field class="form-field">
<mat-label>{{ 'labelRepository' | translate }}</mat-label>
<mat-select formControlName="repository" (selectionChange)="onRepositoryChange($event)">
@ -151,17 +153,16 @@
<input matInput formControlName="ntp">
</mat-form-field>
<mat-form-field class="form-field">
<mat-label>{{ 'labelP2pMode' | translate }}</mat-label>
<mat-select formControlName="p2pMode">
<mat-option *ngFor="let option of p2pModeOptions" [value]="option.value">
{{ option.name }}
</mat-option>
<mat-label>{{ 'labelHardwareProfile' | translate }}</mat-label>
<mat-select formControlName="hardwareProfile">
<mat-option *ngFor="let unit of hardwareProfiles" [value]="unit['@id']">{{ unit.description
}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="form-field" *ngIf="networkSettingsFormGroup.get('p2pMode')?.value === 'seeder'">
<mat-label>{{ 'labelP2pTime' | translate }} (minutos)</mat-label>
<input matInput formControlName="p2pTime" type="number">
</mat-form-field>
<!-- ===== Agrupación: Configuración de multicast ===== -->
<fieldset class="fieldset-group">
<legend class="fieldset-legend">{{ 'multicastConfiguration' | translate }}</legend>
<div class="fieldset-grid-2">
<mat-form-field class="form-field">
<mat-label>{{ 'labelMcastIp' | translate }}</mat-label>
<input matInput formControlName="mcastIp">
@ -182,28 +183,66 @@
</mat-option>
</mat-select>
</mat-form-field>
</div>
</fieldset>
<!-- ===== Agrupación: Configuración de p2p ===== -->
<fieldset class="fieldset-group">
<legend class="fieldset-legend">{{ 'p2pConfiguration' | translate }}</legend>
<div class="fieldset-grid-2">
<mat-form-field class="form-field">
<mat-label>{{ 'labelP2pMode' | translate }}</mat-label>
<mat-select formControlName="p2pMode">
<mat-option *ngFor="let option of p2pModeOptions" [value]="option.value">
{{ option.name }}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="form-field" *ngIf="networkSettingsFormGroup.get('p2pMode')?.value === 'seeder'">
<mat-label>{{ 'labelP2pTime' | translate }} (minutos)</mat-label>
<input matInput formControlName="p2pTime" type="number">
</mat-form-field>
</div>
</fieldset>
<!-- ===== Agrupación: Configuración del menú ===== -->
<fieldset class="fieldset-group">
<legend class="fieldset-legend">{{ 'menuConfiguration' | translate }}</legend>
<div class="fieldset-grid-2">
<mat-form-field class="form-field">
<mat-label>{{ 'labelMenu' | translate }}</mat-label>
<mat-select formControlName="menu">
<mat-select formControlName="menu" (selectionChange)="onMenuChange($event)">
<mat-option *ngFor="let menu of menus" [value]="menu['@id']">
{{ menu.name }}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="form-field">
<mat-label>{{ 'labelHardwareProfile' | translate }}</mat-label>
<mat-select formControlName="hardwareProfile">
<mat-option *ngFor="let unit of hardwareProfiles" [value]="unit['@id']">{{ unit.description
}}</mat-option>
<mat-label>{{ 'labelResolution' | translate }}</mat-label>
<mat-select formControlName="resolution">
<mat-option value="769">{{ 'resolution640x480x8' | translate }}</mat-option>
<mat-option value="771">{{ 'resolution800x600x8' | translate }}</mat-option>
<mat-option value="773">{{ 'resolution1024x768x8' | translate }}</mat-option>
<mat-option value="775">{{ 'resolution1280x1024x8' | translate }}</mat-option>
<mat-option value="784">{{ 'resolution640x480x16' | translate }}</mat-option>
<mat-option value="787">{{ 'resolution800x600x16' | translate }}</mat-option>
<mat-option value="791">{{ 'resolution1024x768x16' | translate }}</mat-option>
<mat-option value="794">{{ 'resolution1280x1024x16' | translate }}</mat-option>
<mat-option value="785">{{ 'resolution640x480x24' | translate }}</mat-option>
<mat-option value="788">{{ 'resolution800x600x24' | translate }}</mat-option>
<mat-option value="792">{{ 'resolution1024x768x24' | translate }}</mat-option>
<mat-option value="795">{{ 'resolution1280x1024x24' | translate }}</mat-option>
</mat-select>
<mat-error>{{ 'urlFormatError' | translate }}</mat-error>
</mat-form-field>
</div>
</fieldset>
</form>
<!-- Paso 4: Información Adicional -->
<span *ngIf="!loading" class="step-title">{{ 'labelAdditionalInfoStep' | translate }}</span>
<form *ngIf="additionalInfoFormGroup && !loading" [formGroup]="additionalInfoFormGroup">
<mat-form-field class="form-field">
<mat-form-field class="form-field description-form-field">
<mat-label>{{ 'labelComments' | translate }}</mat-label>
<textarea matInput formControlName="comments"></textarea>
</mat-form-field>
@ -214,5 +253,5 @@
<button class="ordinary-button" (click)="onNoClick()">{{ 'buttonCancel' | translate }}</button>
<button class="submit-button" (click)="onSubmit()"
[disabled]="!generalFormGroup.valid || !additionalInfoFormGroup.valid || !networkSettingsFormGroup.valid">{{
isEditMode ? ('edit' | translate) : ('createButton' | translate) }}</button>
isEditMode ? ('buttonEdit' | translate) : ('createButton' | translate) }}</button>
</mat-dialog-actions>

View File

@ -78,7 +78,7 @@ export class ManageOrganizationalUnitComponent implements OnInit {
});
this.additionalInfoFormGroup = this._formBuilder.group({
comments: [null],
comments: [null]
});
this.networkSettingsFormGroup = this._formBuilder.group({
@ -99,6 +99,7 @@ export class ManageOrganizationalUnitComponent implements OnInit {
mcastPort: [null],
mcastMode: [null],
menu: [null],
resolution: [null],
hardwareProfile: [null]
});
@ -125,9 +126,11 @@ export class ManageOrganizationalUnitComponent implements OnInit {
Promise.all(observables).then(() => {
if (this.isEditMode) {
this.loadData(this.data.uuid).then(() => {
this.setMenuResolutionIfEmpty();
this.loading = false;
});
} else {
this.setMenuResolutionIfEmpty();
this.loading = false;
}
}).catch(error => {
@ -156,6 +159,7 @@ export class ManageOrganizationalUnitComponent implements OnInit {
ogLive: unit.networkSettings?.ogLive?.['@id'],
pxeTemplate: unit.networkSettings?.pxeTemplate?.['@id'],
menu: unit.networkSettings?.menu?.['@id'],
resolution: unit.networkSettings?.resolution || null,
mcastIp: unit.networkSettings?.mcastIp,
mcastSpeed: unit.networkSettings?.mcastSpeed,
mcastPort: unit.networkSettings?.mcastPort,
@ -196,10 +200,8 @@ export class ManageOrganizationalUnitComponent implements OnInit {
this.networkSettingsFormGroup.patchValue({
repository: selectedUnit.repository || null,
bootServer: selectedUnit.bootServer || null,
hardwareProfile: selectedUnit.hardwareProfile || null,
ogLive: selectedUnit.ogLive || null,
pxeTemplate: selectedUnit.pxeTemplate || null,
menu: selectedUnit.menu || null,
mcastIp: selectedUnit.mcastIp || null,
mcastSpeed: selectedUnit.mcastSpeed || null,
mcastPort: selectedUnit.mcastPort || null,
@ -210,7 +212,10 @@ export class ManageOrganizationalUnitComponent implements OnInit {
dns: selectedUnit.dns || null,
netmask: selectedUnit.netmask || null,
router: selectedUnit.router || null,
ntp: selectedUnit.ntp || null
ntp: selectedUnit.ntp || null,
menu: selectedUnit.menu || null,
resolution: selectedUnit.resolution || null,
hardwareProfile: selectedUnit.hardwareProfile || null
});
}
}
@ -239,10 +244,6 @@ export class ManageOrganizationalUnitComponent implements OnInit {
excludeParentChanges: data.excludeParentChanges
});
this.additionalInfoFormGroup.patchValue({
comments: data.comments
});
// Patch all network fields except ogLive and pxeTemplate
this.networkSettingsFormGroup.patchValue({
proxy: data.networkSettings?.proxy,
@ -257,10 +258,15 @@ export class ManageOrganizationalUnitComponent implements OnInit {
mcastSpeed: data.networkSettings?.mcastSpeed,
mcastPort: data.networkSettings?.mcastPort,
mcastMode: data.networkSettings?.mcastMode,
menu: data.networkSettings?.menu ? data.networkSettings.menu['@id'] : null,
bootServer: bootServerIri,
repository: data.networkSettings?.repository ? data.networkSettings.repository['@id'] : null,
menu: data.networkSettings?.menu ? data.networkSettings.menu['@id'] : null,
resolution: data.networkSettings?.resolution ? String(data.networkSettings.resolution) : null,
hardwareProfile: data.networkSettings?.hardwareProfile ? data.networkSettings.hardwareProfile['@id'] : null,
repository: data.networkSettings?.repository ? data.networkSettings.repository['@id'] : null
});
this.additionalInfoFormGroup.patchValue({
comments: data.comments
});
this.classroomInfoFormGroup.patchValue({
@ -324,6 +330,7 @@ export class ManageOrganizationalUnitComponent implements OnInit {
const parentValue = this.generalFormGroup.value.parent;
const networkSettings = { ...this.networkSettingsFormGroup.value };
if (networkSettings.p2pMode !== 'seeder') {
networkSettings.p2pTime = null;
}
@ -334,7 +341,7 @@ export class ManageOrganizationalUnitComponent implements OnInit {
parent: parentValue || null,
description: this.generalFormGroup.value.description,
comments: this.additionalInfoFormGroup.value.comments,
remoteCalendar: this.generalFormGroup.value.remoteCalendar,
remoteCalendar: this.classroomInfoFormGroup.value.remoteCalendar,
type: this.generalFormGroup.value.type,
networkSettings: networkSettings,
location: this.classroomInfoFormGroup.value.location,
@ -491,8 +498,6 @@ export class ManageOrganizationalUnitComponent implements OnInit {
});
}
// loadPxeTemplates and loadOgLives removed: resources are now loaded on-demand per BootServer
loadMenus(): Promise<void> {
return new Promise((resolve, reject) => {
const url = `${this.baseUrl}/menus?page=1&itemsPerPage=10000`;
@ -544,20 +549,47 @@ export class ManageOrganizationalUnitComponent implements OnInit {
});
}
setMenuResolutionIfEmpty(): void {
const selectedMenuId = this.networkSettingsFormGroup.get('menu')?.value;
const currentResolution = this.networkSettingsFormGroup.get('resolution')?.value;
if (selectedMenuId && !currentResolution) {
const selectedMenu = this.menus.find(menu => menu['@id'] === selectedMenuId);
if (selectedMenu && selectedMenu.resolution) {
this.networkSettingsFormGroup.patchValue({
resolution: String(selectedMenu.resolution)
});
}
}
}
onMenuChange(event: any): void {
// Only pre-fill if resolution is empty
const currentResolution = this.networkSettingsFormGroup.get('resolution')?.value;
if (!currentResolution) {
const selectedMenu = this.menus.find(menu => menu['@id'] === event.value);
if (selectedMenu && selectedMenu.resolution) {
this.networkSettingsFormGroup.patchValue({
resolution: String(selectedMenu.resolution)
});
}
}
}
onCalendarChange(event: any) {
this.generalFormGroup.value.remoteCalendar = event.value;
this.classroomInfoFormGroup.patchValue({ remoteCalendar: event.value });
}
onOgLiveChange(event: any) {
this.networkSettingsFormGroup.value.ogLive = event.value;
this.networkSettingsFormGroup.patchValue({ ogLive: event.value });
}
onRepositoryChange(event: any) {
this.networkSettingsFormGroup.value.repository = event.value;
this.networkSettingsFormGroup.patchValue({ repository: event.value });
}
onPxeTemplateChange(event: any) {
this.networkSettingsFormGroup.value.pxeTemplate = event.value;
this.networkSettingsFormGroup.patchValue({ pxeTemplate: event.value });
}
onNoClick(): void {

View File

@ -17,6 +17,7 @@
"addCommand": "Add Command",
"addCommandGroup": "Add Command Group",
"addCommandGroupStepText": "Click to add a new command group.",
"addCommandStepText": "addCommandStepText",
"addDhcpServer": "Add DHCP Server",
"addImageButton": "Add image",
"addImageButtonDescription": "Click to add a new image.",
@ -136,6 +137,7 @@
"buttonRefresh": "Refresh",
"buttonReload": "Reload",
"buttonRetry": "Retry",
"buttonSave": "buttonSave",
"buttonSaveChanges": "Save Changes",
"buttonSaveCommand": "Save Command",
"buttonSaveConfig": "Save configuration",
@ -202,6 +204,7 @@
"checkImageState": "Check image state",
"classroomGroupsTitle": "Classroom groups",
"classroomNetworkPropertiesTab": "Classroom and network properties",
"classroomPropertiesTab": "classroomPropertiesTab",
"classrooms": "Classrooms",
"classroomsGroup": "Classroom groups",
"classroomStatusUpdated": "Status del classroom updated",
@ -230,6 +233,7 @@
"clientMacOS": "MacOS client",
"clientOff": "Client off",
"clientOgLive": "OGLive client",
"clientPropertiesTitle": "clientPropertiesTitle",
"clientSelectStepText": "Select a client to see the associated traces.",
"clientsPerPage": "Clientes por página",
"clientsPerPageHint": "Number of clients shown per page in the list",
@ -240,6 +244,7 @@
"clientWindowsSession": "Windows session client",
"code": "Código",
"colaAcciones": "Cola de acciones",
"collapseAll": "collapseAll",
"command": "Command",
"commandAddedSuccessfully": "Command añadido successfully",
"commandColumn": "Command",
@ -263,8 +268,10 @@
"commandSelectStepText": "Select a command to see the specific traces of that command.",
"CommandsTitle": "Administrar Comandos",
"commandsToExecute": "Commands to execute",
"commentsPlaceholder": "commentsPlaceholder",
"commitDate": "Date del commit",
"commitDetails": "Details del Commit",
"commitId": "commitId",
"commitIdCopiedToClipboard": "Commit ID copiado al portapapeles",
"commitMessage": "Mensaje del commit",
"commitSelection": "Commit selection",
@ -318,6 +325,7 @@
"deleteClientLease": "Delete client lease",
"deleteElementMenu": "Delete element",
"deleteElementTooltip": "Delete this element",
"deleteIcon": "deleteIcon",
"deleteMultipleClients": "Delete selected",
"deleteMultipleClientsTooltip": "Delete all selected clients",
"deleteRepository": "Deleting Repository",
@ -328,6 +336,7 @@
"deployImage": "Deploy image",
"deployRequestSentCorrectly": "Petición de deploy sent successfully",
"destinationBranch": "Destination branch",
"destinationBranchNameLabel": "destinationBranchNameLabel",
"destinationSelectionSectionTitle": "Select destination",
"detailsOf": "Details of",
"detailsTitle": "Details of {{ name }}",
@ -355,9 +364,11 @@
"diskUsageDescription": "Here is the disk usage of the server.",
"diskUsageTitle": "Disk Usage",
"displayImage": "Desplegar image",
"dnsLabel": "dnsLabel",
"downloadAgent": "Download agent",
"downloadImageNoRestore": "Download image without restoring partition",
"downloadOgAgent": "Download OGAgent",
"edit": "edit",
"editCalendar": "Edit calendar",
"editClientTitle": "Edit Client",
"editCommandGroup": "Edit command group",
@ -365,7 +376,6 @@
"editedAndParametersPropagatedSuccessfully": "Edited y parámetros propagados successfully",
"editedCommand": "Command edited",
"editEnvVarsTitle": "Edit Environment Variables",
"editIcon": "edit",
"editImageTitle": "Edit image",
"editOrgUnitTitle": "Edit Organizational Unit",
"editRepositoryData": "Edit repository data",
@ -550,7 +560,9 @@
"exampleFeatureBranch": "e.g.: feature-new-functionality",
"exampleVersionTag": "e.g.: v1.0.0",
"excludeParentChanges": "Exclude parent changes",
"execute": "execute",
"executeAsAdmin": "Execute as administrator",
"executeButton": "executeButton",
"executeCommand": "Execute command",
"executeCommandOrGroupTitle": "Execute Command or Command Group",
"executeCommands": {
@ -577,6 +589,7 @@
"executionOrder": "Execution order",
"executionOrderRequired": "You must specify the execution order",
"executionTime": "Time de ejecución",
"expandAll": "expandAll",
"exportCSV": "Export CSV",
"failed": "Failed",
"failedOption": "Failed",
@ -680,6 +693,7 @@
"inputDetails": "Input details",
"inScheduleOf": "in the schedule of",
"installationRequestSent": "Petición de instalación sent",
"installedOglivesTitle": "installedOglivesTitle",
"InstalledOglivesTitle": "Installed OgLives",
"installOption": "Install",
"internalElementsTitle": "Internal elements",
@ -693,6 +707,7 @@
"isoImageColumn": "ISO Image",
"itemRemovedSuccessfully": "Elemento deleted . successfully",
"jwtDecodingError": "Error decoding JWT",
"kernelLabel": "kernelLabel",
"keyStepText": "The legend will show you the types of organizational units and their corresponding icons",
"labelAdditionalInfoStep": "Additional Information",
"labelAddress": "Address",
@ -744,6 +759,7 @@
"labelFileSystem": "File System",
"labelFirewall": "Firewall",
"labelFree": "Free",
"labelFreeSpace": "Free Space",
"labelFrom": "From",
"labelFsShort": "FS",
"labelGeneralTab": "General",
@ -756,10 +772,12 @@
"labelImageName": "Image name",
"labelInformation": "Information",
"labelIp": "Ip",
"labelIpAddress": "labelIpAddress",
"labelIpCaps": "IP",
"labelIpColon": "IP:",
"labelIsDefault": "Default",
"labelKernel": "Kernel",
"labelLanguage": "Language",
"labelLaptop": "Laptop",
"labelLocation": "Location",
"labelLoginPassword": "Enter your password",
@ -802,6 +820,7 @@
"labelP2pMode": "P2P Mode",
"labelP2pTime": "P2P Time",
"labelParameters": "Parameters",
"labelParent": "Parent",
"labelPartition": "Partition",
"labelPort": "Port",
"labelPrinter": "Printer",
@ -857,6 +876,7 @@
"labelState": "Status",
"labelStates": "States",
"labelStep": "Step",
"labelSubnet": "labelSubnet",
"labelSubnetName": "Subnet name",
"labelSubOrganizationalUnit": "Sub-organizational Unit",
"labelSummary": "Summary",
@ -880,9 +900,10 @@
"labelValue": "Value",
"labelVariable": "Variable",
"labelWeekDays": "Days of the week",
"labelLanguage": "Language",
"langEn": "English",
"langEnglish": "langEnglish",
"langEs": "Spanish",
"langSpanish": "langSpanish",
"Legend": "Legend",
"limpiarAcciones": "Clear actions",
"linuxOption": "LINUX",
@ -921,16 +942,21 @@
"maxClients": "Max. Clients",
"maxWaitTime": "Max. wait time",
"menuAddedSuccessfully": "Menu añadido successfully",
"menuConfiguration": "Menu Configuration",
"menuEditedCorrectly": "Menu edited successfully",
"menuError": "menuError",
"menuName": "Name de menú",
"menus": "Menus",
"menuSuccessfullyRemoved": "Menu deleted con éxito",
"monolithicImage": "Monolithic image",
"monolithicImageStep": "Monolithic image",
"monolithicImageStepText": "On this screen you can manage monolithic images.",
"moreActions": "moreActions",
"moveClientsTo": "Move clients to:",
"moveClientsTooltip": "Move clients to another organizational unit",
"multicastConfiguration": "Multicast Configuration",
"name": "Name",
"nameLabel": "nameLabel",
"nameRequired": "Name is required",
"networkConfigurationAddedSuccessfully": "Configuración de network añadida successfully",
"networkConfigurationUpdatedSuccessfully": "Configuración de network actualizada successfully",
@ -983,6 +1009,7 @@
"notAvailableLowercase": "not available",
"notCalculated": "Not calculated",
"notDefined": "Not defined",
"noTemplateOption": "noTemplateOption",
"noTemplatesInServer": "There are no templates on this server",
"notEnoughFreeSpace": "Not hay suficiente espacio libre en the disco para creating a nueva partición.",
"notesPlaceholder": "Enter your notes here",
@ -997,7 +1024,9 @@
"ogBootServerStatus": "OgBoot Server Status",
"ogcoreLogs": "OgCore Logs",
"ogCoreServer": "OgCore Server",
"ogLive": "ogLive",
"ogLiveDeletedSuccessfully": "OG Live deleted successfully",
"ogLiveModel": "ogLiveModel",
"oglivesDescription": "Here are the OgLives installed on the server.",
"ogLiveTitle": "OG Live",
"ogRepoServerStatus": "OgRepository Server Status",
@ -1026,6 +1055,7 @@
"orgUnitPropertiesTitle": "Organizational unit properties",
"orSAddedSuccessfully": "System operative añadido successfully",
"oSBootRequest": "Petición de arranque de SO sent successfully",
"p2pConfiguration": "P2P Configuration",
"pageNotFound": "Page not found",
"paginationDescription": "Navigate between image pages using the paginator.",
"paginationStepText": "Navigate through pages using the paginator.",
@ -1037,6 +1067,7 @@
"partitions": "Partitions",
"partitionSelection": "Partition selection",
"partitionsSuccessfullyCreatedForThe": "Partitions creadas para the disco seleccionado. successfully",
"partitionsTab": "partitionsTab",
"partitionTitle": "Partitions assistant",
"partitionType": "Type de partición",
"partitionTypeColumn": "Partition type",
@ -1149,6 +1180,7 @@
"runCustomScript": "Run a custom script or create a new one",
"runScript": "Ejecutar script",
"saveAssociationsButton": "Save Associations",
"saveButton": "saveButton",
"saveButtonDescription": "Save the changes made.",
"savedButThereWasAnError": "Saved, pero hubo a Error al propagar the parámetros",
"saveDispositionButton": "Save disposition",
@ -1178,6 +1210,7 @@
"searchIsDefaultText": "Search for default images",
"searchNameDescription": "Search images by name to quickly find a specific image.",
"searchNameIpStatusMac": "Name, IP, status or MAC",
"searchPlaceholder": "searchPlaceholder",
"searchScriptContent": "Search script content",
"searchState": "Search state",
"searchStepText": "Use this search bar to filter existing entities.",
@ -1215,6 +1248,7 @@
"selectOgBootServer": "Select OgBoot server",
"selectOgLiveOption": "Select OgLive",
"selectOperativeSystem": "Select operative system",
"selectOptionPlaceholder": "selectOptionPlaceholder",
"selectOrganizationalUnit": "Select organizational unit",
"selectParentOuDhcpHint": "Select a Parent Organizational Unit (OU) to group the subnets and clients automatically detected in the DHCP service.",
"selectPartitionToBootOs": "Select partition to boot OS",
@ -1225,6 +1259,8 @@
"selectScriptToView": "Select a saved script from the list to view its content and configure parameters.",
"selectSoftwareToAdd": "Select software to add",
"selectTask": "Select a task",
"selectTemplateDescription": "selectTemplateDescription",
"selectTemplateLabel": "selectTemplateLabel",
"selectTimePlaceholder": "Select a time",
"selectUnitDescription": "Select the organizational unit to which the clients belong.",
"selectWeekDays": "Select the days of the week",
@ -1249,6 +1285,7 @@
"softwareDescription": "Software description",
"softwareFetchingError": "Error fetching software:",
"softwareList": "List",
"softwareNameLabel": "softwareNameLabel",
"softwareProfile": "Software profile",
"softwareProfiles": "Profiles",
"soimage": "SO/Image",
@ -1281,12 +1318,14 @@
"subnet": "Subnet",
"subnetIpRequired": "Subnet IP is required.",
"subnetLeasesRemoved": "Leases de the subnet eliminadas successfully",
"subnetNameLabel": "subnetNameLabel",
"subnetNameRequired": "Subnet name is required.",
"subnetNetmaskRequired": "Subnet netmask is required.",
"subnets": "Subnets",
"subnetSuccessfullyDeleted": "Subnet eliminada successfully",
"subnetSynchronizedWithServer": "Subnet sincronizada con server",
"success": "Success",
"successful": "successful",
"successfullyCreated": "Created successfully",
"successfullyCreatedRepository": "Repository created successfully",
"successfullyEdited": "Edited successfully",
@ -1317,6 +1356,7 @@
"tabsStepText": "Use the tabs to access different viewing and search options for organizational units and clients.",
"tagCreatedSuccessfully": "Tag created successfully",
"tagDescriptionHint": "Tag description (e.g.: \"Stable release version 1.0\")",
"tagDescriptionLabel": "tagDescriptionLabel",
"tagExampleHint": "Example: v1.0.0, release-2024-01, hotfix-bug-123",
"tagMessageRequired": "Tag message is required",
"tagNameInvalid": "Tag name can only contain letters, numbers, dots, hyphens and underscores",
@ -1334,8 +1374,10 @@
"taskScheduleCreatedWith": "Programacion de task creada con éxito",
"taskUpdatedSuccessfully": "Task actualizada con éxito",
"templateContent": "Contenido de la plantilla PXE",
"templateContentError": "templateContentError",
"templateContentPlaceholder": "Enter the template content",
"templateName": "Name de the template",
"templateNameError": "templateNameError",
"templateNamePlaceholder": "Enter the template name",
"templateSuccessfullyDeleted": "Template eliminada successfully",
"theButtonWasNotFound": "Not se encontró the botón execute-button",

View File

@ -17,6 +17,7 @@
"addCommand": "Añadir Comando",
"addCommandGroup": "Añadir Grupo de Comandos",
"addCommandGroupStepText": "Haz clic para añadir un nuevo grupo de comandos.",
"addCommandStepText": "addCommandStepText",
"addDhcpServer": "Añadir Servidor DHCP",
"addImageButton": "Añadir imagen",
"addImageButtonDescription": "Haz clic para añadir una nueva imagen.",
@ -136,6 +137,7 @@
"buttonRefresh": "Refrescar",
"buttonReload": "Recargar",
"buttonRetry": "Reintentar",
"buttonSave": "buttonSave",
"buttonSaveChanges": "Guardar Cambios",
"buttonSaveCommand": "Guardar Comando",
"buttonSaveConfig": "Guardar configuración",
@ -202,6 +204,7 @@
"checkImageState": "Checkear estado imagen",
"classroomGroupsTitle": "Grupos de aula",
"classroomNetworkPropertiesTab": "Propiedades aula y de red",
"classroomPropertiesTab": "classroomPropertiesTab",
"classrooms": "Aulas",
"classroomsGroup": "Grupos de aulas",
"classroomStatusUpdated": "Status del classroom updated",
@ -230,6 +233,7 @@
"clientMacOS": "Cliente MacOS",
"clientOff": "Cliente apagado",
"clientOgLive": "Cliente OGLive",
"clientPropertiesTitle": "clientPropertiesTitle",
"clientSelectStepText": "Selecciona un cliente para ver las trazas asociadas.",
"clientsPerPage": "Clientes por página",
"clientsPerPageHint": "Número de clientes mostrados por página en el listado",
@ -240,6 +244,7 @@
"clientWindowsSession": "Cliente con sesión Windows",
"code": "Código",
"colaAcciones": "Cola de acciones",
"collapseAll": "collapseAll",
"command": "Command",
"commandAddedSuccessfully": "Command añadido successfully",
"commandColumn": "Comando",
@ -263,8 +268,10 @@
"commandSelectStepText": "Selecciona un comando para ver las trazas.",
"CommandsTitle": "Administrar Comandos",
"commandsToExecute": "Comandos a ejecutar",
"commentsPlaceholder": "commentsPlaceholder",
"commitDate": "Date del commit",
"commitDetails": "Details del Commit",
"commitId": "commitId",
"commitIdCopiedToClipboard": "Commit ID copiado al portapapeles",
"commitMessage": "Mensaje del commit",
"commitSelection": "Selección de commit",
@ -318,6 +325,7 @@
"deleteClientLease": "Borrar lease del cliente",
"deleteElementMenu": "Eliminar elemento",
"deleteElementTooltip": "Eliminar este elemento",
"deleteIcon": "deleteIcon",
"deleteMultipleClients": "Eliminar seleccionados",
"deleteMultipleClientsTooltip": "Eliminar todos los clientes seleccionados",
"deleteRepository": "Deleting Repository",
@ -328,6 +336,7 @@
"deployImage": "Desplegar imagen",
"deployRequestSentCorrectly": "Petición de deploy sent successfully",
"destinationBranch": "Rama destino",
"destinationBranchNameLabel": "destinationBranchNameLabel",
"destinationSelectionSectionTitle": "Selecciona destino",
"detailsOf": "Detalles de",
"detailsTitle": "Detalles de {{ name }}",
@ -355,9 +364,11 @@
"diskUsageDescription": "Aquí se muestra el uso de disco del servidor.",
"diskUsageTitle": "Uso de disco",
"displayImage": "Desplegar image",
"dnsLabel": "dnsLabel",
"downloadAgent": "Descargar OgAgent",
"downloadImageNoRestore": "Descarga imagen sin restaurar partición",
"downloadOgAgent": "Descargar el agente OGAgent",
"edit": "edit",
"editCalendar": "Editar calendario",
"editClientTitle": "Editar Cliente",
"editCommandGroup": "Editar grupo de comando",
@ -365,7 +376,6 @@
"editedAndParametersPropagatedSuccessfully": "Edited y parámetros propagados successfully",
"editedCommand": "Command edited",
"editEnvVarsTitle": "Editar Variables de Entorno",
"editIcon": "edit",
"editImageTitle": "Editar imagen",
"editOrgUnitTitle": "Editar Unidad Organizativa",
"editRepositoryData": "Editar datos repositorio",
@ -550,7 +560,9 @@
"exampleFeatureBranch": "ej: feature-nueva-funcionalidad",
"exampleVersionTag": "ej: v1.0.0",
"excludeParentChanges": "Excluir cambios de las unidades organizativas superiores",
"execute": "execute",
"executeAsAdmin": "Ejecutar como administrador",
"executeButton": "executeButton",
"executeCommand": "Ejecutar comando",
"executeCommandOrGroupTitle": "Ejecutar Comando o Grupo de Comandos",
"executeCommands": "[object Object]",
@ -563,6 +575,7 @@
"executionOrder": "Orden de ejecución",
"executionOrderRequired": "Debe especificar el orden de ejecución",
"executionTime": "Time de ejecución",
"expandAll": "expandAll",
"exportCSV": "Exportar CSV",
"failed": "Fallido",
"failedOption": "Fallida",
@ -666,6 +679,7 @@
"inputDetails": "Detalles",
"inScheduleOf": "en el horario de",
"installationRequestSent": "Petición de instalación sent",
"installedOglivesTitle": "installedOglivesTitle",
"InstalledOglivesTitle": "OgLive instalados",
"installOption": "Instalar",
"internalElementsTitle": "Elementos internos",
@ -679,6 +693,7 @@
"isoImageColumn": "Imagen ISO",
"itemRemovedSuccessfully": "Elemento deleted . successfully",
"jwtDecodingError": "Error decoding JWT",
"kernelLabel": "kernelLabel",
"keyStepText": "La leyenda te mostrará los tipos de unidades organizativas y sus iconos correspondientes",
"labelAdditionalInfoStep": "Información Adicional",
"labelAddress": "Dirección",
@ -730,6 +745,7 @@
"labelFileSystem": "File System",
"labelFirewall": "Firewall",
"labelFree": "Libre",
"labelFreeSpace": "Espacio libre",
"labelFrom": "Desde",
"labelFsShort": "S. ficheros",
"labelGeneralTab": "General",
@ -742,10 +758,12 @@
"labelImageName": "Nombre de la imagen",
"labelInformation": "Información",
"labelIp": "Ip",
"labelIpAddress": "labelIpAddress",
"labelIpCaps": "IP",
"labelIpColon": "IP:",
"labelIsDefault": "Por defecto",
"labelKernel": "Kernel",
"labelLanguage": "Idioma",
"labelLaptop": "Portátil",
"labelLocation": "Ubicación",
"labelLoginPassword": "Introduce tu contraseña",
@ -788,6 +806,7 @@
"labelP2pMode": "Modo P2P",
"labelP2pTime": "Tiempo P2P",
"labelParameters": "Parámetros",
"labelParent": "Padre",
"labelPartition": "Partición",
"labelPort": "Puerto",
"labelPrinter": "Impresora",
@ -843,6 +862,7 @@
"labelState": "Estado",
"labelStates": "Estados",
"labelStep": "Paso",
"labelSubnet": "labelSubnet",
"labelSubnetName": "Nombre de la subred",
"labelSubOrganizationalUnit": "Subunidad Organizativa",
"labelSummary": "Resumen",
@ -866,9 +886,10 @@
"labelValue": "Valor",
"labelVariable": "Variable",
"labelWeekDays": "Días de la semana",
"labelLanguage": "Idioma",
"langEn": "Inglés",
"langEnglish": "langEnglish",
"langEs": "Español",
"langSpanish": "langSpanish",
"Legend": "Leyenda",
"limpiarAcciones": "Limpiar acciones",
"linuxOption": "LINUX",
@ -907,16 +928,21 @@
"maxClients": "Máx. Clientes",
"maxWaitTime": "Tiempo máx. espera",
"menuAddedSuccessfully": "Menu añadido successfully",
"menuConfiguration": "Configuración del menú",
"menuEditedCorrectly": "Menu edited successfully",
"menuError": "menuError",
"menuName": "Name de menú",
"menus": "Menús",
"menuSuccessfullyRemoved": "Menu deleted con éxito",
"monolithicImage": "Imagenes monolíticas",
"monolithicImageStep": "Imagen monolítica",
"monolithicImageStepText": "Esta opción permite visualizar las imágenes monolíticas disponibles en el servidor.",
"moreActions": "moreActions",
"moveClientsTo": "Mover clientes a:",
"moveClientsTooltip": "Mover clientes a otra unidad organizativa",
"multicastConfiguration": "Configuración de multicast",
"name": "Name",
"nameLabel": "nameLabel",
"nameRequired": "El nombre es obligatorio",
"networkConfigurationAddedSuccessfully": "Configuración de network añadida successfully",
"networkConfigurationUpdatedSuccessfully": "Configuración de network actualizada successfully",
@ -969,6 +995,7 @@
"notAvailableLowercase": "no disponible",
"notCalculated": "No calculada",
"notDefined": "No definido",
"noTemplateOption": "noTemplateOption",
"noTemplatesInServer": "No hay plantillas en este servidor",
"notEnoughFreeSpace": "Not hay suficiente espacio libre en the disco para creating a nueva partición.",
"notesPlaceholder": "Ingresa tus notas aquí",
@ -983,7 +1010,9 @@
"ogBootServerStatus": "Estado del servidor OgBoot",
"ogcoreLogs": "Logs de OgCore",
"ogCoreServer": "OgCore Server",
"ogLive": "ogLive",
"ogLiveDeletedSuccessfully": "OG Live deleted successfully",
"ogLiveModel": "ogLiveModel",
"oglivesDescription": "Aquí se muestran los OgLive instalados en el servidor.",
"ogLiveTitle": "OG Live",
"ogRepoServerStatus": "OgRepository Server Status",
@ -1012,6 +1041,7 @@
"orgUnitPropertiesTitle": "Propiedades unidad organizativa",
"orSAddedSuccessfully": "Sistema Operativo añadido correctamente",
"oSBootRequest": "Petición de arranque de SO enviada correctamente",
"p2pConfiguration": "Configuración P2P",
"pageNotFound": "Page not found",
"paginationDescription": "Navega entre las páginas de imágenes usando el paginador.",
"paginationStepText": "Navega entre las páginas usando el paginador.",
@ -1023,6 +1053,7 @@
"partitions": "Particiones",
"partitionSelection": "Selección de partición",
"partitionsSuccessfullyCreatedForThe": "Partitions creadas para the disco seleccionado. successfully",
"partitionsTab": "partitionsTab",
"partitionTitle": "Asistente de particionado",
"partitionType": "Type de partición",
"partitionTypeColumn": "Tipo partición",
@ -1135,6 +1166,7 @@
"runCustomScript": "Ejecuta un script personalizado o crea uno nuevo",
"runScript": "Ejecutar script",
"saveAssociationsButton": "Guardar Asociaciones",
"saveButton": "saveButton",
"saveButtonDescription": "Guarda los cambios realizados.",
"savedButThereWasAnError": "Saved, pero hubo a Error al propagar the parámetros",
"saveDispositionButton": "Guardar disposición",
@ -1164,6 +1196,7 @@
"searchIsDefaultText": "Filtra para mostrar solo las imágenes por defecto o no por defecto.",
"searchNameDescription": "Busca imágenes por nombre para encontrar rápidamente una imagen específica.",
"searchNameIpStatusMac": "Nombre, IP, estado o MAC",
"searchPlaceholder": "searchPlaceholder",
"searchScriptContent": "Buscar contenido de script",
"searchState": "Buscar por estado",
"searchStepText": "Utiliza esta barra de búsqueda para filtrar las entidades existentes.",
@ -1201,6 +1234,7 @@
"selectOgBootServer": "Seleccionar servidor OgBoot",
"selectOgLiveOption": "Seleccionar OgLive",
"selectOperativeSystem": "Seleccionar sistema operativo",
"selectOptionPlaceholder": "selectOptionPlaceholder",
"selectOrganizationalUnit": "Seleccionar unidad organizativa",
"selectParentOuDhcpHint": "Seleccione una Unidad Organizativa Padre (OU) donde agrupar las subredes y clientes que se detecten automáticamente en el servicio DHCP.",
"selectPartitionToBootOs": "Seleccionar particion para arrancar SO",
@ -1211,6 +1245,8 @@
"selectScriptToView": "Elige un script guardado de la lista para ver su contenido y configurar parámetros.",
"selectSoftwareToAdd": "Seleccione software para añadir",
"selectTask": "Seleccione una tarea",
"selectTemplateDescription": "selectTemplateDescription",
"selectTemplateLabel": "selectTemplateLabel",
"selectTimePlaceholder": "Selecciona una hora",
"selectUnitDescription": "Selecciona la unidad organizativa a la que pertenecen los clientes.",
"selectWeekDays": "Selecciona los días de la semana",
@ -1235,6 +1271,7 @@
"softwareDescription": "Descripción del software",
"softwareFetchingError": "Error fetching software:",
"softwareList": "Listado",
"softwareNameLabel": "softwareNameLabel",
"softwareProfile": "Perfil de software",
"softwareProfiles": "Perfiles",
"soimage": "SO/Image",
@ -1267,12 +1304,14 @@
"subnet": "Subred",
"subnetIpRequired": "La ip de la subred es obligatorio.",
"subnetLeasesRemoved": "Leases de the subnet eliminadas successfully",
"subnetNameLabel": "subnetNameLabel",
"subnetNameRequired": "El nombre de la subred es obligatorio.",
"subnetNetmaskRequired": "El netmask de la subred es obligatorio.",
"subnets": "Subnets",
"subnetSuccessfullyDeleted": "Subnet eliminada correctamente",
"subnetSynchronizedWithServer": "Subnet sincronizada con server",
"success": "Exitoso",
"successful": "successful",
"successfullyCreated": "Creado correctamente",
"successfullyCreatedRepository": "Repositorio creado correctamente",
"successfullyEdited": "Editado correctamente",
@ -1303,6 +1342,7 @@
"tabsStepText": "Utiliza las pestañas para acceder a las diferentes opciones de visualización y busqueda de unidades organizativas y clientes.",
"tagCreatedSuccessfully": "Tag created successfully",
"tagDescriptionHint": "Descripción del tag (ej: \"Release estable de la versión 1.0\")",
"tagDescriptionLabel": "tagDescriptionLabel",
"tagExampleHint": "Ejemplo: v1.0.0, release-2024-01, hotfix-bug-123",
"tagMessageRequired": "El mensaje del tag es obligatorio",
"tagNameInvalid": "El nombre del tag solo puede contener letras, números, puntos, guiones y guiones bajos",
@ -1320,8 +1360,10 @@
"taskScheduleCreatedWith": "Programacion de tarea creada con éxito",
"taskUpdatedSuccessfully": "Tarea actualizada con éxito",
"templateContent": "Contenido de la plantilla PXE",
"templateContentError": "templateContentError",
"templateContentPlaceholder": "Introduce el contenido de la plantilla",
"templateName": "Nombre de la plantilla",
"templateNameError": "templateNameError",
"templateNamePlaceholder": "Introduce el nombre de la plantilla",
"templateSuccessfullyDeleted": "Template eliminada correctamente",
"theButtonWasNotFound": "Not se encontró the botón execute-button",

View File

@ -0,0 +1,118 @@
const fs = require('fs');
const path = require('path');
// Directorios base: buscará en todo ./src y modificará los JSON de ./src/locale
const srcDir = __dirname+"/src";
const localeDir = path.join(srcDir, 'locale');
// Expresiones regulares para capturar las claves de traducción
const regexes = [
// Captura: 'mi.clave' | translate O "mi.clave" | translate
/['"]([^'"]+)['"]\s*\|\s*translate/g,
// Captura: translate="mi.clave" O translate='mi.clave'
/translate\s*=\s*['"]([^'"]+)['"]/g,
// Captura: translate.instant('mi.clave') O translate.instant("mi.clave")
/translate\.instant\(\s*['"]([^'"]+)['"]/g,
// Captura: [translate]="'mi.clave'"
/\[translate\]\s*=\s*['"]'([^']+)'['"]/g,
// Captura: [translate]='"mi.clave"'
/\[translate\]\s*=\s*['"]"([^"]+)"['"]/g
];
/**
* Función recursiva para obtener todos los archivos con las extensiones deseadas
*/
function getFiles(dir, exts, fileList = []) {
const files = fs.readdirSync(dir);
for (const file of files) {
const filePath = path.join(dir, file);
if (fs.statSync(filePath).isDirectory()) {
getFiles(filePath, exts, fileList);
} else {
if (exts.includes(path.extname(filePath))) {
fileList.push(filePath);
}
}
}
return fileList;
}
/**
* Extrae todas las claves únicas usando las expresiones regulares
*/
function extractKeys() {
const files = getFiles(srcDir, ['.ts', '.html']);
const keys = new Set();
files.forEach(file => {
const content = fs.readFileSync(file, 'utf8');
regexes.forEach(regex => {
let match;
while ((match = regex.exec(content)) !== null) {
const key = match[1];
if (key && key.trim() !== '') {
keys.add(key.trim());
}
}
});
});
return Array.from(keys);
}
/**
* Actualiza y ordena los archivos de idiomas
*/
function updateLocales(extractedKeys) {
if (!fs.existsSync(localeDir)) {
console.error('No se pudo encontrar el directorio de traducciones:', localeDir);
return;
}
const localeFiles = fs.readdirSync(localeDir).filter(f => f.endsWith('.json'));
localeFiles.forEach(file => {
const filePath = path.join(localeDir, file);
let localeData = {};
try {
localeData = JSON.parse(fs.readFileSync(filePath, 'utf8'));
} catch (e) {
console.error(`Error al procesar el JSON en ${file}:`, e.message);
return;
}
let addedCount = 0;
// Añadir claves faltantes
extractedKeys.forEach(key => {
if (!localeData.hasOwnProperty(key)) {
localeData[key] = key; // Usa la propia clave como valor
addedCount++;
}
});
// Ordenar alfabéticamente todas las claves
const sortedData = {};
Object.keys(localeData)
.sort((a, b) => a.localeCompare(b))
.forEach(k => {
sortedData[k] = localeData[k];
});
// Guardar el fichero de nuevo
fs.writeFileSync(filePath, JSON.stringify(sortedData, null, 4) + '\n', 'utf8');
console.log(`[${file}] Actualizado. Agregadas ${addedCount} claves nuevas. Fichero ordenado alfabéticamente.`);
});
}
function run() {
console.log('Buscando claves de traducción en archivos .ts y .html...');
const keys = extractKeys();
console.log(`Se encontraron ${keys.length} claves únicas en el código.`);
console.log('Actualizando diccionarios...');
updateLocales(keys);
console.log('¡Proceso completado exitosamente!');
}
run();