mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Use $(lang) instead of less explicit $(C).
This commit is contained in:
parent
0407633145
commit
dd3702ca5f
22
po/Makefile
22
po/Makefile
@ -64,13 +64,13 @@ $(srcdir)/$(PACKAGE).pot: $(POTFILES_REL)
|
|||||||
|
|
||||||
update-po: Makefile $(srcdir)/$(PACKAGE).pot
|
update-po: Makefile $(srcdir)/$(PACKAGE).pot
|
||||||
@cd $(srcdir)
|
@cd $(srcdir)
|
||||||
@$(foreach C,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
||||||
echo -n "$(C): "; \
|
echo -n "$(lang): "; \
|
||||||
if $(MSGMERGE) $(C).po $(PACKAGE).pot -o $(C).new.po; then \
|
if $(MSGMERGE) $(lang).po $(PACKAGE).pot -o $(lang).new.po; then \
|
||||||
mv -f $(C).new.po $(C).po; \
|
mv -f $(lang).new.po $(lang).po; \
|
||||||
else \
|
else \
|
||||||
echo "msgmerge failed!"; \
|
echo "msgmerge failed!"; \
|
||||||
rm -f $(C).new.po; \
|
rm -f $(lang).new.po; \
|
||||||
fi; \
|
fi; \
|
||||||
)
|
)
|
||||||
$(MAKE) update-gmo
|
$(MAKE) update-gmo
|
||||||
@ -83,9 +83,9 @@ update-gmo: Makefile $(GMOFILES)
|
|||||||
#
|
#
|
||||||
|
|
||||||
check-po:
|
check-po:
|
||||||
@$(foreach C,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
||||||
echo -n "$(C): "; \
|
echo -n "$(lang): "; \
|
||||||
$(GMSGFMT) --check --check-accelerators=~ --verbose --statistics -o /dev/null $(C).po; \
|
$(GMSGFMT) --check --check-accelerators=~ --verbose --statistics -o /dev/null $(lang).po; \
|
||||||
)
|
)
|
||||||
|
|
||||||
### Installation and distribution
|
### Installation and distribution
|
||||||
@ -96,9 +96,9 @@ install-local: install-local-$(CONFIG_NLS)
|
|||||||
install-local-no:
|
install-local-no:
|
||||||
install-local-yes:
|
install-local-yes:
|
||||||
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
|
||||||
@$(foreach C,$(basename $(CATALOGS)), \
|
@$(foreach lang,$(basename $(CATALOGS)), \
|
||||||
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$(C)/LC_MESSAGES; \
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES; \
|
||||||
$(call ncmd,installdata,$(C).gmo,$(DESTDIR)$(localedir)/$(C)/LC_MESSAGES/$(PACKAGE).mo); \
|
$(call ncmd,installdata,$(lang).gmo,$(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES/$(PACKAGE).mo); \
|
||||||
)
|
)
|
||||||
|
|
||||||
# Steal the `dist' target so that .po and .gmo files will be properly updated
|
# Steal the `dist' target so that .po and .gmo files will be properly updated
|
||||||
|
Loading…
Reference in New Issue
Block a user