Skip to content

Commit

Permalink
whatif i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Alloza committed Jan 14, 2024
1 parent ef0f5f4 commit c44db69
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
<div content>
<div class="row pl-1">
<div class="col-3">
<span>Medida:</span>
<span i18n="@@measureLabel">Medida:</span>
<p-dropdown [(ngModel)]="whatIf.column" [options]="columnOptions" [autoDisplayFirst]="false" [style]="{'width': '100%'}" appendTo="body">
</p-dropdown>
</div>
<div class="col-2">
<span>Operación:</span>
<span i18n="@@operationLabel">Operación:</span>
<p-dropdown [(ngModel)]="whatIf.operator" [options]="ifOptions" [autoDisplayFirst]="false" [style]="{'width': '100%'}" appendTo="body">
</p-dropdown>
</div>
<div class="col-2 flex flex-column">
<span>Valor numerico:</span>
<span i18n="@@numericalValueLabel">Valor numérico:</span>
<input type="number" pInputText [(ngModel)]="whatIf.value">
</div>
<div class="col-3 flex flex-column">
<span>Nuevo nombre:</span>
<span i18n="@@newNameLabel">Nuevo nombre:</span>
<div class="p-inputgroup">
<input type="text" pInputText [(ngModel)]="whatIf.display_name">
<button type="button" pButton pRipple icon="pi pi-refresh" class="p-button-info" title="Generate alias" (click)="generateAlias()"></button>
</div>
</div>
<div class="col-2 d-flex align-items-end">
<button pButton icon="fa fa-check" class="p-button-info p-button-outlined button-add" label="Añadir" (click)="addWhatIfColumn()" [disabled]="!whatIf.column || !whatIf.operator || !whatIf.value || !whatIf.display_name"></button>
<button pButton icon="fa fa-check" class="p-button-info p-button-outlined button-add" label="Añadir" i18n-label="@@addBtn" (click)="addWhatIfColumn()" [disabled]="!whatIf.column || !whatIf.operator || !whatIf.value || !whatIf.display_name"></button>
</div>
</div>

Expand Down
25 changes: 25 additions & 0 deletions eda/eda_app/src/locale/messages.ca.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -3956,6 +3956,31 @@ Entrar<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
<target>Nom columna duplicada:</target>
</trans-unit>

<trans-unit id="addBtn">
<source>Añadir</source>
<target>Afegir</target>
</trans-unit>

<trans-unit id="measureLabel">
<source>Medida:</source>
<target>Mesura</target>
</trans-unit>

<trans-unit id="operationLabel">
<source>Operación</source>
<target>Operació</target>
</trans-unit>

<trans-unit id="numericalValueLabel">
<source>Valor numérico</source>
<target>Valor numèric</target>
</trans-unit>

<trans-unit id="newNameLabel">
<source>Nuevo nombre</source>
<target>Nou nom</target>
</trans-unit>

</body>
</file>
</xliff>
26 changes: 26 additions & 0 deletions eda/eda_app/src/locale/messages.en.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -3928,6 +3928,32 @@ Login<x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/>
<target>Duplicated column name:</target>
</trans-unit>

<trans-unit id="addBtn">
<source>Añadir</source>
<target>Add</target>
</trans-unit>

<trans-unit id="measureLabel">
<source>Medida</source>
<target>Measure</target>
</trans-unit>

<trans-unit id="operationLabel">
<source>Operación</source>
<target>Operation</target>
</trans-unit>

<trans-unit id="numericalValueLabel">
<source>Valor numérico</source>
<target>Numerical value</target>
</trans-unit>

<trans-unit id="newNameLabel">
<source>Nuevo nombre</source>
<target>New name</target>
</trans-unit>


</body>
</file>
</xliff>

0 comments on commit c44db69

Please sign in to comment.