code: def generate(env,**kw):
    
    import SCons.Util
    from SCons.Tool.GettextCommon import _detect_msgfmt
    try:
      env['MSGFMT'] = _detect_msgfmt(env)
    except:
      env['MSGFMT'] = 'msgfmt'
    env.SetDefault(
      MSGFMTFLAGS = [ SCons.Util.CLVar('-c') ],
      MSGFMTCOM = '$MSGFMT $MSGFMTFLAGS -o $TARGET $SOURCE',
      MSGFMTCOMSTR = '',
      MOSUFFIX = ['.mo'],
      POSUFFIX = ['.po']
    )
    env.Append( BUILDERS = { 'MOFiles'  : _create_mo_file_builder(env) } )
docs: Generate `msgfmt` tool