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
This commit is contained in:
Jens Ayton 2011-02-12 14:57:40 +00:00
parent 954f5b4ef7
commit 79a9d11f29
2 changed files with 3 additions and 2 deletions

View File

@ -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 Oolites performance.";

View File

@ -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];