- generate Texinfo skeletons with @translationof;
- do not copy any file besides GNUmakefile and Texinfo skeletons into
new language directories -- for each such file, either it is common to
all languages or it needs to be translated, thus in either case it
should not be copied into the new language directory;
- do not create directories for nuts, they can be created later using
TRANSLATION_DIRS=newdir new-lang.
\n\
Translations specific targets (see TRANSLATION for details):\n\
new-lang ISOLANG=LL create and initialize subdirectory \'LL' for language \'LL\n\
\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\
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\
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
|| mv $(outdir)/$$i $(ISOLANG)/$(DIR)/$$i;\
done
new-lang:
# Also for updating/adding missing files
$(foreach i,$(TRANSLATION_DIRS),$(MAKE) new-lang-dir DIR=$(i) &&) :
$(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 ***"
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)
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:
TELY_FILES = $(call src-wildcard,$(ISOLANG)/*.tely)
skeleton-update:
subst.update (locals ())
g.write (i_blurb % subst)
tutu = texinfo_with_menus_re.findall (texifile)
subst.update (locals ())
g.write (i_blurb % subst)
tutu = texinfo_with_menus_re.findall (texifile)
for item in tutu:
if item[0] == '*':
g.write ('* ' + item[1] + '::\n')
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 item[3].startswith ('{') or not item[3].strip ():
space = ''
g.write ('@' + item[2] + space + item[3] + '\n')
+ if node_just_defined:
+ g.write ('@translationof ' + node_just_defined + '\n')
elif item[2] == 'include':
includes.append (item[3])
else:
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':
output_file.write ('# @' + item[2] + ' in ' + \
printedfilename + '\n_(r"' + item[3].strip () + '")\n')
if item[2] == 'node':
+ node_just_defined = item[3].strip ()
g.write (end_blurb)
g.close ()
g.write (end_blurb)
g.close ()