@@ -300,8 +300,8 @@ def checkMods(self, showModList=False, showCRC=False, showVersion=True,
300300 if removeEslFlag :
301301 log .setHeader (u'=== ' + _ (u'Potentially Incorrect ESL Flag' ))
302302 log (_ (u'Following mods have an ESL flag, but may not qualify. '
303- u' Run \ ' Check ESL Qualifications\ ' on them and/or check '
304- u'them with xEdit to be sure.' ))
303+ u" Run 'Check ESL Qualifications' on them and/or check "
304+ u'them with %s to be sure.' ) % bush . game . xe . full_name )
305305 for mod in sorted (removeEslFlag ):
306306 log (u'* __' + mod .s + u'__' )
307307 if shouldDeactivateB :
@@ -327,34 +327,42 @@ def checkMods(self, showModList=False, showCRC=False, showVersion=True,
327327 log (u'* __' + mod .s + u'__' )
328328 if shouldClean :
329329 log .setHeader (
330- u'=== ' + _ (u'Mods that need cleaning with TES4Edit' ))
331- log (_ (u'Following mods have identical to master (ITM) records,'
332- u' deleted records (UDR), or other issues that should be'
333- u' fixed with TES4Edit. Visit the %(cleaning_wiki_url)s'
334- u' for more information.' ) % {
335- 'cleaning_wiki_url' : self ._cleaning_wiki_url })
330+ u'=== ' + _ (u'Mods that need cleaning with %s' ) %
331+ bush .game .xe .full_name )
332+ log (_ (u'Following mods have identical to master (ITM) '
333+ u'records, deleted records (UDR), or other issues that '
334+ u'should be fixed with %(xedit_name)s. Visit the '
335+ u'%(cleaning_wiki_url)s for more information.' ) % {
336+ u'cleaning_wiki_url' : self ._cleaning_wiki_url ,
337+ u'xedit_name' : bush .game .xe .full_name })
336338 for mod in sorted (shouldClean .keys ()):
337339 log (u'* __' + mod .s + u':__ %s' % shouldClean [mod ])
338340 if shouldCleanMaybe :
339341 log .setHeader (
340342 u'=== ' + _ (u'Mods with special cleaning instructions' ))
341343 log (_ (u'Following mods have special instructions for cleaning '
342- u'with TES4Edit' ) )
344+ u'with %s' ) % bush . game . xe . full_name )
343345 for mod in sorted (shouldCleanMaybe ):
344346 log (u'* __' + mod [0 ].s + u':__ ' + mod [1 ])
345347 elif mod_checker and not shouldClean :
346348 log .setHeader (
347- u'=== ' + _ (u'Mods that need cleaning with TES4Edit' ))
348- log (_ (u'Congratulations all mods appear clean.' ))
349+ u'=== ' + _ (u'Mods that need cleaning with %s' ) %
350+ bush .game .xe .full_name )
351+ log (_ (u'Congratulations, all mods appear clean.' ))
349352 if invalidVersion :
350- ver_list = u', ' .join (
351- sorted (bush .game .esp .validHeaderVersions ))
353+ # Always an ASCII byte string, so this is fine
354+ header_sig = unicode (
355+ bush .game_mod .records .MreHeader .classType ,
356+ encoding = 'ascii' )
357+ ver_list = u', ' .join (sorted ([
358+ unicode (v ) for v in bush .game .esp .validHeaderVersions ]))
352359 log .setHeader (
353- u'=== ' + _ (u'Mods with non standard TES4 versions' ))
354- log (_ (u"Following mods have a TES4 version that isn't "
355- u"recognized as (one of) the standard version(s) "
356- u"(%s). It is untested what effect this can have on "
357- u"%s." ) % (ver_list , bush .game .displayName ))
360+ u'=== ' + _ (u'Mods with non-standard %s versions' ) %
361+ header_sig )
362+ log (_ (u"The following mods have a %s version that isn't "
363+ u'recognized as one of the standard versions '
364+ u'(%s). It is untested what effects this can have on '
365+ u'%s.' ) % (header_sig , ver_list , bush .game .displayName ))
358366 for mod in sorted (invalidVersion ):
359367 log (u'* __' + mod [0 ].s + u':__ ' + mod [1 ])
360368 #--Missing/Delinquent Masters
@@ -832,18 +840,18 @@ def copyPrev(size):
832840 else :
833841 copy (rec_size )
834842 #--Save
835- retry = _ (u'Bash encountered an error when saving %s.' ) + u'\n \n ' \
836- + _ (u'The file is in use by another process such as TES4Edit.'
837- ) + u'\n ' + _ (u'Please close the other program that is '
838- u'accessing %s.' ) + u'\n \n ' + _ (u'Try again?' )
843+ retry = _ (u'Bash encountered an error when saving %(newpath)s.'
844+ u'\n \n The file is in use by another process such as '
845+ u'%(xedit_name)s.\n Please close the other program that '
846+ u'is accessing %(newpath)s.\n \n Try again?' ) % {
847+ u'newpath' : path .stail , u'xedit_name' : bush .game .xe .full_name }
839848 if changed :
840849 cleaner .modInfo .makeBackup ()
841850 try :
842851 path .untemp ()
843852 except OSError as werr :
844853 while werr .errno == errno .EACCES and balt .askYes (
845- None , retry % (path .stail , path .stail ),
846- path .stail + _ (u' - Save Error' )):
854+ None , retry , _ (u'%s - Save Error' ) % path .stail ):
847855 try :
848856 path .untemp ()
849857 break
0 commit comments