Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions FlashbackChecker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
2DD881E3152E968100121E1E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DD881E2152E968100121E1E /* main.m */; };
2DD881EA152E968100121E1E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DD881E9152E968100121E1E /* AppDelegate.m */; };
2DD881ED152E968100121E1E /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2DD881EB152E968100121E1E /* MainMenu.xib */; };
560B20F1153357B4003633D1 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 560B20F3153357B4003633D1 /* Localizable.strings */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -27,6 +28,9 @@
2DD881E8152E968100121E1E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
2DD881E9152E968100121E1E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
2DD881EC152E968100121E1E /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
560B20EA15335597003633D1 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/MainMenu.xib; sourceTree = "<group>"; };
560B20F2153357B4003633D1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
560B20F4153357C8003633D1 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -82,6 +86,7 @@
children = (
2DD881E8152E968100121E1E /* AppDelegate.h */,
2DD881E9152E968100121E1E /* AppDelegate.m */,
560B20F3153357B4003633D1 /* Localizable.strings */,
2DD881EB152E968100121E1E /* MainMenu.xib */,
2DD881DD152E968100121E1E /* Supporting Files */,
);
Expand Down Expand Up @@ -134,6 +139,7 @@
hasScannedForEncodings = 0;
knownRegions = (
en,
fr,
);
mainGroup = 2DD881C7152E968100121E1E;
productRefGroup = 2DD881D3152E968100121E1E /* Products */;
Expand All @@ -152,6 +158,7 @@
files = (
2DD881ED152E968100121E1E /* MainMenu.xib in Resources */,
2D17FCAE152F51B000A2C393 /* Credits.rtf in Resources */,
560B20F1153357B4003633D1 /* Localizable.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -174,10 +181,21 @@
isa = PBXVariantGroup;
children = (
2DD881EC152E968100121E1E /* en */,
560B20EA15335597003633D1 /* fr */,
);
name = MainMenu.xib;
sourceTree = "<group>";
};
560B20F3153357B4003633D1 /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
560B20F2153357B4003633D1 /* en */,
560B20F4153357C8003633D1 /* fr */,
);
name = Localizable.strings;
path = FlashbackChecker;
sourceTree = SOURCE_ROOT;
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
Expand Down
13 changes: 8 additions & 5 deletions FlashbackChecker/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ - (IBAction)checkForInfection:(id)aSender
id theObject = [self valueForKey:theKey atPath:theFile];
if( theObject )
{
[self log:[NSString stringWithFormat:@"Potential Issue found at: %@", theFile]];
NSString *format = NSLocalizedString(@"Potential Issue found at: %@", @"Message displayed in the results section in case an issue is found; the %@ string is a placeholder for the file path, that should be left in place");
[self log:[NSString stringWithFormat:format, theFile]];
[self log:[theObject description]];
theInfected = YES;
}
Expand All @@ -58,21 +59,23 @@ - (IBAction)checkForInfection:(id)aSender
NSString* thePath = [theFile stringByExpandingTildeInPath];
if( [[NSFileManager defaultManager] fileExistsAtPath:thePath] )
{
[self log:[NSString stringWithFormat:@"Clear: %@", thePath]];
NSString *format = NSLocalizedString(@"Clear: %@", @"Message displayed in the results section in case no issue is found in the scanned file; the %@ string is a placeholder for the file path, that should be left in place");
[self log:[NSString stringWithFormat:format, thePath]];
}
else
{
[self log:[NSString stringWithFormat:@"Clear (no file found): %@", thePath]];
NSString *format = NSLocalizedString(@"Clear (no file found): %@", @"Message displayed in the results section in case no issue is found because there is no corresponding file; the %@ string is a placeholder for the file path, that should be left in place");
[self log:[NSString stringWithFormat:format, thePath]];
}
}
}

if( !theInfected )
{
[self log:@"No Signs of infection were found."];
[self log:NSLocalizedString(@"No Signs of infection were found.", @"Message displayed in the results section at the end of the scan if no issue was found")];
}

NSString* theVisit = @"\n\nVisit the F-Secure site for more information:\nhttp://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml";
NSString* theVisit = NSLocalizedString(@"\n\nVisit the F-Secure site for more information:\nhttp://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml", @"Message displayed at the end of the scan to get visit a site with more information");
[self log:theVisit];
}

Expand Down
4 changes: 4 additions & 0 deletions FlashbackChecker/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
Localizable.strings (English)
FlashbackChecker
*/
21 changes: 21 additions & 0 deletions FlashbackChecker/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
Localizable.strings (French)
FlashbackChecker
*/


/* Message displayed at the end of the scan to get visit a site with more information */
"\n\nVisit the F-Secure site for more information:\nhttp://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml" = "\n\nVisitez le site F-Secure site pour plus d'informations:\nhttp://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml";

/* Message displayed in the results section in case no issue is found because there is no corresponding file; the %@ string is a placeholder for the file path, that should be left in place */
"Clear (no file found): %@" = "OK (le fichier n'existe pas): %@";

/* Message displayed in the results section in case no issue is found in the scanned file; the %@ string is a placeholder for the file path, that should be left in place */
"Clear: %@" = "OK: %@";

/* Message displayed in the results section at the end of the scan if no issue was found */
"No Signs of infection were found." = "C'est bon: pas de signes d'infection.";

/* Message displayed in the results section in case an issue is found; the %@ string is a placeholder for the file path, that should be left in place */
"Potential Issue found at: %@" = "Problème potentiel trouvé sur le fichier suivant: %@";

Loading