From 0f68765df384fe5bda2b4617598d3019d28c39df Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 26 Jan 2006 13:38:53 +0000 Subject: [PATCH] Revive the gettext module. [SVN r32419] --- v2/tools/gettext.jam | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/v2/tools/gettext.jam b/v2/tools/gettext.jam index 0a6054a97..604fbc4fe 100644 --- a/v2/tools/gettext.jam +++ b/v2/tools/gettext.jam @@ -136,7 +136,9 @@ class update-translations-generator : generator local types = [ $(property-set).get ] ; types ?= "C CPP" ; types = [ regex.split $(types) " " ] ; - property-set = [ property-set.empty ] ; + + local keywords = [ $(property-set).get ] ; + property-set = [ property-set.create $(keywords:G=) ] ; # First deterime the list of sources that must be scanned for # messages. @@ -162,15 +164,15 @@ class update-translations-generator : generator # Create the POT file, which will contain list of messages extracted # from the sources. local extract = - [ new action $(right-sources) : gettext.extract ] ; + [ new action $(right-sources) : gettext.extract : $(property-set) ] ; local new-messages = [ new file-target $(name) : gettext.POT : $(project) : $(extract) ] ; # Create a notfile target which will update the existing translation file - # with new messages. - local a = [ new action $(r) : $(sources[1]) $(new-messages) + # with new messages. + local a = [ new action $(sources[1]) $(new-messages) : gettext.update-po-dispatch ] ; - local r = [ new notfile-target $(name) : $(project) : $(a) ] ; + local r = [ new notfile-target $(name) : $(project) : $(a) ] ; .constructed = [ virtual-target.register $(r) ] ; } else