Index: utils/ofhash/OFHash.m ================================================================== --- utils/ofhash/OFHash.m +++ utils/ofhash/OFHash.m @@ -90,10 +90,16 @@ OFSHA1Hash *SHA1Hash = nil; OFSHA224Hash *SHA224Hash = nil; OFSHA256Hash *SHA256Hash = nil; OFSHA384Hash *SHA384Hash = nil; OFSHA512Hash *SHA512Hash = nil; + +#ifndef OF_AMIGAOS + [OFLocale addLanguageDirectory: @LANGUAGE_DIR]; +#else + [OFLocale addLanguageDirectory: @"PROGDIR:/share/ofhash/lang"]; +#endif while ((option = [optionsParser nextOption]) != '\0') { switch (option) { case '?': if (optionsParser.lastLongOption != nil) @@ -104,11 +110,11 @@ @"opt", optionsParser.lastLongOption)]; else { OFString *optStr = [OFString stringWithFormat: @"%c", optionsParser.lastOption]; [of_stderr writeLine: - OF_LOCALIZED(@"unkown_option", + OF_LOCALIZED(@"unknown_option", @"%[prog]: Unknown option: -%[opt]", @"prog", [OFApplication programName], @"opt", optStr)]; } @@ -150,16 +156,10 @@ } @finally { [sandbox release]; } #endif -#ifndef OF_AMIGAOS - [OFLocale addLanguageDirectory: @LANGUAGE_DIR]; -#else - [OFLocale addLanguageDirectory: @"PROGDIR:/share/ofhash/lang"]; -#endif - if (!calculateMD5 && !calculateRIPEMD160 && !calculateSHA1 && !calculateSHA224 && !calculateSHA256 && !calculateSHA384 && !calculateSHA512) help();