Changeset 5545
- Timestamp:
- 05/30/08 00:17:30 (3 months ago)
- Files:
-
- WiredClient/trunk/English.lproj/Localizable.strings (modified) (15 diffs)
- WiredClient/trunk/WCError.h (modified) (1 diff)
- WiredClient/trunk/WCError.m (modified) (4 diffs)
- WiredClient/trunk/WCMessages.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/English.lproj/Localizable.strings
r5542 r5545 197 197 "Chat received" = "Chat received"; 198 198 199 /* W ired Protocol error 522title200 Error*/199 /* WCWiredClientChecksumMismatch title 200 Wired Protocol error 522 title */ 201 201 "Checksum Mismatch" = "Checksum Mismatch"; 202 202 … … 205 205 "Clear" = "Clear"; 206 206 207 /* Wired Protocol error 512 title */ 207 /* WCWiredClientClientNotFound title 208 Wired Protocol error 512 title */ 208 209 "Client Not Found" = "Client Not Found"; 209 210 … … 232 233 "Cool" = "Cool"; 233 234 234 /* Error(path) */235 /* WCWiredClientCreateFailed description (path) */ 235 236 "Could not create the file \"%@\"." = "Could not create the file \"%@\"."; 236 237 … … 241 242 "Could not find the account you referred to. Perhaps someone deleted it." = "Could not find the account you referred to. Perhaps someone deleted it."; 242 243 243 /* Wired Protocol error 512 description */ 244 /* WCWiredClientClientNotFound description 245 Wired Protocol error 512 description */ 244 246 "Could not find the client you referred to. Perhaps that client left before the command could be completed." = "Could not find the client you referred to. Perhaps that client left before the command could be completed."; 245 247 … … 253 255 "Could not login, you are banned from this server." = "Could not login, you are banned from this server."; 254 256 255 /* Error(path) */257 /* WCWiredClientOpenFailed description (path) */ 256 258 "Could not open the file \"%@\"." = "Could not open the file \"%@\"."; 257 259 258 /* Error(path) */260 /* WCWiredClientChecksumMismatch description (path) */ 259 261 "Could not resume transfer of \"%@\", the checksums do not match." = "Could not resume transfer of \"%@\", the checksums do not match."; 260 262 … … 265 267 "Could not start an upload, the checksums do not match." = "Could not start an upload, the checksums do not match."; 266 268 267 /* Error*/269 /* WCWiredClientCreateFailed title */ 268 270 "Create Failed" = "Create Failed"; 269 271 … … 318 320 "file" = "file"; 319 321 320 /* Error322 /* WCWiredClientFileExists title 321 323 Transfers overwrite alert title */ 322 324 "File Exists" = "File Exists"; … … 340 342 "Finished %lu files, %@, average %@/s, took %@" = "Finished %1$lu files, %2$@, average %3$@/s, took %4$@"; 341 343 342 /* Error*/344 /* WCWiredClientFolderExists title */ 343 345 "Folder Exists" = "Folder Exists"; 344 346 … … 462 464 "OK" = "OK"; 463 465 464 /* Error*/466 /* WCWiredClientOpenFailed title */ 465 467 "Open Failed" = "Open Failed"; 466 468 … … 603 605 "The command could not be completed due to insufficient privileges." = "The command could not be completed due to insufficient privileges."; 604 606 605 /* Error(path) */607 /* WCWiredClientFileExists description (path) */ 606 608 "The file \"%@\" already exists." = "The file \"%@\" already exists."; 607 609 … … 609 611 "The file \"%@\" already exists. Overwrite?" = "The file \"%@\" already exists. Overwrite?"; 610 612 611 /* Error(path) */613 /* WCWiredClientTransferWithResourceFork description (path) */ 612 614 "The file \"%@\" has a resource fork, which is not handled by Wired. Only the data part will be uploaded, possibly resulting in a corrupted file. Please use an archiver to ensure the file will be uploaded correctly." = "The file \"%@\" has a resource fork, which is not handled by Wired. Only the data part will be uploaded, possibly resulting in a corrupted file. Please use an archiver to ensure the file will be uploaded correctly."; 613 615 614 /* Error(path) */616 /* WCWiredClientFolderExists description (path) */ 615 617 "The folder \"%@\" already exists." = "The folder \"%@\" already exists."; 616 618 617 /* Error(number) */619 /* WCWiredClientTransferWithResourceFork description (number) */ 618 620 "The folder contains %lu files with resource forks, which are not handled by Wired. Only the data parts will be uploaded, possibly resulting in corrupted files. Please use an archiver to ensure the files will be uploaded correctly." = "The folder contains %lu files with resource forks, which are not handled by Wired. Only the data parts will be uploaded, possibly resulting in corrupted files. Please use an archiver to ensure the files will be uploaded correctly."; 619 621 … … 633 635 "The server has unexpectedly disconnected." = "The server has unexpectedly disconnected."; 634 636 635 /* Error(name) */637 /* WCWiredClientTransferFailed description (name) */ 636 638 "The transfer of \"%@\" failed." = "The transfer of \"%@\" failed."; 637 639 … … 664 666 "Trackers" = "Trackers"; 665 667 666 /* Error*/668 /* WCWiredClientTransferExists title */ 667 669 "Transfer Exists" = "Transfer Exists"; 668 670 669 /* Error*/671 /* WCWiredClientTransferFailed title */ 670 672 "Transfer Failed" = "Transfer Failed"; 671 673 … … 676 678 "Transfer Finished" = "Transfer Finished"; 677 679 678 /* Error*/680 /* WCWiredClientTransferWithResourceFork title */ 679 681 "Transfer Not Supported" = "Transfer Not Supported"; 680 682 … … 749 751 "Yes" = "Yes"; 750 752 751 /* Error(path) */753 /* WCWiredClientTransferExists description (path) */ 752 754 "You are already transferring \"%@\"." = "You are already transferring \"%@\"."; 753 755 WiredClient/trunk/WCError.h
r4980 r5545 38 38 WCWiredClientTransferWithResourceFork, 39 39 WCWiredClientTransferFailed, 40 WCWiredClientChecksumMismatch 40 WCWiredClientChecksumMismatch, 41 WCWiredClientClientNotFound 41 42 }; 42 43 WiredClient/trunk/WCError.m
r4799 r5545 41 41 42 42 case WCWiredClientOpenFailed: 43 return NSLS(@"Open Failed", @" Error");43 return NSLS(@"Open Failed", @"WCWiredClientOpenFailed title"); 44 44 break; 45 45 46 46 case WCWiredClientCreateFailed: 47 return NSLS(@"Create Failed", @" Error");47 return NSLS(@"Create Failed", @"WCWiredClientCreateFailed title"); 48 48 break; 49 49 50 50 case WCWiredClientFileExists: 51 return NSLS(@"File Exists", @" Error");51 return NSLS(@"File Exists", @"WCWiredClientFileExists title"); 52 52 break; 53 53 54 54 case WCWiredClientFolderExists: 55 return NSLS(@"Folder Exists", @" Error");55 return NSLS(@"Folder Exists", @"WCWiredClientFolderExists title"); 56 56 break; 57 57 58 58 case WCWiredClientChecksumMismatch: 59 return NSLS(@"Checksum Mismatch", @"Error"); 59 return NSLS(@"Checksum Mismatch", @"WCWiredClientChecksumMismatch title"); 60 break; 61 62 case WCWiredClientClientNotFound: 63 return NSLS(@"Client Not Found", @"WCWiredClientClientNotFound title"); 60 64 break; 61 65 62 66 case WCWiredClientTransferExists: 63 return NSLS(@"Transfer Exists", @" Error");67 return NSLS(@"Transfer Exists", @"WCWiredClientTransferExists title"); 64 68 break; 65 69 66 70 case WCWiredClientTransferWithResourceFork: 67 return NSLS(@"Transfer Not Supported", @" Error");71 return NSLS(@"Transfer Not Supported", @"WCWiredClientTransferWithResourceFork title"); 68 72 break; 69 73 70 74 case WCWiredClientTransferFailed: 71 return NSLS(@"Transfer Failed", @" Error");75 return NSLS(@"Transfer Failed", @"WCWiredClientTransferFailed title"); 72 76 break; 73 77 … … 165 169 166 170 case WCWiredClientOpenFailed: 167 return [NSSWF:NSLS(@"Could not open the file \"%@\".", @" Error(path)"),171 return [NSSWF:NSLS(@"Could not open the file \"%@\".", @"WCWiredClientOpenFailed description (path)"), 168 172 argument]; 169 173 break; 170 174 171 175 case WCWiredClientCreateFailed: 172 return [NSSWF:NSLS(@"Could not create the file \"%@\".", @" Error(path)"),176 return [NSSWF:NSLS(@"Could not create the file \"%@\".", @"WCWiredClientCreateFailed description (path)"), 173 177 argument]; 174 178 break; 175 179 176 180 case WCWiredClientFileExists: 177 return [NSSWF:NSLS(@"The file \"%@\" already exists.", @" Error(path)"),181 return [NSSWF:NSLS(@"The file \"%@\" already exists.", @"WCWiredClientFileExists description (path)"), 178 182 argument]; 179 183 break; 180 184 181 185 case WCWiredClientFolderExists: 182 return [NSSWF:NSLS(@"The folder \"%@\" already exists.", @" Error(path)"),186 return [NSSWF:NSLS(@"The folder \"%@\" already exists.", @"WCWiredClientFolderExists description (path)"), 183 187 argument]; 184 188 break; 185 189 186 190 case WCWiredClientChecksumMismatch: 187 return [NSSWF:NSLS(@"Could not resume transfer of \"%@\", the checksums do not match.", @"Error (path)"), 188 argument]; 189 break; 190 191 return [NSSWF:NSLS(@"Could not resume transfer of \"%@\", the checksums do not match.", @"WCWiredClientChecksumMismatch description (path)"), 192 argument]; 193 break; 194 195 case WCWiredClientClientNotFound: 196 return NSLS(@"Could not find the client you referred to. Perhaps that client left before the command could be completed.", @"WCWiredClientClientNotFound description"); 197 break; 198 191 199 case WCWiredClientTransferExists: 192 return [NSSWF:NSLS(@"You are already transferring \"%@\".", @" Error(path)"),200 return [NSSWF:NSLS(@"You are already transferring \"%@\".", @"WCWiredClientTransferExists description (path)"), 193 201 argument]; 194 202 break; … … 196 204 case WCWiredClientTransferWithResourceFork: 197 205 if([argument isKindOfClass:[NSString class]]) { 198 return [NSSWF:NSLS(@"The file \"%@\" has a resource fork, which is not handled by Wired. Only the data part will be uploaded, possibly resulting in a corrupted file. Please use an archiver to ensure the file will be uploaded correctly.", @" Error(path)"),206 return [NSSWF:NSLS(@"The file \"%@\" has a resource fork, which is not handled by Wired. Only the data part will be uploaded, possibly resulting in a corrupted file. Please use an archiver to ensure the file will be uploaded correctly.", @"WCWiredClientTransferWithResourceFork description (path)"), 199 207 argument]; 200 208 } 201 209 else if([argument isKindOfClass:[NSNumber class]]) { 202 return [NSSWF:NSLS(@"The folder contains %lu files with resource forks, which are not handled by Wired. Only the data parts will be uploaded, possibly resulting in corrupted files. Please use an archiver to ensure the files will be uploaded correctly.", @" Error(number)"),210 return [NSSWF:NSLS(@"The folder contains %lu files with resource forks, which are not handled by Wired. Only the data parts will be uploaded, possibly resulting in corrupted files. Please use an archiver to ensure the files will be uploaded correctly.", @"WCWiredClientTransferWithResourceFork description (number)"), 203 211 [argument unsignedIntegerValue]]; 204 212 } … … 206 214 207 215 case WCWiredClientTransferFailed: 208 return [NSSWF:NSLS(@"The transfer of \"%@\" failed.", @" Error(name)"),216 return [NSSWF:NSLS(@"The transfer of \"%@\" failed.", @"WCWiredClientTransferFailed description (name)"), 209 217 argument]; 210 218 break; WiredClient/trunk/WCMessages.m
r5249 r5545 908 908 WCMessage *message; 909 909 WCUser *user; 910 WCError *error; 910 911 911 912 message = [self _selectedMessage]; … … 916 917 user = [[[self connection] chat] userWithUserID:[message userID]]; 917 918 918 if(user) 919 if(user) { 919 920 [self showPrivateMessageToUser:user]; 921 } else { 922 error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientClientNotFound]; 923 [[self connection] triggerEvent:WCEventsError info1:error]; 924 [[error alert] beginSheetModalForWindow:[self window]]; 925 } 920 926 } 921 927
