Permalink
Browse files

DEVTOOLS: BladeRunner MIX multilanguage support

mixResourceCreator now additionally supports ITA, FRA, ESP, GER
  • Loading branch information...
antoniou79 authored and sev- committed Jan 2, 2019
1 parent fa64a06 commit 729d8a20ff09fb68b0c9c85994083858b33561ca
@@ -304,26 +304,26 @@ def initOverrideEncoding(self):

if overrideFailed:
## error
print "[Error] Override encoding file parsing has failed: Error Code 1." #" Initializing for {0}...".format(defaultTargetLang)
print "[Error] Override encoding file parsing has failed: Error Code 1." #" Initializing for {0}...".format(self.defaultTargetLang)
#if gTraceModeEnabled:
# self.targetEncoding = self.defaultTargetEncoding
# self.targetEncodingUnicode = self.defaultTargetEncodingUnicode
# targetLangOrderAndListOfForeignLettersStrUnicode = unicode(allOfGreekChars, 'utf-8')
# print '[Debug] ', targetLangOrderAndListOfForeignLettersStrUnicode
sys.exit() # terminate if override Failed (Blade Runner)
sys.exit(1) # terminate if override Failed (Blade Runner)

try:
targetLangOrderAndListOfForeignLettersStr = unicode.encode("%s" % targetLangOrderAndListOfForeignLettersStrUnicode, self.targetEncoding)
except:
## error
print "[Error] Override encoding file parsing has failed: Error Code 2." #"Initializing for {0}...".format(defaultTargetLang)
print "[Error] Override encoding file parsing has failed: Error Code 2." #"Initializing for {0}...".format(self.defaultTargetLang)
#if gTraceModeEnabled:
# self.targetEncoding = self.defaultTargetEncoding
# self.targetEncodingUnicode = self.defaultTargetEncodingUnicode
# targetLangOrderAndListOfForeignLettersStrUnicode = unicode(allOfGreekChars, 'utf-8')
# targetLangOrderAndListOfForeignLettersStr = unicode.encode("%s" % targetLangOrderAndListOfForeignLettersStrUnicode, self.targetEncoding)
# print '[Debug] ' + targetLangOrderAndListOfForeignLettersStrUnicode
sys.exit() # terminate if override Failed (Blade Runner)
sys.exit(1) # terminate if override Failed (Blade Runner)

targetLangOrderAndListOfForeignLetters = list(targetLangOrderAndListOfForeignLettersStr)
if gTraceModeEnabled:
Oops, something went wrong.

0 comments on commit 729d8a2

Please sign in to comment.