Thanks Jens
We solved it in another and simpler way, adding a javascript file in the
index.html file called locale.js, in this the definition 'define
("ember-intl / translations", ["exports"], (function ( e) ... 'I think this
method should be in the openxpki standard to simplify the inclusion of
translations.
I attach the locale.js
Thanks a lot
El sáb, 26 dic 2020 a las 18:02, Jens Berthold (<j...@jebecs.de>) escribió:
> Hi Gabriel,
>
> Am 23.12.2020 um 11:42 schrieb Gabriel Carissimo <gcariss...@gmail.com>:
>
>
> Friends
> We are customizing the translations for the application and we are
> receiving these messages, we are missing translations, what should we do,
> is there a way to make a custom file with the missing translations?
>
>
> The messages you are seeing are related to pure UI (Javascript)
> translations that are separate from the other (workflow related) backend
> translations.
>
>
> To create a new set for your locale you need to recompile the Ember.js
> based frontend, but that should not be too difficult (under Linux, with
> Docker available):
>
>
> Assuming that you already checked out the OpenXPKI source code from
> Github, navigate to core/htdocs_source/translations/ and copy the
> en-us.yaml file to a new file es-ar.yaml. (
> https://github.com/openxpki/openxpki/tree/develop/core/htdocs_source/translations
> )
>
>
> Now change the strings in es-ar.yaml.
>
>
> To compile the UI move one dir up to core/htdocs_source/ and run „make“
> which builds a Docker container that is then used to build the UI.
>
>
> If all goes well the new UI assets should be available below
> core/server/htdocs/assets/.
>
> Copy openxpki.js to your OpenXPKI web server directory (into the assets/
> dir).
>
>
> Restart Apache and hopefully your translations are showing up in the UI.
>
>
> Regards
>
> Jens
> _______________________________________________
> OpenXPKI-users mailing list
> OpenXPKI-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openxpki-users
>
define("ember-intl/translations", ["exports"], (function(e) {
"use strict"
Object.defineProperty(e, "__esModule", {
value: !0
}),
e.default = void 0
e.default = [["de-de", {
button: {
confirm_dialog: {
cancel: "Abbrechen",
ok: "Bestätigen"
}
},
component: {
oxi_download: {
copy: "Kopieren",
download: "Herunterladen"
},
oxifield_cert_identifier: {
no_matches: "Keine Zertifikate gefunden"
},
oxifield_datetime: {
timezone: "Zeitzone: {tz}"
},
oxifield_select: {
custom_value: "Angepasst"
},
oxifield_uploadarea: {
binary_file: "Binärdatei",
large_file: "Datei zu gross für Vorschau",
open: "Datei öffnen",
reset: "Leeren"
},
oxisection_form: {
missing_value: "Fehlende Eingabe - bitte ergänzen",
reset: "Zurücksetzen",
submit: "Senden"
},
oxisection_grid: {
select_all: "alle"
}
},
error_popup: {
header: "Anwendungsfehler",
message: "Der Server lieferte nicht die erwarteten JSON-Daten.
Eventuell ist Ihre Sitzung abgelaufen oder es liegt ein interner Fehler vor.",
reload: "Anwendung neu laden"
},
pagination: {
items_per_page: "Einträge pro Seite",
next: "Nächste",
previous: "Vorherige",
x_items: "{count} Einträge"
},
site: {
author: "Das OpenXPKI-Projekt",
autorefresh: "Auto-Aktualisierung",
close_popup: "Schließen",
copyright: "Copyright {year}",
header: "Open Source Trustcenter",
loading: "Laden...",
logout: "Abmelden"
},
userinfo: {
name: "Angemeldet als",
realm: "Realm:"
}
}], ["en-us", {
button: {
confirm_dialog: {
cancel: "Abort",
ok: "Confirm"
}
},
component: {
oxi_download: {
copy: "Copy",
download: "Download"
},
oxifield_cert_identifier: {
no_matches: "No matches found"
},
oxifield_datetime: {
timezone: "Timezone: {tz}"
},
oxifield_select: {
custom_value: "Custom"
},
oxifield_uploadarea: {
binary_file: "Binary file",
large_file: "File too large for preview",
open: "Open file",
reset: "Reset"
},
oxisection_form: {
missing_value: "Please specify a value",
reset: "Reset",
submit: "Send"
},
oxisection_grid: {
select_all: "all"
}
},
error_popup: {
header: "Application Error",
message: "The server did not return JSON data as expected. Maybe
your authentication session has expired or there is an internal error.",
reload: "Reload application"
},
pagination: {
items_per_page: "Items per page",
next: "Next",
previous: "Previous",
x_items: "{count} Items"
},
site: {
author: "The OpenXPKI Project",
autorefresh: "Autorefresh",
close_popup: "Close",
copyright: "Copyright {year}",
header: "Open Source Trustcenter",
loading: "Loading...",
logout: "Log out"
},
userinfo: {
name: "Signed in as",
realm: "Realm:"
}
}],["es-ar", {
button: {
confirm_dialog: {
cancel: "Cancelar",
ok: "Confirmar"
}
},
component: {
oxi_download: {
copy: "Copiar",
download: "Descargar"
},
oxifield_cert_identifier: {
no_matches: "No se encontraron coincidencias"
},
oxifield_datetime: {
timezone: "Zona Horaria: {tz}"
},
oxifield_select: {
custom_value: "Personalizado"
},
oxifield_uploadarea: {
binary_file: "Archivo binario",
large_file: "Archivo demasiado grande para vista previa",
open: "Abrir documento",
reset: "Reiniciar"
},
oxisection_form: {
missing_value: "Especifique un valor",
reset: "Reiniciar",
submit: "Enviar"
},
oxisection_grid: {
select_all: "Todos"
}
},
error_popup: {
header: "Error de la aplicación",
message: "El servidor no devolvió datos JSON como se esperaba.
Quizás su sesión de autenticación ha expirado o hay un error interno.",
reload: "Recargar aplicación"
},
pagination: {
items_per_page: "Artículos por página",
next: "Próximo",
previous: "Previo",
x_items: "{count} Items"
},
site: {
author: "The OpenXPKI Project",
autorefresh: "Autorefrescar",
close_popup: "Cerrar",
copyright: "Copyright {year}",
header: "Open Source Trustcenter",
loading: "Abriendo...",
logout: "Cerrar sesión"
},
userinfo: {
name: "Registrado como",
realm: "Realm:"
}
}]]
}
))
_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users