~ubuntu-branches/ubuntu/precise/zonecheck/precise

« back to all changes in this revision

Viewing changes to zc/publisher/text.rb

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Delafond
  • Date: 2009-10-10 11:40:59 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20091010114059-tnpi531yvdr5329q
Tags: upstream-2.0.4+cvs20081105
ImportĀ upstreamĀ versionĀ 2.0.4+cvs20081105

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: text.rb,v 1.39 2004/01/27 15:20:01 sdalu Exp $
 
1
# $Id: text.rb,v 1.40 2008/11/05 16:31:00 bortzmeyer Exp $
2
2
 
3
3
4
4
# CONTACT     : zonecheck@nic.fr
5
5
# AUTHOR      : Stephane D'Alu <sdalu@nic.fr>
6
6
#
7
7
# CREATED     : 2002/08/02 13:58:17
8
 
# REVISION    : $Revision: 1.39 $ 
9
 
# DATE        : $Date: 2004/01/27 15:20:01 $
 
8
# REVISION    : $Revision: 1.40 $ 
 
9
# DATE        : $Date: 2008/11/05 16:31:00 $
10
10
#
11
11
# CONTRIBUTORS: (see also CREDITS file)
12
12
#
368
368
                    @o.puts "  #{res.testname}"
369
369
                    @o.puts "  #{severity}: #{res.source || 'generic'}"
370
370
                else
371
 
                    status      = Config.severity2tag(severity)
 
371
                    status      = ZC_Config.severity2tag(severity)
372
372
                    l10n_status = $mc.get("word:#{status}").capitalize
373
373
                    source = res.source || $mc.get('word:generic')
374
374
                    msg    = status_message(res.testname, res.desc, severity)
389
389
            end
390
390
 
391
391
            # Status messsage
392
 
            status_tag          = Config.severity2tag(severity)
 
392
            status_tag          = ZC_Config.severity2tag(severity)
393
393
 
394
394
            if @rflag.tagonly
395
 
                status_shorttag = severity || Config::Ok
 
395
                status_shorttag = severity || ZC_Config::Ok
396
396
                status = desc.error ? "[Unexpected] #{testname}" : testname
397
397
            else
398
398
                status_shorttag = $mc.get("word:#{status_tag}_id")