On Wed, Dec 20 2023 at 04:33:22 PM +01:00:00, Vojtěch Polášek krecoun@gmail.com wrote:
Is it possible to somehow insert a different string in the dconf file depending on locale of the environment where the package is installed?
So first of all, dconf overrides are for system administrators, not distro packagers. I would generally suggest dropping that and use a gsettings override instead [1]. dconf is a gsettings backend. It's not the only one. E.g. if ocrdesktop gets packaged as a flatpak, it will use keyfiles for settings instead of dconf, and will never see your dconf override.
OK, with that general advice out of the way, I'm not sure whether you can set a locale-specific value via a gsettings override. Probably not, so that is actually probably not what you want this time. In this case, I would just patch the gsettings schema. For example, see [2]. This allows translators to provide a good default value for the setting. It's a lot easier if you do this upstream so that upstream translators handle the translations for you.
[1] https://src.fedoraproject.org/rpms/gnome-settings-daemon/c/440fa05202b0365e0... [2] https://gitlab.gnome.org/GNOME/epiphany/-/blob/598cf2618e23dc1b7dab46d3e01da...