summaryrefslogtreecommitdiff
path: root/locale/Makefile
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-01-24 12:06:34 -0500
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-01-24 12:06:34 -0500
commitfe0d6115ddbf8e88fea8f34c808593b49f91e464 (patch)
tree612daf99603a669fe874b0fc3a6a68b2081ddf54 /locale/Makefile
parent7281649214e40ab3957e854ca35b7c671f95b084 (diff)
downloadcups-fe0d6115ddbf8e88fea8f34c808593b49f91e464.tar.gz
Update localization of IPP attribute/value pairs (Issue #5495)
Note: This adds a cups_en.po file containing the real localized strings, with cups.pot pulling from ipp-strings.c which is generated from the IANA IPP registry. Localizer comments are included to help translators do all of those string... After the "purge", all of the non-English localization files are well below the 90% goal for translating... :(
Diffstat (limited to 'locale/Makefile')
-rw-r--r--locale/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/locale/Makefile b/locale/Makefile
index 53c302cb9..6e430b50f 100644
--- a/locale/Makefile
+++ b/locale/Makefile
@@ -67,16 +67,14 @@ install-data: $(INSTALL_LANGUAGES)
install-languages:
$(INSTALL_DIR) -m 755 $(LOCALEDIR)
- for loc in $(LANGUAGES) ; do \
+ for loc in en $(LANGUAGES) ; do \
if test -f cups_$$loc.po; then \
$(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
$(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
fi ; \
done
- $(INSTALL_DIR) -m 755 $(LOCALEDIR)/en
- $(INSTALL_DATA) cups.pot $(LOCALEDIR)/en/cups_en.po
-install-langbundle: po2strings
+install-langbundle: cups.strings
$(INSTALL_DIR) -m 755 "$(BUILDROOT)$(RESOURCEDIR)"
$(INSTALL_DATA) cups.strings "$(BUILDROOT)$(RESOURCEDIR)"
@@ -109,7 +107,7 @@ install-libs:
uninstall: $(UNINSTALL_LANGUAGES)
uninstall-languages:
- -for loc in $(LANGUAGES) ; do \
+ -for loc in en $(LANGUAGES) ; do \
$(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
done
@@ -128,12 +126,12 @@ pot: checkpo po2strings
mv cups.pot cups.pot.bck
touch cups.pot
cd ..; xgettext -o locale/cups.pot -cTRANSLATORS -s \
- --keyword=_ --no-wrap \
+ --keyword=_ --no-wrap --from-code utf-8 \
--copyright-holder="Apple Inc." \
--package-name="CUPS" --package-version="$(CUPS_VERSION)" \
--msgid-bugs-address="https://github.com/apple/cups/issues" \
*/*.c */*.cxx
- (cat cups.header; tail +6 cups.pot; cat cups.footer) > cups.pot.N
+ (cat cups.header; tail +6 cups.pot) > cups.pot.N
mv cups.pot.N cups.pot
echo Checking cups.pot...
./checkpo cups.pot
@@ -145,7 +143,11 @@ pot: checkpo po2strings
msgmerge -o $$loc -s -N --no-location $$loc cups.pot ; \
done
echo Updating cups.strings...
- ./po2strings cups.pot cups.strings
+ ./po2strings cups_en.po cups.strings
+
+cups.strings: cups_en.po po2strings
+ echo Updating cups.strings...
+ ./po2strings cups_en.po cups.strings
#