diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-09-07 23:39:18 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-09-15 10:26:42 +0200 |
commit | 7e0aa0d881f50c9d8fa5c94249e5f892f3725b22 (patch) | |
tree | 762927db41d49518d2a4bb8489d9af9028f24525 | |
parent | 0f448ce7c01065e2dc11baf1b4a034f0cf710146 (diff) |
Add po2lo tool
-rw-r--r-- | translations/makefile.mk | 10 |
1 files 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) |