diff options
author | rubidium <rubidium@openttd.org> | 2010-10-21 20:12:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-21 20:12:48 +0000 |
commit | 87edf2524d8904189391b427a9c823cb3d5fdf03 (patch) | |
tree | 5ec3718ba52a2dc2faff4c629269563996f348da /src/console_gui.cpp | |
parent | a671f64896251875f8b881db69ce1cc9cb358f5c (diff) | |
download | openttd-87edf2524d8904189391b427a9c823cb3d5fdf03.tar.xz |
(svn r21004) -Fix [FS#3746]: chat/console messages got sometimes messed up due to LTR names in RTL translations and vice-versa
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r-- | src/console_gui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp index 91f40cd39..3bd50bb87 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -285,7 +285,10 @@ struct IConsoleWindow : Window break; case WKC_RETURN: case WKC_NUM_ENTER: { - IConsolePrintF(CC_COMMAND, "] %s", _iconsole_cmdline.buf); + /* We always want the ] at the left side; we always force these strings to be left + * aligned anyway. So enforce this in all cases by addding a left-to-right marker, + * otherwise it will be drawn at the wrong side with right-to-left texts. */ + IConsolePrintF(CC_COMMAND, LRM "] %s", _iconsole_cmdline.buf); const char *cmd = IConsoleHistoryAdd(_iconsole_cmdline.buf); IConsoleClearCommand(); |