mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
lang: add mechanism to clean machine translation files
This commit is contained in:
parent
75eec2281a
commit
e36615208e
@ -24,13 +24,15 @@ PAGER?= less
|
||||
all:
|
||||
@cat ${.CURDIR}/README.md | ${PAGER}
|
||||
|
||||
|
||||
.for LANG in ${LANGUAGES}
|
||||
${LANG}DIR= ${LOCALEDIR:S/%%LANG%%/${LANG}/g}
|
||||
install-${LANG}:
|
||||
@mkdir -p ${DESTDIR}${${LANG}DIR}
|
||||
${MSGFMT} -o ${DESTDIR}${${LANG}DIR}/OPNsense.mo ${LANG}.po
|
||||
|
||||
clean-${LANG}:
|
||||
@rm -f ${DESTDIR}${${LANG}DIR}/OPNsense.mo
|
||||
|
||||
plist-${LANG}:
|
||||
@echo ${${LANG}DIR}/OPNsense.mo
|
||||
|
||||
@ -40,6 +42,7 @@ merge-${LANG}:
|
||||
sed -i '' -e '/^#~.*/d' ${LANG}.po
|
||||
|
||||
INSTALL+= install-${LANG}
|
||||
CLEAN+= clean-${LANG}
|
||||
PLIST+= plist-${LANG}
|
||||
MERGE+= merge-${LANG}
|
||||
.endfor
|
||||
@ -54,6 +57,7 @@ ${TEMPLATE}:
|
||||
|
||||
template: ${TEMPLATE}
|
||||
install: ${INSTALL}
|
||||
clean: ${CLEAN}
|
||||
plist: ${PLIST}
|
||||
merge: ${MERGE}
|
||||
|
||||
|
||||
@ -19,4 +19,8 @@ Merge the latest template changes into the actual translations:
|
||||
|
||||
# make merge
|
||||
|
||||
Remove the compiled translation files from the system/chroot:
|
||||
|
||||
# make clean
|
||||
|
||||
The build system will automatically pick up all registered languages.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user