From 7e0aa0d881f50c9d8fa5c94249e5f892f3725b22 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 7 Sep 2011 23:39:18 +0200 Subject: Add po2lo tool --- translations/makefile.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/translations/makefile.mk b/translations/makefile.mk index 1a858c38530..d1dba6d4d9b 100644 --- a/translations/makefile.mk +++ b/translations/makefile.mk @@ -48,15 +48,19 @@ TARGET=translations_merge .INCLUDE : target.mk +.IF "$(OS_FOR_BUILD)"=="WNT" && "$(SYSTEM_PYTHON)"!="YES" +PYTHONCMD=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/python +.ELSE +PYTHONCMD=$(WRAPCMD) $(PYTHON) +.ENDIF + .IF "$(SYSTEM_TRANSLATE_TOOLKIT)" == "YES" OO2PO=oo2po -PO2OO=po2oo .ELSE # "$(SYSTEM_TRANSLATE_TOOLKIT)" == "YES" OO2PO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/oo2po -PO2OO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/po2oo TRANSLATE_TOOLKIT_PYTHONPATH=$(SOLARLIBDIR)$/translate_toolkit .IF "$(SYSTEM_PYTHON)" == "YES" || "$(OS)" == "MACOSX" @@ -94,7 +98,7 @@ $(MISC)/sdf-l10n/%.sdf : $(MISC)/sdf-template/en-US.sdf sed -e "s/\ten-US\t/\tkid\t/" < $@.tmp > $@ rm -f $@.tmp .ELSE - $(PO2OO) --skipsource -i $(PRJ)/source/$(@:b) -t $(MISC)/sdf-template/en-US.sdf -o $@ -l $(@:b) + $(PYTHONCMD) $(SOLARBINDIR)/po2lo --skipsource -i $(PRJ)/source/$(@:b) -t $(MISC)/sdf-template/en-US.sdf -o $@ -l $(@:b) .ENDIF $(MISC)/merge.done : $(foreach,i,$(all_languages) $(MISC)/sdf-l10n/$i.sdf) -- cgit