Hi James,

please check the locale related settings in webui/default.conf - the translations for the UI are done by the frontend having its own configuration.

Check if you have the file "openxpki.mo" inside the directory listed there (inside the subpath LC_MESSAGES) - I dont know how this is packages on FreeBSD but in the Linux builds the translation comes as a dedicated package "openxpki-i18n". If you can not find anything related, you can build this file using "msgfmt" from the gettext package from the PO Files found in the source repository.

Oliver

On 11.03.24 14:47, James B. Byrne via OpenXPKI-users wrote:
I would appreciate some help with debugging my difficulties with I18N in WebUI.
  What I see are the variable names / translation keys In other words things
like I18N_OPENXPKI_UI_CLEAR_LOGIN).  As far as I can determine the
configuration for translations is correct:

In config.d/system/server.yaml I have this:

# settings for i18n
i18n:
     locale_directory: /usr/share/locale
     default_language: C

The system locale is C:

# locale
LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_TIME="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=

The en_US.UTF-8 locale is installed:

# ll /usr/share/locale/en_US.UTF-8
total 35
-r--r--r--  1 root  wheel  79692 Jan 19 13:52 LC_COLLATE
lrwxr-xr-x  1 root  wheel     19 Feb  3  2022 LC_CTYPE -> ../C.UTF-8/LC_CTYPE
-r--r--r--  1 root  wheel     74 Dec  2  2021 LC_MESSAGES
-r--r--r--  1 root  wheel     32 Dec  2  2021 LC_MONETARY
-r--r--r--  1 root  wheel      6 Dec  2  2021 LC_NUMERIC
-r--r--r--  1 root  wheel    377 Dec  2  2021 LC_TIME

What else is required?  This is what is logged to /var/log/openxpki/webui.log.
[Mon Mar 11 08:45:57.195210 2024] [core:error] [pid 75944] [client
192.168.216.89:50849] End of script output before headers: webui.fcgi, referer:
https://192.168.216.89/openxpki/

Thanks,



--
Protect your environment -  close windows and adopt a penguin!



_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to