Skip to content
Snippets Groups Projects
Commit a5e08d36 authored by Franco Pariani's avatar Franco Pariani
Browse files

Internationalization

parent 0c2b6b77
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,21 @@ ...@@ -13,10 +13,21 @@
[disabled]="!archivo.editable || archivo.estado=='Corregido' || archivo.estado == 'Entregado'" [disabled]="!archivo.editable || archivo.estado=='Corregido' || archivo.estado == 'Entregado'"
*ngIf="archivo" [(ngModel)]="archivo.nombre" (keyup)="archivoModificado()" placeholder='{{ "i18n.msg.file.fileName" | translate }}' /> *ngIf="archivo" [(ngModel)]="archivo.nombre" (keyup)="archivoModificado()" placeholder='{{ "i18n.msg.file.fileName" | translate }}' />
<button
style="margin-left: 5px; float: right;"
id="shortcutsPopover"
class="btn btn-sm btn-secondary"
placement="bottom"
[ngbPopover]=shortcutsPopoverContent
#popover="ngbPopover"
popoverTitle='{{ "i18n.object.shortcuts" | translate | titleCase }}'
tiggers="click">
<i class="fa fa-keyboard-o"></i>
</button>
<button <button
id="downloadFileButton" id="downloadFileButton"
(click)="downloadFile()" (click)="downloadFile()"
style="margin-left: 10px; float: right;" style="margin-left: 5px; float: right;"
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary"
placement="bottom" placement="bottom"
ngbPopover='{{ "i18n.action.export" | translate | titleCase }} (Ctrl+E)' ngbPopover='{{ "i18n.action.export" | translate | titleCase }} (Ctrl+E)'
...@@ -25,7 +36,7 @@ ...@@ -25,7 +36,7 @@
<i class="fa fa-download "></i> <i class="fa fa-download "></i>
</button> </button>
<button <button
style="margin-left: 10px; float: right;" style="margin-left: 5px; float: right;"
id="popover" class="btn btn-sm btn-secondary" id="popover" class="btn btn-sm btn-secondary"
placement="bottom" placement="bottom"
[ngbPopover]=popoverContent [ngbPopover]=popoverContent
...@@ -35,7 +46,7 @@ ...@@ -35,7 +46,7 @@
<i class="fa fa-gear"></i> <i class="fa fa-gear"></i>
</button> </button>
<div <div
style="margin-left: 10px; float: right;" style="margin-left: 5px; float: right;"
ngbPopover='{{ "i18n.action.save" | translate | titleCase }} {{ "i18n.object.file" | translate | titleCase }} (Ctrl+G)' ngbPopover='{{ "i18n.action.save" | translate | titleCase }} {{ "i18n.object.file" | translate | titleCase }} (Ctrl+G)'
triggers="mouseenter:mouseleave" triggers="mouseenter:mouseleave"
placement="bottom" > placement="bottom" >
...@@ -44,7 +55,7 @@ ...@@ -44,7 +55,7 @@
</button> </button>
</div> </div>
<button <button
style="margin-left: 10px; float: right;" style="margin-left: 5px; float: right;"
(click)="reiniciarInterprete()" (click)="reiniciarInterprete()"
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary"
ngbPopover='{{ "i18n.action.restart" | translate | titleCase }} {{ "i18n.object.interpreter" | translate | titleCase }} (Ctrl+R)' ngbPopover='{{ "i18n.action.restart" | translate | titleCase }} {{ "i18n.object.interpreter" | translate | titleCase }} (Ctrl+R)'
...@@ -53,7 +64,7 @@ ...@@ -53,7 +64,7 @@
<i class="fa fa-refresh"></i> <i class="fa fa-refresh"></i>
</button> </button>
<button <button
style="margin-left: 10px; float: right;" style="margin-left: 5px; float: right;"
(click)="runCode()" (click)="runCode()"
class="btn btn-sm btn-secondary" class="btn btn-sm btn-secondary"
ngbPopover='{{ "i18n.action.load" | translate | titleCase }} {{ "i18n.object.program" | translate | titleCase }} (Ctrl+P)' ngbPopover='{{ "i18n.action.load" | translate | titleCase }} {{ "i18n.object.program" | translate | titleCase }} (Ctrl+P)'
...@@ -99,8 +110,8 @@ ...@@ -99,8 +110,8 @@
</label> </label>
<br> <br>
<label> <label>
<input type="checkbox" style="width: 15px; display: inline-block;" name="hintsCheck" class="form-control form-control-sm" [(ngModel)]=hintsCheck (change)="changeHints()"> <input type="checkbox" style="width: 15px; display: inline-block;" name="hintsCheck" class="form-control form-control-sm" [(ngModel)]=hintsCheck>
Mostrar sugerencias de autocompletar {{ "i18n.msg.codemirror.showHints" | translate }}
</label> </label>
</div> </div>
<div class="form-group"> <div class="form-group">
...@@ -111,13 +122,13 @@ ...@@ -111,13 +122,13 @@
<ng-template #shortcutsPopoverContent style="width: 15em"> <ng-template #shortcutsPopoverContent style="width: 15em">
<div style="width: 15em"> <div style="width: 15em">
<div class="form-group"> <div class="form-group">
<label><b>Ctrl+P</b> Ejecutar el código</label> <label><b>Ctrl+P</b> {{ "i18n.shortcuts.runCode" | translate }}</label>
<label><b>Ctrl+A</b> Nuevo archivo</label> <label><b>Ctrl+A</b> {{ "i18n.shortcuts.newFile" | translate }}</label>
<label><b>Ctrl+O</b> Abrir menú de opciones</label> <label><b>Ctrl+O</b> {{ "i18n.shortcuts.openMenu" | translate }}</label>
<label><b>Ctrl+E</b> Exportar archivo puntual</label> <label><b>Ctrl+E</b> {{ "i18n.shortcuts.exportFile" | translate }}</label>
<label><b>Ctrl+R</b> Reiniciar intérprete</label> <label><b>Ctrl+R</b> {{ "i18n.shortcuts.restartInterpreter" | translate }}</label>
<label><b>Ctrl+G</b> Guardar archivo</label> <label><b>Ctrl+G</b> {{ "i18n.shortcuts.saveFile" | translate }}</label>
<label><b>Ctrl+Space</b> Autocompletar</label> <label><b>Ctrl+Space</b> {{ "i18n.shortcuts.autocomplete" | translate }}</label>
</div> </div>
</div> </div>
</ng-template> </ng-template>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
}, },
"object" : { "object" : {
"settings" : "settings", "settings" : "settings",
"shortcuts" : "shortcuts",
"theme" : "theme", "theme" : "theme",
"name" : "name", "name" : "name",
"descr" : "description", "descr" : "description",
...@@ -71,7 +72,8 @@ ...@@ -71,7 +72,8 @@
"fontSize" : "Font Size", "fontSize" : "Font Size",
"functionWarnings": "Show warnings of use of functions", "functionWarnings": "Show warnings of use of functions",
"infixOperatorsWarnings" : "Show warnings of use of infix operators", "infixOperatorsWarnings" : "Show warnings of use of infix operators",
"cursorPosition" : "Cursor position" "cursorPosition" : "Cursor position",
"showHints" : "Show autocomplete hints"
}, },
"figure" : { "figure" : {
"multiPlot" : "Multi graph", "multiPlot" : "Multi graph",
...@@ -116,6 +118,15 @@ ...@@ -116,6 +118,15 @@
"group" : { "group" : {
"select" : "Select a group" "select" : "Select a group"
} }
},
"shortcuts" : {
"runCode" : "Execute the code",
"newFile" : "New file",
"openMenu" : "Open options menu",
"exportFile" : "Export point file",
"restartInterpreter" : "Restart interpreter",
"saveFile" : "Save File",
"autocomplete" : "Autocomplete"
} }
} }
} }
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
}, },
"object" : { "object" : {
"settings" : "configuración", "settings" : "configuración",
"shortcuts" : "atajos",
"name" : "nombre", "name" : "nombre",
"descr" : "descripción", "descr" : "descripción",
"user" : "usuario", "user" : "usuario",
...@@ -71,7 +72,8 @@ ...@@ -71,7 +72,8 @@
"fontSize" : "Tamaño de fuente", "fontSize" : "Tamaño de fuente",
"functionWarnings": "Mostrar advertencias de uso de funciones", "functionWarnings": "Mostrar advertencias de uso de funciones",
"infixOperatorsWarnings" : "Mostrar advertencias de uso de operadores infijos", "infixOperatorsWarnings" : "Mostrar advertencias de uso de operadores infijos",
"cursorPosition" : "Posición del cursor" "cursorPosition" : "Posición del cursor",
"showHints" : "Mostrar sugerencias de autocompletar"
}, },
"figure" : { "figure" : {
"multiPlot" : "Multi gráfica", "multiPlot" : "Multi gráfica",
...@@ -116,6 +118,15 @@ ...@@ -116,6 +118,15 @@
"group" : { "group" : {
"select" : "Seleccione un grupo" "select" : "Seleccione un grupo"
} }
},
"shortcuts" : {
"runCode" : "Ejecutar el código",
"newFile" : "Nuevo archivo",
"openMenu" : "Abrir menú de opciones",
"exportFile" : "Exportar archivo puntual",
"restartInterpreter" : "Reiniciar intérprete",
"saveFile" : "Guardar archivo",
"autocomplete" : "Autocompletar"
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment