Re: [OpenXPKI-users] Display Names for Custom Profiles
Hi Mark, > I found the display names in "/etc/openxpki/contrib/i18n/en_US/openxpki.po" > file and added a new entry for msgid > "I18N_OPENXPKI_UI_PROFILE_TLS_SERVER_LABEL_5Y" with a msgstr of "TLS/Web > Server (5 years)". The translations in OpenXPKI are handled by Gnu Gettext. The following procedure should work: - leave openxpki.po untouched (it may get updated from upstream) - add a openxpki.po.local in the same directory, place your local translations there - if you specify existing translations in openxpki.po.local, they will be preferred over the existing ones in openxpki.po by the following procedure In order to activate the translations run msgcat --use-first openxpki.po.local openxpki.po | msgfmt -o openxpki.mo - Copy the resulting openxpki.mo file to /usr/share/locale/LANGUAGE/LC_MESSAGES/openxpki.mo Restart Apache (in some cases you also need to restart openxpki), and your new translations should be displayed properly. Cheers Martin ___ OpenXPKI-users mailing list OpenXPKI-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openxpki-users
[OpenXPKI-users] Display Names for Custom Profiles
Hello, I have created a custom profile where I want to extend the "TLS/Web Server" certificate from 1 year to 5 years. I went into the "/etc/openxpki/config.d/realm/democa/profile" directory and copied "tls_server.yaml" to a new file "tls_server_5y.yaml". Within the tls_server_5y.yaml file I modified the label to be unique to "I18N_OPENXPKI_UI_PROFILE_TLS_SERVER_LABEL_5Y" and added the validity parameter I wanted. I found the display names in "/etc/openxpki/contrib/i18n/en_US/openxpki.po" file and added a new entry for msgid "I18N_OPENXPKI_UI_PROFILE_TLS_SERVER_LABEL_5Y" with a msgstr of "TLS/Web Server (5 years)". I restarted the OpenXPKI and Apache services but my web UI Certificate Profile picker is showing "I18N_OPENXPKI_UI_PROFILE_TLS_SERVER_LABEL_5Y" as a label. The new certificate profile works as expected, but the Web UI display is not picking up the new msgstr. I have grep through the files to see if there is another location, and the only other I can see is in the German Localization file which I am not utilizing. Could someone please give me a pointer on how to properly display my new profile in the Web UI? I am thinking this is something in Perl that I am obviously not familiar with, so any all and all help is greatly appreciated. Thank you Mark. ___ OpenXPKI-users mailing list OpenXPKI-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openxpki-users