/****************************************************************
   This file was created automatically by `FlexCat 2.4'
   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 },
   { "_Add", 22 },
   { "_Clone", 23 },
   { "_Edit", 24 },
   { "_Remove", 25 },
   { "A_ll", 26 },
   { "_None", 27 },
   { "C_ommand", 28 },
   { "Subscribe", 29 },
   { "Unsubscribe", 30 },
   { "Custom", 31 },
   { "C_ustom", 32 },
   { "_Write", 33 },
   { "Merge Config...", 34 },
   { "Manages mailing lists", 45 },
   { "\033c%s\n"\
	"Freeware\n"\
	"© 1998-2000 Christian Hattemer\n"\
	"chris@riednet.tu-darmstadt.de\n"\
	"\n"\
	"English translation by\n"\
	"Christian Hattemer", 46 },
   { "There are unsaved changes in the list which\n"\
	"will be lost if you don't save them now.", 47 },
   { "Writing the config failed!", 48 },
   { "Error: No Mailcreatormodule specified.\n"\
	"Set the Tooltype CREATOR=<desired creator>\n"\
	"or from Shell use: ML-Support <desired creator>", 49 },
   { "Error: '%s' doesn't look like a valid Mailcreatormodule.\n"\
	"(The name doesn't end with '.mcc'.)", 50 },
   { "Initialization of the Mailcreatormodule failed.\n"\
	"Check if you spelled the name correctly.", 51 },
   { "Shows the managed mailing lists.\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 list server.", 61 },
   { "This string will be sent to the list server\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 },
   { "M_Merge...", 82 },
   { "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 },
   { "Comm_ent", 101 },
   { "Su_bscribed?", 102 },
   { "Cmd. in _To:", 103 },
   { "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 list server.\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 },
   { "You may make some notes here, it's not used\n"\
	"anywhere else but is saved also.", 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 },
   { "If checked the support for list servers 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", 137 },
   { NULL, 0 }
};

static struct Catalog *ML_SupportCatalog = NULL;


void OpenML_SupportCatalog()
{
   if (LocaleBase)
   {
      if (ML_SupportCatalog = OpenCatalog(NULL, "ML_Support.catalog",
     			          OC_BuiltInLanguage, "english",
     			          OC_Version, 2,
     			          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()
{
   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;
   }
}

