[Scummvm-git-logs] scummvm master -> e60da20d3ab680c50e55b452a4f9f267c3564ed3

aquadran aquadran at gmail.com
Tue Nov 24 09:55:26 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e60da20d3a GRIM: fix localization of dialogue transcript


Commit: e60da20d3ab680c50e55b452a4f9f267c3564ed3
    https://github.com/scummvm/scummvm/commit/e60da20d3ab680c50e55b452a4f9f267c3564ed3
Author: Niv Baehr (bloop93 at gmail.com)
Date: 2020-11-24T10:55:20+01:00

Commit Message:
GRIM: fix localization of dialogue transcript

Fixes bug where cutscenes lines were always written to dialogue transcript in english regardless of game language
as described in https://bugs.scummvm.org/ticket/11878

Changed paths:
    engines/grim/lua_v1_text.cpp


diff --git a/engines/grim/lua_v1_text.cpp b/engines/grim/lua_v1_text.cpp
index 1499258b5d..9cb207ea16 100644
--- a/engines/grim/lua_v1_text.cpp
+++ b/engines/grim/lua_v1_text.cpp
@@ -257,7 +257,7 @@ void Lua_V1::LocalizeString() {
 		// If the string that we're passed isn't localized yet then
 		// construct the localized string, otherwise spit back what
 		// we've been given
-		if (str[0] == '/' && str[strlen(str) - 1] == '/') {
+		if (str[0] == '/') {
 			Common::String msg = parseMsgText(str, msgId);
 			sprintf(buf, "/%s/%s", msgId, msg.c_str());
 			str = buf;




More information about the Scummvm-git-logs mailing list