> How do you detect a binary that will want to load some specific translations? 
> Is it just some guess or should be up to packager to fill in or?

FWIW in openSUSE many packages have a "-lang" subpackage to contain all 
translations. Those packages in turn have automated provides that translate 
into a locale namespace for libsolv, eg. `rpm -q --provides bash-lang`:
```[...]
locale(bash:es)
```

That basically instructs libsolv to install `bash-lang` if `bash` is installed 
and the system is in Spanish.
https://github.com/openSUSE/rpm-config-SUSE/blob/master/fileattrs/locale.attr
https://github.com/openSUSE/rpm-config-SUSE/blob/master/scripts/locale.prov

That mechanism would still work if splitting would be fine grained to the level 
of one locale per package.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1276#issuecomment-647512303
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to