\n\
Translations specific targets (see TRANSLATION for details):\n\
new-lang ISOLANG=LL create and initialize subdirectory \'LL' for language \'LL\n\
+(if \'LL exists, update missing file)\n\
po-update update and replace PO files for documentation with msgmerged versions\n\
check-translation ISOLANG=LL show changes in English docs since last translation update\n\
update-translation ISOLANG=LL call $$$$EDITOR to help updating the translation\n\
rm -f $(outdir)/$(DIR).tely $(outdir)/$(DIR).texi
for i in $$(cd $(outdir) && ls -1 *.*tely *.*texi); do\
test -e $(ISOLANG)/$(DIR)/$$i\
+ || test -e $(ISOLANG)/$$i\
|| mv $(outdir)/$$i $(ISOLANG)/$(DIR)/$$i;\
done
new-lang:
# Also for updating/adding missing files
+ mkdir -p $(ISOLANG)
$(foreach i,$(TRANSLATION_DIRS),$(MAKE) new-lang-dir DIR=$(i) &&) :
- $(foreach i, $(EXTRA_TRANSLATION_FILES), \
- (test -e $(ISOLANG)/$(i) \
- || cp fr/$(i) $(ISOLANG)/$(i)) && ) true
msgmerge -U po/lilypond-doc.pot $(outdir)/doc.pot
test -e po/$(ISOLANG).po || cp po/lilypond-doc.pot po/$(ISOLANG).po
@echo "*** Please add a language definition for $(ISOLANG) in python/langdefs.py ***"
-#TRANSLATION_DIRS = $(shell git ls-files $(ISOLANG) | $(PYTHON) $(buildscript-dir)/pytt.py '/[^/]*$$' / | sort -u )
-TRANSLATION_DIRS = general learning notation texidocs usage
+TRANSLATION_DIRS = general texidocs
TRANSLATION_FILES = $(shell git ls-files $(ISOLANG) | grep -v GNUmakefile)
-EXTRA_TRANSLATION_FILES =\
- dedication.itely\
- common-macros.itexi\
- macros.itexi\
- translations.html.in\
- translations.template.html.in\
-#
-
TELY_FILES = $(call src-wildcard,$(ISOLANG)/*.tely)
skeleton-update:
subst.update (locals ())
g.write (i_blurb % subst)
tutu = texinfo_with_menus_re.findall (texifile)
- node_trigger = False
+ node_just_defined = ''
for item in tutu:
if item[0] == '*':
g.write ('* ' + item[1] + '::\n')
if item[3].startswith ('{') or not item[3].strip ():
space = ''
g.write ('@' + item[2] + space + item[3] + '\n')
- if node_trigger:
+ if node_just_defined:
+ g.write ('@translationof ' + node_just_defined + '\n')
g.write (n_blurb)
- node_trigger = False
+ node_just_defined = ''
elif item[2] == 'include':
includes.append (item[3])
else:
output_file.write ('# @' + item[2] + ' in ' + \
printedfilename + '\n_(r"' + item[3].strip () + '")\n')
if item[2] == 'node':
- node_trigger = True
+ node_just_defined = item[3].strip ()
g.write (end_blurb)
g.close ()