code: def generate(env,**kw):
    
    from SCons.Tool.GettextCommon import _detect_msgmerge
    try:
      env['MSGMERGE'] = _detect_msgmerge(env)
    except:
      env['MSGMERGE'] = 'msgmerge'
    env.SetDefault(
      POTSUFFIX = ['.pot'],
      POSUFFIX = ['.po'],
      MSGMERGECOM = '$MSGMERGE  $MSGMERGEFLAGS --update $TARGET $SOURCE',
      MSGMERGECOMSTR = '',
      MSGMERGEFLAGS = [ ],
      POUPDATE_ALIAS = 'po-update'
    )
    env.Append(BUILDERS = { '_POUpdateBuilder':_POUpdateBuilder(env) })
    env.AddMethod(_POUpdateBuilderWrapper, 'POUpdate')
    env.AlwaysBuild(env.Alias('$POUPDATE_ALIAS'))
docs: Generate the `xgettext` tool