/****************************************************************
   This file was created automatically by `FlexCat 2.2 beta'
   from "StormC:Projekte/ML-Support/Catalogs/ML_Support.cd".

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

/* Include files */
#include <libraries/gadtools.h>
#include <proto/locale.h>

#include "ML_Support_Cat.h"

/* Variables */
struct FC_String ML_Support_Strings[] =
{
   { "*_Ok", 0 },
   { "_Ok", 1 },
   { "_Cancel", 2 },
   { "*_Save and Quit|_Quit|_Cancel", 3 },
   { "ML-Support", 20 },
   { "About ML-Support", 21 },
   { "Manages Mailinglists for YAM", 22 },
   { "\033c%s\n"\
	"Freeware\n"\
	"© 1998-99 Christian Hattemer\n"\
	"chris@mail.riednet.wh.tu-darmstadt.de\n"\
	"\n"\
	"English Translation by\n"\
	"Christian Hattemer", 23 },
   { "_Add", 24 },
   { "_Clone", 25 },
   { "_Edit", 26 },
   { "_Remove", 27 },
   { "A_ll", 28 },
   { "_None", 29 },
   { "_Command", 30 },
   { "Subscribe", 31 },
   { "Unsubscribe", 32 },
   { "Custom", 33 },
   { "C_ustom", 34 },
   { "_Write", 35 },
   { "There are unsaved changes in the List which\n"\
	"will be lost if you don't save them now.", 45 },
   { "%s:\n"\
	"Sorry, this Mode does not work with the\n"\
	"'Cmd in To:' Mode which you have set in\n"\
	"the Editwindow.", 46 },
   { "YAM is not running.\n"\
	"You must start it in\n"\
	"order to use ML-Support.", 47 },
   { "Writing the Config failed!", 48 },
   { "Shows the managed Mailinglists.\n"\
	"The first Column shows an 'x' if\n"\
	"you are Subscribed to that ML\n"\
	"and a Space if not.", 60 },
   { "Select if you want to create Subscribe\n"\
	"or Unsubscribe Mails.\n"\
	"'Custom' will send the String which you\n"\
	"enter below to the Listserver.", 61 },
   { "This String will be sent to the Listserver\n"\
	"if you select 'Custom' above.", 62 },
   { "Creates the Mails for the selected MLs.", 63 },
   { " _Project", 75 },
   { "?_About...", 76 },
   { " _About MUI...", 77 },
   { "Q_Quit", 78 },
   { " _Settings", 79 },
   { "S_Save", 80 },
   { " _MUI...", 81 },
   { "Edit ML", 90 },
   { "_ML Name", 91 },
   { "_Subscribe Cmd.", 92 },
   { "Server _Address", 93 },
   { "_Unsubscribe Cmd.", 94 },
   { "Additional _Data", 95 },
   { "none", 96 },
   { "email", 97 },
   { "Realname", 98 },
   { "email & Realname", 99 },
   { "Realname & email", 100 },
   { "Cmd. in _To:", 101 },
   { "Su_bscribed?", 102 },
   { "You must enter something\n"\
	"for the ML Name!", 115 },
   { "You must enter something\n"\
	"for the Subscribe Cmd!", 116 },
   { "You must enter something\n"\
	"for the Unsubscribe Cmd!", 117 },
   { "You must enter a valid email Address\n"\
	"into the Server Address Field!", 118 },
   { "The Title of the ML.", 130 },
   { "The Command to Subscribe to the ML.\n"\
	"\n"\
	"This Gadget has an alternative Function\n"\
	"if 'Cmd. in To' is checked. Please see\n"\
	"the Help of that Button.", 131 },
   { "The email Address of the Listserver.\n"\
	"\n"\
	"This Gadget has an alternative Function\n"\
	"if 'Cmd. in To' is checked. Please see\n"\
	"the Help of that Button.", 132 },
   { "The Command to Unsubscribe from the ML.\n"\
	"\n"\
	"This Gadget has an alternative Function\n"\
	"if 'Cmd. in To' is checked. Please see\n"\
	"the Help of that Button.", 133 },
   { "Select here if you want to add your email Address\n"\
	"and/or your Realname to the Command.", 134 },
   { "If checked the Support for Listservers which\n"\
	"require the Command in the To: Header is activated.\n"\
	"\n"\
	"In this case you have to enter the first Part of the\n"\
	"Servers Address in the Subscribe/Unsubscribe Fields,\n"\
	"and the second Part (including the '@') in the Server Address\n"\
	"Field.\n"\
	"\n"\
	"Example:\n"\
	"You get the output 'xxList-subscribe@nowhere.org' by entering this:\n"\
	"Subscribe Cmd.  : xxList-subscribe\n"\
	"Unsubscribe Cmd.: xxList-unsubscribe\n"\
	"Server Add.     : @nowhere.org", 135 },
   { "Shows if you are Subscribed to the ML.\n"\
	"Normally the State is set automatically,\n"\
	"but if you change your Subscription Status\n"\
	"without ML-Support you can edit it here.", 136 },
   { NULL, 0 }
};

static struct Catalog *ML_SupportCatalog;


void OpenML_SupportCatalog()
{
   if (LocaleBase)
   {
      if (ML_SupportCatalog = OpenCatalog(NULL, "ML_Support.catalog",
     			          OC_BuiltInLanguage, "english",
     			          OC_Version, 1,
     			          TAG_DONE
                                 )
         )
      {
         struct FC_String *fc;

         for (fc = ML_Support_Strings; fc->Str; fc++)
         {
            fc->Str = GetCatalogStr(ML_SupportCatalog, fc->Id, fc->Str);
         }
      }
   }
}

void CloseML_SupportCatalog()
{
   if (ML_SupportCatalog)
   {
      CloseCatalog(ML_SupportCatalog);
   }
}

void LocalizeNewMenu(struct NewMenu *nm)
{
   while(nm->nm_Type != NM_END)
   {
      if (nm->nm_Label != NM_BARLABEL)
      {
         nm->nm_CommKey = ML_Support_Strings[(int)nm->nm_Label].Str;
         nm->nm_CommKey[1] = '\0';
         nm->nm_Label = nm->nm_CommKey + 2;

         if (nm->nm_CommKey[0] == ' ')
         {
            nm->nm_CommKey = NULL;
         }
      }

      nm++;
   }
}

void LocalizeStringArray(STRPTR *Array)
{
   STRPTR *x;

   for (x = Array; *x; x++)
   {
      *x = ML_Support_Strings[(int)*x].Str;
   }
}

