mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
gettext.mk: Create a LC_MESSAGES link to .
A directory with gettext.mk in it, provided it has a locale name, makes the parent directory to a working localedir, which can be used from within the janware source tree, so add it with the all target and remove it with clean. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d7106c7c10
commit
57e63b2582
1 changed files with 8 additions and 1 deletions
|
|
@ -14,8 +14,9 @@ GETTEXT_INPUT_DIRS ?= $(wildcard $(TOPDIR)/tools $(TOPDIR)/src $(TOPDIR
|
|||
GETTEXT_INPUT_FILES ?= $(foreach d,$(GETTEXT_INPUT_DIRS),\
|
||||
$(shell find $d -name '*.php' -o -name '*.cpp' -o -name '*.conf'))
|
||||
GETTEXT_KEYWORDS ?= htr ehtr $(GETTEXT_EXTRA_KEYWORDS)
|
||||
GETTEXT_LINKS ?= LC_MESSAGES
|
||||
|
||||
all: $(GETTEXT_MO)
|
||||
all: $(GETTEXT_MO) | $(GETTEXT_LINKS)
|
||||
clean: clean-mo
|
||||
$(RM) -rf *~ .*.swp
|
||||
install: install_MO
|
||||
|
|
@ -49,6 +50,12 @@ edit: merge $(GETTEXT_PROJECT_POT)
|
|||
msgfmt --check --verbose --output-file $@.tmp $<
|
||||
mv $@.tmp $@
|
||||
|
||||
LC_%:
|
||||
ln -s . $@
|
||||
clean.lc-links:
|
||||
rm -f $(GETTEXT_LINKS)
|
||||
clean: clean.lc-links
|
||||
|
||||
#msginit --no-translator --locale es_MX --output-file $(PROJECT)_spanish.po --input $(PROJECT).pot
|
||||
#sed --in-place $(PROJECT)_spanish.po --expression = '/"hello, world!"/,/#: / s/""/"hola mundo"/'
|
||||
#mkdir --parents ./es_MX.utf8/LC_MESSAGES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue