diff options
author | antoniou79 | 2019-01-02 19:46:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-01-06 17:12:02 +0100 |
commit | 729d8a20ff09fb68b0c9c85994083858b33561ca (patch) | |
tree | e320c3a1e2c8c233de239c5da9716c5f1ede7d27 /devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py | |
parent | fa64a064a1c583d75e1f64dabbe4cda83aa02c5b (diff) | |
download | scummvm-rg350-729d8a20ff09fb68b0c9c85994083858b33561ca.tar.gz scummvm-rg350-729d8a20ff09fb68b0c9c85994083858b33561ca.tar.bz2 scummvm-rg350-729d8a20ff09fb68b0c9c85994083858b33561ca.zip |
DEVTOOLS: BladeRunner MIX multilanguage support
mixResourceCreator now additionally supports ITA, FRA, ESP, GER
Diffstat (limited to 'devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py')
-rw-r--r-- | devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py b/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py index 4fad7f4f8a..b912fb23d2 100644 --- a/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py +++ b/devtools/create_bladerunner/subtitles/fontCreator/grabberFromPNG17BR.py @@ -304,26 +304,26 @@ class grabberFromPNG: 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: |