On Wed, Dec 20 2023 at 04:33:22 PM +01:00:00, Vojtěch Polášek
<krecoun@xxxxxxxxx> 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/440fa05202b0365e07b2cb3e3e693263888ca530?branch=f37
[2]
https://gitlab.gnome.org/GNOME/epiphany/-/blob/598cf2618e23dc1b7dab46d3e01dafa9bc35baf8/data/org.gnome.epiphany.gschema.xml#L36
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue