TLDR; Thanks for pointing me in the right direction, I figured it out.
I didn’t see a relevant translation file there initially because I was looking for en_US
, so I created a nautilus-iso-date.po
file with the following contents. I took a stab at what was needed based on looking at another translation file (Swedish), wasn’t sure if this would actually work.
#. Translators: date and time in 24h format,
#. * i.e. "2023-12-31 23:59"
#: src/nautilus-date-utilities.c:83
#, no-c-format
msgid "%m/%d/%Y %H:%M"
msgstr "%Y-%m-%d %H:%M"
#. Translators: date and time in 12h format,
#. * i.e. "2023-12-31 11:59 PM"
#: src/nautilus-date-utilities.c:90
#, no-c-format
msgid "%m/%d/%Y %I:%M %p"
msgstr "%Y-%m-%d %I:%M %p"
I opened it with Translator Editor to see if it threw any errors. None seen, so I converted it, changing the file name to just nautilus.mo
…
NOTE: I originally converted it to a file of the same name (
nautlius-iso-date.mo
) but it didn’t work. I found a thread somewhere suggesting that the.mo
file needs to be named after the app its intended for and found that it worked if I named it simplynautilus.mo
.
msgfmt nautilus-iso-date.po -o nautilus.mo
I then copied it…
sudo cp nautilus.mo /usr/share/locale/en/LC_MESSAGES/
After a reboot I’m happy to report that Nautilus is now showing the ISO date format as the custom translation provides.