Description: Change install-locales directory to use l10n The .ftl files for rust-coreutils have been moved to a separate repository. This patch will use the translations provided by that repository. . rust-coreutils (0.5.0-0ubuntu2) resolute; urgency=medium . * Add and install l10n translation files. Author: Simon Johnsson Forwarded: not-needed Last-Update: 2026-01-30 --- --- a/GNUmakefile +++ b/GNUmakefile @@ -256,15 +256,19 @@ INSTALLEES_WITH_EXTRA_LOCALE = \ $(if $(findstring sum, $(INSTALLEES)),checksum_common, ) install-locales: @for prog in $(INSTALLEES_WITH_EXTRA_LOCALE); do \ - if [ -d "$(BASEDIR)/src/uu/$$prog/locales" ]; then \ + if [ -d "$(BASEDIR)/l10n/src/uu/$$prog/locales" ]; then \ $(INSTALL) -d "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog"; \ - for locale_file in "$(BASEDIR)"/src/uu/$$prog/locales/*.ftl; do \ + for locale_file in "$(BASEDIR)"/l10n/src/uu/$$prog/locales/*.ftl; do \ if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \ $(INSTALL) -m 644 "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog/"; \ fi; \ done; \ fi; \ done + if [ -d "$(BASEDIR)/l10n/src/uucore/locales" ]; then \ + mkdir -p "$(DESTDIR)$(DATAROOTDIR)/locales/uucore"; \ + $(INSTALL) -m 644 "$(BASEDIR)"/l10n/src/uucore/locales/* "$(DESTDIR)$(DATAROOTDIR)/locales/uucore/"; \ + fi; else locales: install-locales: