Even more hardcoded strings found and externalized. Are they ever going to end?
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1658 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
b81d73ffd7
commit
d97720b1a7
@ -958,6 +958,15 @@
|
||||
// Load commander screen
|
||||
"loadscreen-title" = "Select Commander";
|
||||
|
||||
// Load game failed messages
|
||||
"loadfailed-no-file-specified" = "No file specified!";
|
||||
"loadfailed-could-not-load-file" = "Could not load file.";
|
||||
"loadfailed-could-not-find-ship-type-@-please-reinstall-the-appropriate-OXP"
|
||||
= "Could not find ship type \"%@\" - please reinstall the appropriate OXP.";
|
||||
"loadfailed-invalid-saved-game-no-ship-specified"
|
||||
= "Invalid saved game - no ship specified.";
|
||||
"loadfailed-could-not-set-up-player-ship" = "Could not set up player ship.";
|
||||
|
||||
// Save/Overwrite commander screens
|
||||
"savescreen-title" = "Save Commander";
|
||||
"savescreen-commander-name-@" = "Commander name: %@";
|
||||
|
@ -391,7 +391,7 @@
|
||||
|
||||
if (fileToOpen == nil)
|
||||
{
|
||||
fail_reason = @"No file specified!";
|
||||
fail_reason = DESC(@"loadfailed-no-file-specified");
|
||||
loadedOK = NO;
|
||||
}
|
||||
|
||||
@ -400,7 +400,7 @@
|
||||
fileDic = OODictionaryFromFile(fileToOpen);
|
||||
if (fileDic == nil)
|
||||
{
|
||||
fail_reason = @"Could not load file.";
|
||||
fail_reason = DESC(@"loadfailed-could-not-load-file");
|
||||
loadedOK = NO;
|
||||
}
|
||||
}
|
||||
@ -417,8 +417,8 @@
|
||||
if (shipDict == nil)
|
||||
{
|
||||
loadedOK = NO;
|
||||
if (shipKey != nil) fail_reason = [NSString stringWithFormat:@"Couldn't find ship type \"%@\" - please reinstall the appropriate OXP.", shipKey];
|
||||
else fail_reason = @"Invalid saved game - no ship specified.";
|
||||
if (shipKey != nil) fail_reason = [NSString stringWithFormat:DESC(@"loadfailed-could-not-find-ship-type-@-please-reinstall-the-appropriate-OXP"), shipKey];
|
||||
else fail_reason = DESC(@"loadfailed-invalid-saved-game-no-ship-specified");
|
||||
}
|
||||
}
|
||||
|
||||
@ -431,7 +431,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
fail_reason = @"Could not set up player ship.";
|
||||
fail_reason = DESC(@"loadfailed-could-not-set-up-player-ship");
|
||||
loadedOK = NO;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user