/* $Id: language.h,v 1.7 2007/08/24 05:58:05 mgdepalma Exp $
 *
 * Copyright (C) 2007 Softcraft Impresa, LLC <info@softcraft.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; You may only use version 2 of the License,
 * you have no option to use any other version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef LANGUAGE_H
#define LANGUAGE_H

#include <stdlib.h>
#include <string.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>

G_BEGIN_DECLS

#define MAX_CHARS_PER_LINE 72   /* max chars per line   */
#define MAX_LABEL_LENGTH   32   /* max length of labels */
#define MAX_BUFFER_SIZE   512	/* max message length   */

extern const char *Program;	/* published program name identifier */
extern const char *Release;	/* published program release version */

/* Definitions (data structures) */
typedef enum   _Label	     Label;
typedef struct _Translation  Translation;

enum _Label
{
  LABEL_APPLY,
  LABEL_CANCEL,
  LABEL_CAPTURE,
  LABEL_CLOSE,
  LABEL_DECORE,
  LABEL_DEFAULT,
  LABEL_DELAY,
  LABEL_DISMISS,
  LABEL_DONE,
  LABEL_FILE,
  LABEL_FILE_EXIST,
  LABEL_FILE_TYPE,
  LABEL_FILE_TYPE_BMP,
  LABEL_FILE_TYPE_JPG,
  LABEL_FILE_TYPE_PNG,
  LABEL_GRAB,
  LABEL_GRAB_REGION,
  LABEL_GRAB_SCREEN,
  LABEL_GRAB_WINDOW,
  LABEL_HIDE,
  LABEL_INFO,
  LABEL_OK,
  LABEL_OPEN,
  LABEL_PRINT,
  LABEL_PRINT_COMMAND,
  LABEL_PRINT_INVALID,
  LABEL_PRINT_JOB_SENT,
  LABEL_PRINT_LANDSCAPE,
  LABEL_PRINT_PORTRAIT,
  LABEL_PRINT_TO_FILE,
  LABEL_PRINTER,
  LABEL_QUIT,
  LABEL_SAVE,
  LABEL_SAVE_AS,
  LABEL_SEND_TO,
  LABEL_SET_BACKGROUND,
  LABEL_UNIMPLEMENTED,
  LABEL_VIEW,
  LABEL_WRITE_OVER,
  LABEL_WROTE,
  LABEL_X
};

struct _Translation {
  Label label;
  gchar *locale;
};

/* Methods exported by the implementation */
gchar *_L(Label label);
gchar *basename(const gchar *path);

G_END_DECLS

#endif /* </LANGUAGE_H */
