Custom-lang not working for usermin dashboard

Ubuntu 24.04 LTS
Webmin version 2.302
Usermin version 2.203
Virtualmin version 7.30.7
Authentic theme version 23.02

custom-lang not working for usermin dashboard

I changed all of these files
/usr/share/usermin/authentic-theme/lang/en
/usr/share/webmin/authentic-theme/lang/en

body_usermin=Web Manager version

I placed a file named custom-lang in both directories with
/etc/webmin/
/etc/usermin/

Webmin Dashboard text is changed but the usermin dashboard text remains the same which is “Usermin version”

I edited /usr/share/usermin/authentic-theme/sysinfo.cgi

I edited these lines but it had no effect, I even commented out these lines but usermin dashboard still showed usermin version.

Blockquote

# Webmin and Usermin versions
if ($webmin_version) {
    push @table_data, [theme_text('body_webmin'), $webmin_version, 'sysinfo_webmin_version'];

    # Usermin version
    if ($has_usermin) {
        push @table_data,
          [theme_text('body_usermin'), product_version_update($has_usermin_version, 'u'), 'sysinfo_usermin_version'];
    }
}

Blockquote

After all of this, I rebooted both Usermin and Webmin, and then I upgraded Usermin to the development version. But the problem remains the same.

You should never modify files from the package! Instead, use /etc/webmin and /etc/usermin to make changes that will persist through package upgrades.

To make it work for your case in Usermin, you need to specify the correct language string by adding:

right_usermin=Web Manager version

…in the following file:

/etc/usermin/mailbox/custom-lang

To be clear, the language strings we need to override are located in the /usr/libexec/usermin/mailbox/lang/en file.

Thanks for the quick reply. I knew those package file modifications would not persist but at that time was just checking what worked and what didn’t.

A little off-topic but I was wondering if the usermin logo on the left top menu can be changed or turned off.

Yes, you could use a theme CSS extension feature to override it like this:

.wbm-webmin:before {
    content: '\f0d2';
}