mbox series

[v4,0/3] lib/oe/package: allow to scan extra directories for locale files

Message ID CZ36N8IH0R6J.ZIQATXFYOO0W@joggee.fr
Headers show
Series lib/oe/package: allow to scan extra directories for locale files | expand

Message

Jonathan GUILLOT Feb. 12, 2024, 2:50 p.m. UTC
Hi,

Following advice from Ross Burton, here is a new version of the patches to allow scanning extra directories for locale files.

Just to remember the full story, playing with cups I observe the main package includes localized HTML templates in ${datadir}/cups/templates. Locale packages were only looking for files in ${datadir}/locale. This serie of patches allows to add extra directories to be scanned.

Following Ross comment, now the directories to be scanned for locales are defined in the LOCALE_PATHS variable containing ${datadir}/locale by default. Recipes may then add extra paths to this list or even overrides it completely e.g. cups now adds ${datadir}/cups/templates.

Regards,
Jonathan GUILLOT

Jonathan GUILLOT (3):
  lib/oe/package: replace in place PN-locale-* packages in PACKAGES
  lib/oe/package: add LOCALE_PATHS to add define all locations for
    locales
  cups: use LOCALE_PATHS to split localized HTML templates

 meta/classes-global/package.bbclass |  1 +
 meta/conf/documentation.conf        |  1 +
 meta/lib/oe/package.py              | 36 ++++++++++++++++++-----------
 meta/recipes-extended/cups/cups.inc |  2 ++
 4 files changed, 26 insertions(+), 14 deletions(-)


base-commit: b0fdf0688109ba6b87840a0837bebee3d9a27089