/****************************************************************
   This file was created automatically by `FlexCat 2.5'
   from "locale/Jabberwocky.cd".

   Do NOT edit by hand!
****************************************************************/

/*
** Includes
*/

#include <exec/types.h>
#include <libraries/locale.h>
#include <proto/locale.h>

#include <stdlib.h>
#include <string.h>

#include "catalog.h"


/*
** Variables
*/

struct FC_String Jabberwocky_Strings[112] = {
    { (STRPTR) "Jabber Client", 0 },
    { (STRPTR) "_Connect", 1 },
    { (STRPTR) "_Disconnect", 2 },
    { (STRPTR) "Get the message!", 3 },
    { (STRPTR) "Roster", 4 },
    { (STRPTR) "Presence", 5 },
    { (STRPTR) "Online", 6 },
    { (STRPTR) "Free For Chat", 7 },
    { (STRPTR) "Away", 8 },
    { (STRPTR) "Extended Away", 9 },
    { (STRPTR) "Do Not Disturb", 10 },
    { (STRPTR) "Jabberwocky", 11 },
    { (STRPTR) "Account...", 12 },
    { (STRPTR) "?\000About", 13 },
    { (STRPTR) "About MUI", 14 },
    { (STRPTR) "Help", 15 },
    { (STRPTR) "Hide", 16 },
    { (STRPTR) "Q\000Quit", 17 },
    { (STRPTR) "Roster", 18 },
    { (STRPTR) "Windows", 19 },
    { (STRPTR) "Settings", 20 },
    { (STRPTR) "Preferences", 21 },
    { (STRPTR) "MUI", 22 },
    { (STRPTR) "Last Saved", 23 },
    { (STRPTR) "Save Settings", 24 },
    { (STRPTR) "Arexx", 25 },
    { (STRPTR) "E\000Execute Script...", 26 },
    { (STRPTR) "About this fine product...", 27 },
    { (STRPTR) "\033cJabber Instant Messenger\n"\
	"Copyright (C) 2002 Matthias Münch & Tom Parker\n"\
	"Originally written by Gürer Özen\n"\
	"This is Free Software licensed under the GNU General Public License.\n"\
	"Read the manual for details.", 28 },
    { (STRPTR) "\033cMUI (c) Stefan Stuntz\n"\
	"NList.mcc (c) Gilles Masson\n"\
	"Textinput.mcc (c) Oliver Wagner\n\n", 29 },
    { (STRPTR) "_OK", 30 },
    { (STRPTR) "To", 31 },
    { (STRPTR) "Thread", 32 },
    { (STRPTR) "_Send", 33 },
    { (STRPTR) "Cancel", 34 },
    { (STRPTR) "Agents List", 35 },
    { (STRPTR) "URL", 36 },
    { (STRPTR) "Visit", 37 },
    { (STRPTR) "Description", 38 },
    { (STRPTR) "Register...", 39 },
    { (STRPTR) "Search...", 40 },
    { (STRPTR) "Conference...", 41 },
    { (STRPTR) "Yes", 42 },
    { (STRPTR) "No", 43 },
    { (STRPTR) "Jabber ID", 44 },
    { (STRPTR) "Name", 45 },
    { (STRPTR) "_Subscribe", 46 },
    { (STRPTR) "_Add", 47 },
    { (STRPTR) "_Cancel", 48 },
    { (STRPTR) "Greeting", 49 },
    { (STRPTR) "Your Jabber ID", 50 },
    { (STRPTR) "Your Password", 51 },
    { (STRPTR) "_Connect", 52 },
    { (STRPTR) "_Register", 53 },
    { (STRPTR) "Cancel", 54 },
    { (STRPTR) "Register", 55 },
    { (STRPTR) "Abandon", 56 },
    { (STRPTR) "Update", 57 },
    { (STRPTR) "Cancel", 58 },
    { (STRPTR) "From", 59 },
    { (STRPTR) "Thread", 60 },
    { (STRPTR) "Previous", 61 },
    { (STRPTR) "Next", 62 },
    { (STRPTR) "Write", 63 },
    { (STRPTR) "Reply", 64 },
    { (STRPTR) "Close", 65 },
    { (STRPTR) "Name", 66 },
    { (STRPTR) "Jabber ID", 67 },
    { (STRPTR) "Subscription", 68 },
    { (STRPTR) "change to", 69 },
    { (STRPTR) "Status", 70 },
    { (STRPTR) "Note", 71 },
    { (STRPTR) "_Update", 72 },
    { (STRPTR) "Close", 73 },
    { (STRPTR) "Query", 74 },
    { (STRPTR) "Client", 75 },
    { (STRPTR) "Version", 76 },
    { (STRPTR) "OS", 77 },
    { (STRPTR) "Save...", 78 },
    { (STRPTR) "Flush", 79 },
    { (STRPTR) "Close", 80 },
    { (STRPTR) "Clear", 81 },
    { (STRPTR) "Send", 82 },
    { (STRPTR) "_Save", 83 },
    { (STRPTR) "_Use", 84 },
    { (STRPTR) "_Cancel", 85 },
    { (STRPTR) "Command", 86 },
    { (STRPTR) "Sound", 87 },
    { (STRPTR) "Test", 88 },
    { (STRPTR) "HTTP Server Port", 89 },
    { (STRPTR) "Auto-connect on startup.", 90 },
    { (STRPTR) "Auto-reconnect after disconnection.", 91 },
    { (STRPTR) "ISO Table", 92 },
    { (STRPTR) "_Accept", 93 },
    { (STRPTR) "_Reject", 94 },
    { (STRPTR) "To", 95 },
    { (STRPTR) "File", 96 },
    { (STRPTR) "Description", 97 },
    { (STRPTR) "_Send", 98 },
    { (STRPTR) "_Cancel", 99 },
    { (STRPTR) "Flush", 100 },
    { (STRPTR) "Save...", 101 },
    { (STRPTR) "Send File...", 102 },
    { (STRPTR) "Topic", 103 },
    { (STRPTR) "_Search", 104 },
    { (STRPTR) "Cancel", 105 },
    { (STRPTR) "_Add Contact", 106 },
    { (STRPTR) "Log file", 107 },
    { (STRPTR) "Logging", 108 },
    { (STRPTR) "Options", 109 },
    { (STRPTR) "Character Set", 110 },
    { (STRPTR) "Error", 111 }
};

static struct Catalog *JabberwockyCatalog = NULL;


/*
** Functions
*/

void CloseJabberwockyCatalog(void)
{
	if(JabberwockyCatalog) CloseCatalog(JabberwockyCatalog);
}


void OpenJabberwockyCatalog(void)
{
	if(LocaleBase)
	{
		JabberwockyCatalog = OpenCatalog(NULL, (STRPTR) "Jabberwocky.catalog",
		            OC_BuiltInLanguage, (ULONG) "english",
		            OC_Version, 0,
		            TAG_DONE);
		if(JabberwockyCatalog)
		{
			struct FC_String *fc;
			int i;

			for(i = 0, fc = Jabberwocky_Strings;  i < 112;  i++, fc++)
			{
				fc->msg = GetCatalogStr(JabberwockyCatalog, fc->id, (STRPTR)fc->msg);
			}
		}
	}
}


void localize_array(char *array[])
{
	char **x;

	for(x=array; *x; x++)
		*x = (char *)((struct FC_String *)(*x))->msg;
}
