| 1 |
Description: Change install-locales directory to use l10n |
| 2 |
The .ftl files for rust-coreutils have been moved to a separate |
| 3 |
repository. This patch will use the translations provided by that |
| 4 |
repository. |
| 5 |
. |
| 6 |
rust-coreutils (0.5.0-0ubuntu2) resolute; urgency=medium |
| 7 |
. |
| 8 |
* Add and install l10n translation files. |
| 9 |
Author: Simon Johnsson <[email protected]> |
| 10 |
Forwarded: not-needed |
| 11 |
Last-Update: 2026-01-30 |
| 12 |
--- |
| 13 |
|
| 14 |
--- a/GNUmakefile |
| 15 |
+++ b/GNUmakefile |
| 16 |
@@ -271,15 +271,19 @@ install-locales: |
| 17 |
done; \ |
| 18 |
fi |
| 19 |
@for prog in $(INSTALLEES_WITH_EXTRA_LOCALE); do \ |
| 20 |
- if [ -d "$(BASEDIR)/src/uu/$$prog/locales" ]; then \ |
| 21 |
+ if [ -d "$(BASEDIR)/l10n/src/uu/$$prog/locales" ]; then \ |
| 22 |
$(INSTALL) -d "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog"; \ |
| 23 |
- for locale_file in "$(BASEDIR)"/src/uu/$$prog/locales/*.ftl; do \ |
| 24 |
+ for locale_file in "$(BASEDIR)"/l10n/src/uu/$$prog/locales/*.ftl; do \ |
| 25 |
if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \ |
| 26 |
$(INSTALL) -m 644 "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog/"; \ |
| 27 |
fi; \ |
| 28 |
done; \ |
| 29 |
fi; \ |
| 30 |
done |
| 31 |
+ if [ -d "$(BASEDIR)/l10n/src/uucore/locales" ]; then \ |
| 32 |
+ mkdir -p "$(DESTDIR)$(DATAROOTDIR)/locales/uucore"; \ |
| 33 |
+ $(INSTALL) -m 644 "$(BASEDIR)"/l10n/src/uucore/locales/* "$(DESTDIR)$(DATAROOTDIR)/locales/uucore/"; \ |
| 34 |
+ fi; |
| 35 |
else |
| 36 |
locales: |
| 37 |
install-locales: |