Converted these images to PNG, saving a handful of bytes per image
[adiumx.git] / Plugins / Translation / TranslationEngine.h
blobd7b36ca8a3acb79f5436c2be218b258221e201eb
1 /*
2 * TranslationEngine.h
3 * Fire
5 * Created by Alan Humpherys on Wed Mar 19 2003.
6 * Copyright (c) 2003 Fire Development Team and/or epicware, Inc.
7 * All rights reserved.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #import <AppKit/AppKit.h>
26 #define TRANSLATION_ERROR(msg) [target translationError:(msg) forMessageDict:messageDict];
28 // Definition of Translation Error Strings
29 #define TE_BAD_PARMS NSLocalizedString(@"Bad Parameters Sent to Translation",@"Translation Error")
30 #define TE_LANG_NOT_SUPPORTED NSLocalizedString(@"Support for this language has not been installed on your Macintosh",@"Translation Error")
31 #define TE_CANT_ENCODE NSLocalizedString(@"Unable to encode message for transmission to translation server",@"Translation Error")
32 #define TE_HOST_NOT_FOUND NSLocalizedString(@"Host not found",@"Translation Error")
33 #define TE_CANT_OPEN_SOCKET NSLocalizedString(@"Could not open socket to translation server",@"Translation Error")
34 #define TE_CANT_BIND_PORT NSLocalizedString(@"Could not bind a port to use",@"Translation Error")
35 #define TE_CANT_CONNECT NSLocalizedString(@"Cannot connect to the translation server",@"Translation Error")
36 #define TE_CANT_TRANSMIT NSLocalizedString(@"Cannot send data to translation server",@"Translation Error")
37 #define TE_NO_RESPONSE NSLocalizedString(@"No translated page was returned",@"Translation Error")
38 #define TE_CANT_DECODE NSLocalizedString(@"No translation found: Server too busy",@"Translation Error")
39 #define TE_EMPTY_RESPONSE NSLocalizedString(@"A blank translation was returned",@"Translation Error")
40 #define TE_UNKNOWN_ERROR NSLocalizedString(@"Unknown error in translation",@"Translation Error")
42 @protocol TranslationEngineInterface
43 - (void)translate:(NSDictionary *)messageDict notifyingTarget:(id)target;
44 @end
46 @interface TranslationEngine : NSObject <TranslationEngineInterface>
50 @end