public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] lib/oe/package: allow to scan extra directories for locale files
@ 2024-02-12 14:50 Jonathan GUILLOT
  2023-11-30 12:49 ` [PATCH v4 1/3] lib/oe/package: replace in place PN-locale-* packages in PACKAGES Jonathan GUILLOT
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jonathan GUILLOT @ 2024-02-12 14:50 UTC (permalink / raw)
  To: openembedded-core

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
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-19 15:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 14:50 [PATCH v4 0/3] lib/oe/package: allow to scan extra directories for locale files Jonathan GUILLOT
2023-11-30 12:49 ` [PATCH v4 1/3] lib/oe/package: replace in place PN-locale-* packages in PACKAGES Jonathan GUILLOT
2023-12-06 16:03 ` [PATCH v4 2/3] lib/oe/package: add LOCALE_PATHS to add define all locations for locales Jonathan GUILLOT
2023-12-06 16:06 ` [PATCH v4 3/3] cups: use LOCALE_PATHS to split localized HTML templates Jonathan GUILLOT
2024-02-15 16:27   ` [OE-core] " Ross Burton
2024-02-19 10:00     ` Jonathan GUILLOT
2024-02-19 15:10       ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox