From 79a9d11f29bb111c64185659466b76c32700cd01 Mon Sep 17 00:00:00 2001 From: Jens Ayton Date: Sat, 12 Feb 2011 14:57:40 +0000 Subject: [PATCH] Changed handling of speech synth Incoming message string to be friendlier to existing localizations. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4332 127b21dd-08f5-0310-b4b7-95ae10353056 --- Resources/Config/descriptions.plist | 3 ++- src/Core/Universe.m | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Resources/Config/descriptions.plist b/Resources/Config/descriptions.plist index 337da0b7..90bd0474 100644 --- a/Resources/Config/descriptions.plist +++ b/Resources/Config/descriptions.plist @@ -1328,7 +1328,8 @@ // Locale-specific defaults "espeak-default-voice" = "default"; - "speech-synthesis-incoming-message" = "Incoming message: "; // Prefix; message text is appended. + "speech-synthesis-incoming-message" = "Incoming message"; + "speech-synthesis-incoming-message-@" = "[speech-synthesis-incoming-message]: %@"; // Mac multi-screen handling "oolite-mac-bad-display" = "The display configuration has changed in a way that may impact Oolite’s performance."; diff --git a/src/Core/Universe.m b/src/Core/Universe.m index 02a2a0b8..e0a5d96d 100644 --- a/src/Core/Universe.m +++ b/src/Core/Universe.m @@ -4971,7 +4971,7 @@ OOINLINE BOOL EntityInRange(Vector p1, Entity *e2, float range) if (!logOnly) { - [self speakWithSubstitutions:[NSString stringWithFormat:@"%@%@", DESC(@"speech-synthesis-incoming-message"), text]]; + [self speakWithSubstitutions:[NSString stringWithFormat:DESC(@"speech-synthesis-incoming-message-@"), text]]; [message_gui printLongText:text align:GUI_ALIGN_CENTER color:[OOColor greenColor] fadeTime:(float)count key:nil addToArray:nil];