Bug 277514 - security/p5-openxpki - I18N Translations do not appear in webui
Summary: security/p5-openxpki - I18N Translations do not appear in webui
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 20:31 UTC by James B. Byrne
Modified: 2024-03-05 20:56 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (svysh.fbsd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James B. Byrne 2024-03-05 20:31:19 UTC
FreeBSD-13.2p9

Name           : p5-openxpki
Version        : 3.24.2

Accessing openxpki webui results in the following display:


Open Source Trustcenter

    I18N_OPENXPKI_UI_CLEAR_LOGIN

I18N_OPENXPKI_UI_BACKEND_SESSION_GONE
I18N_OPENXPKI_UI_LOGIN_PLEASE_LOG_IN
I18N_OPENXPKI_UI_LOGIN_REALM_SELECTION_DESC
I18N_OPENXPKI_UI_PKI_REALM_LABEL


The file /usr/local/etc/openxpki/config.d/system/server.yaml contains this stanza:

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


/usr/share locale contains:

drwxr-xr-x  2 root  wheel   3 Dec  2  2021 C.UTF-8
. . .
drwxr-xr-x  2 root  wheel   8 Jan 19 13:52 en_US.UTF-8
. . .

Locale reports:

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 Iridium browser console reports:

Using custom configuration: https://192.168.216.89/openxpki/localconfig.yaml
openxpki-8cf19f22b0cd24f69696356e31d6651b.js:487 

Custom CSS file configured: https://192.168.216.89/openxpki/custom.css
custom.css:1 

Failed to load resource: the server responded with a status of 404 (Not Found)
custom.css:1 
        
Failed to load resource: the server responded with a status of 404 (Not Found)
Comment 1 James B. Byrne 2024-03-05 20:56:18 UTC
One important point.  The webui errors do not appear unless and until the Apache httpd daemon is restarted.