From e18f86a04197a0d6cf9b5950bd592f485b86e520 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 25 Mar 2016 10:32:53 +0100 Subject: [PATCH] Explain why po files are needed lib/layouttranslations contains translations for all strings from layout files that can appear in document output. These translations are read from .po files by po/lyx_pot.py (using python polib), so up to date po files are needed. --- po/Rules-lyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/po/Rules-lyx b/po/Rules-lyx index 01883c4c45..f71dc6f88c 100644 --- a/po/Rules-lyx +++ b/po/Rules-lyx @@ -31,7 +31,8 @@ layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout \ $(top_srcdir)/lib/layouts/*.module $(LYX_POT) -o $@ -t layouts $^ -#FIXME: I am not sure what this does. Why read the po files in this case? +# Read translatable strings from layouts and translations from the po files and +# create the layouttranslations file containing all LaTeX relevant translations $(top_srcdir)/lib/layouttranslations: $(POFILES) $(top_srcdir)/lib/layouts/*.layout \ $(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/layouts/*.module $(LYX_POT) -o $@ -t layouttranslations ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module