Commit a6f1cf13 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Now *this* should be the correct revision for the 0.1.0 release tag.



(Old svn revision: 2723)
parents 4bdfb13a ce336b6b
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* == Released 0.1.0 ===
* NEWS, configure.in.in: Bump version.
* po/*.po: Update Project-Id-Version.
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* panel-plugin/time-out-countdown.{c,h}: Enhance seconds to
string conversion. It's now able to not include hours.
* panel-plugin/time-out.c: Add options to show/hide hours and
the time in general. Tooltip added to the event box. Small
icon is now visible in the panel. Time can be hidden now.
Properly handle size and orientation changes.
* panel-plugin/time-out-lock-screen.c: Update to new seconds
to string conversion.
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* panel-plugin/time-out-lock-screen.c: Remove invalid cast from
GtkButton to GtkMisc.
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* panel-plugin/Makefile.am: Update Makefile to fix make
distcheck.
* panel-plugin/time-out.h: Fix copyright year.
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* panel-plugin/time-out-lock-screen.c: Remove debug statement
......
0.1.0
=====
- First release.
- Includes most features I had in mind: Flexible time settings, option
to take breaks whenever you like, easy way to deactivate the plugin
without removing it from the panel, postpone feature and locking
of all screens during breaks.
- Languages available: English, German.
......@@ -9,10 +9,10 @@ dnl ***************************
dnl *** Version information ***
dnl ***************************
m4_define([time_out_version_major], [0])
m4_define([time_out_version_minor], [0])
m4_define([time_out_version_micro], [1])
m4_define([time_out_version_minor], [1])
m4_define([time_out_version_micro], [0])
m4_define([time_out_version_build], [r@REVISION@])
m4_define([time_out_version_tag], [svn])
m4_define([time_out_version_tag], [])
m4_define([time_out_version], [time_out_version_major().time_out_version_minor().time_out_version_micro()ifelse(time_out_version_tag(), [svn], [time_out_version_tag()-time_out_version_build()], [time_out_version_tag()])])
dnl ***************************
......@@ -40,6 +40,7 @@ AC_PROG_LD()
AC_PROG_INSTALL()
AC_PROG_INTLTOOL()
AC_PROG_CC_C_O()
AM_PROG_CC_C_O()
dnl **********************************
dnl *** Check for standard headers ***
......
# $Id: Makefile.am 2499 2007-02-18 20:59:26Z jannis $
INCLUDES = \
-DDATADIR=\"$(datadir)\" \
-I$(top_srcdir) \
-DG_LOG_DOMAIN=\"xfce4-time-out-plugin\" \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
$(PLATFORM_CPPFLAGS)
plugindir = \
$(libexecdir)/xfce4/panel-plugins
#
# Withdrawal plugin
# xfce4-time-out-plugin
#
plugin_PROGRAMS = \
xfce4-time-out-plugin
plugindir = \
$(libexecdir)/xfce4/panel-plugins
xfce4_time_out_plugin_SOURCES = \
time-out-countdown.h \
time-out-countdown.c \
......@@ -23,15 +16,21 @@ xfce4_time_out_plugin_SOURCES = \
time-out-lock-screen.c \
time-out-fadeout.h \
time-out-fadeout.c \
time-out.h \
time-out.c
xfce4_time_out_plugin_CFLAGS = \
-DDATADIR=\"$(datadir)\" \
-I$(top_srcdir) \
-I$(top_builddir) \
-DG_LOG_DOMAIN=\"xfce4-time-out-plugin\" \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
$(LIBXFCE4UTIL_CFLAGS) \
$(LIBXFCEGUI4_CFLAGS) \
$(LIBXFCE4PANEL_CFLAGS) \
$(PLATFORM_CFLAGS)
xfce4_time_out_plugin_LDADD = \
xfce4_time_out_plugin_LDFLAGS = \
$(LIBXFCE4UTIL_LIBS) \
$(LIBXFCEGUI4_LIBS) \
$(LIBXFCE4PANEL_LIBS)
......
......@@ -365,6 +365,7 @@ time_out_countdown_get_remaining (TimeOutCountdown *countdown)
GString*
time_out_countdown_seconds_to_string (gint seconds,
gboolean display_seconds,
gboolean display_hours,
gboolean compressed)
{
GString *str;
......@@ -387,15 +388,36 @@ time_out_countdown_seconds_to_string (gint seconds,
if (compressed)
{
if (G_UNLIKELY (display_seconds))
g_string_printf (str, _("%02d:%02d:%02d"), hours, minutes, seconds);
{
if (display_hours)
{
/* Hours:minutes:seconds */
g_string_printf (str, _("%02d:%02d:%02d"), hours, minutes, seconds);
}
else
{
/* Minutes:seconds */
g_string_printf (str, _("%02d:%02d"), minutes, seconds);
}
}
else
g_string_printf (str, _("%02d:%02d"), hours, minutes);
{
if (display_hours)
{
/* Hours:minutes */
g_string_printf (str, _("%02d:%02d"), hours, minutes + 1);
}
else
{
g_string_printf (str, "%02d", minutes + 1);
}
}
}
else
{
if (hours <= 0)
{
if (minutes <= 0)
if (minutes <= 1)
{
if (G_UNLIKELY (display_seconds))
g_string_printf (str, _("Time left: %d seconds"), seconds);
......
......@@ -50,6 +50,7 @@ gboolean time_out_countdown_get_stopped (TimeOutCountdown *countd
gint time_out_countdown_get_remaining (TimeOutCountdown *countdown);
GString *time_out_countdown_seconds_to_string (gint seconds,
gboolean display_seconds,
gboolean display_hours,
gboolean compressed);
G_END_DECLS;
......
......@@ -183,7 +183,6 @@ time_out_lock_screen_init (TimeOutLockScreen *lock_screen)
/* Create postpone button */
lock_screen->postpone_button = gtk_button_new_with_mnemonic (_("_Postpone"));
gtk_misc_set_alignment (GTK_MISC (lock_screen->postpone_button), 0.5, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), lock_screen->postpone_button, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (lock_screen->postpone_button), "clicked", G_CALLBACK (time_out_lock_screen_postpone), lock_screen);
gtk_widget_show (lock_screen->postpone_button);
......@@ -276,7 +275,7 @@ time_out_lock_screen_set_remaining (TimeOutLockScreen *lock_screen,
lock_screen->remaining_seconds = seconds;
/* Get long string representation of the remaining time */
time_string = time_out_countdown_seconds_to_string (seconds, TRUE, FALSE);
time_string = time_out_countdown_seconds_to_string (seconds, TRUE, TRUE, FALSE);
/* Add markup */
g_string_prepend (time_string, "<span size=\"x-large\">");
......
......@@ -38,7 +38,9 @@
/* Default settings */
#define DEFAULT_ENABLED TRUE
#define DEFAULT_ALLOW_POSTPONE TRUE
#define DEFAULT_DISPLAY_SECONDS FALSE
#define DEFAULT_DISPLAY_SECONDS TRUE
#define DEFAULT_DISPLAY_HOURS FALSE
#define DEFAULT_DISPLAY_TIME TRUE
#define DEFAULT_BREAK_COUNTDOWN_SECONDS 1800 /* 30 minutes */
#define DEFAULT_LOCK_COUNTDOWN_SECONDS 300 /* 5 minutes */
#define DEFAULT_POSTPONE_COUNTDOWN_SECONDS 120 /* 2 minutes */
......@@ -62,7 +64,9 @@ struct _TimeOutPlugin
gint postpone_countdown_seconds;
guint enabled : 1;
guint display_seconds : 1;
guint display_hours : 1;
guint allow_postpone : 1;
guint display_time : 1;
/* Lock screen to be shown during breaks */
TimeOutLockScreen *lock_screen;
......@@ -71,6 +75,8 @@ struct _TimeOutPlugin
GtkWidget *ebox;
GtkWidget *hvbox;
GtkWidget *time_label;
GtkWidget *panel_icon;
GtkTooltips *tooltips;
};
......@@ -83,6 +89,9 @@ static void time_out_free (XfcePanelPlug
static gboolean time_out_size_changed (XfcePanelPlugin *plugin,
gint size,
TimeOutPlugin *time_out);
static void time_out_orientation_changed (XfcePanelPlugin *plugin,
GtkOrientation orientation,
TimeOutPlugin *time_out);
static void time_out_configure (XfcePanelPlugin *plugin,
TimeOutPlugin *time_out);
static void time_out_end_configure (GtkDialog *dialog,
......@@ -96,8 +105,12 @@ static void time_out_postpone_countdown_seconds_changed (GtkSpinButton
TimeOutPlugin *time_out);
static void time_out_allow_postpone_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out);
static void time_out_display_time_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out);
static void time_out_display_seconds_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out);
static void time_out_display_hours_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out);
static void time_out_load_settings (TimeOutPlugin *time_out);
static void time_out_save_settings (TimeOutPlugin *time_out);
static void time_out_take_break (GtkMenuItem *menu_item,
......@@ -172,12 +185,21 @@ time_out_new (XfcePanelPlugin *plugin)
gtk_container_add (GTK_CONTAINER (time_out->ebox), time_out->hvbox);
gtk_widget_show (time_out->hvbox);
/* Create time out icon */
time_out->panel_icon = gtk_image_new_from_icon_name ("xfce4-time-out-plugin", GTK_ICON_SIZE_DIALOG);
gtk_image_set_pixel_size (GTK_IMAGE (time_out->panel_icon), xfce_panel_plugin_get_size (time_out->plugin) - 8);
gtk_box_pack_start (GTK_BOX (time_out->hvbox), time_out->panel_icon, TRUE, TRUE, 0);
gtk_widget_show (time_out->panel_icon);
/* Create label for displaying the remaining time until the next break */
time_out->time_label = gtk_label_new ("Inactive");
gtk_misc_set_alignment (GTK_MISC (time_out->time_label), 0.5, 0.5);
gtk_box_pack_start (GTK_BOX (time_out->hvbox), time_out->time_label, TRUE, TRUE, 0);
gtk_widget_show (time_out->time_label);
/* Create tooltips group */
time_out->tooltips = gtk_tooltips_new ();
return time_out;
}
......@@ -244,6 +266,7 @@ time_out_construct (XfcePanelPlugin *plugin)
g_signal_connect (G_OBJECT (plugin), "free-data", G_CALLBACK (time_out_free), time_out);
g_signal_connect (G_OBJECT (plugin), "size-changed", G_CALLBACK (time_out_size_changed), time_out);
g_signal_connect (G_OBJECT (plugin), "configure-plugin", G_CALLBACK (time_out_configure), time_out);
g_signal_connect (G_OBJECT (plugin), "orientation-changed", G_CALLBACK (time_out_orientation_changed), time_out);
/* Display the configure menu item */
xfce_panel_plugin_menu_show_configure (plugin);
......@@ -301,9 +324,15 @@ time_out_size_changed (XfcePanelPlugin *plugin,
{
GtkOrientation orientation;
g_return_val_if_fail (plugin != NULL, FALSE);
g_return_val_if_fail (time_out != NULL, FALSE);
/* Get the orientation of the panel */
orientation = xfce_panel_plugin_get_orientation (plugin);
/* Update icon size */
gtk_image_set_pixel_size (GTK_IMAGE (time_out->panel_icon), size - 8);
/* Update widget size */
if (orientation == GTK_ORIENTATION_HORIZONTAL)
gtk_widget_set_size_request (GTK_WIDGET (plugin), -1, size);
......@@ -316,6 +345,20 @@ time_out_size_changed (XfcePanelPlugin *plugin,
static void
time_out_orientation_changed (XfcePanelPlugin *plugin,
GtkOrientation orientation,
TimeOutPlugin *time_out)
{
g_return_if_fail (plugin != NULL);
g_return_if_fail (time_out != NULL);
/* Apply orientation to hvbox */
xfce_hvbox_set_orientation (XFCE_HVBOX (time_out->hvbox), orientation);
}
static void
time_out_configure (XfcePanelPlugin *plugin,
TimeOutPlugin *time_out)
......@@ -326,6 +369,7 @@ time_out_configure (XfcePanelPlugin *plugin,
GtkWidget *behaviourbin;
GtkWidget *appearancebin;
GtkWidget *table;
GtkWidget *vbox;
GtkWidget *label;
GtkWidget *spin;
GtkWidget *checkbutton;
......@@ -428,11 +472,30 @@ time_out_configure (XfcePanelPlugin *plugin,
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), framebox, TRUE, TRUE, 0);
gtk_widget_show (framebox);
/* Create appearance box */
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (appearancebin), vbox);
gtk_widget_show (vbox);
/* Create display time check button */
checkbutton = gtk_check_button_new_with_label (_("Display remaining time in the panel"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), time_out->display_time);
g_signal_connect (checkbutton, "toggled", G_CALLBACK (time_out_display_time_toggled), time_out);
gtk_container_add (GTK_CONTAINER (vbox), checkbutton);
gtk_widget_show (checkbutton);
/* Create display hours check button */
checkbutton = gtk_check_button_new_with_label (_("Display hours"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), time_out->display_hours);
g_signal_connect (checkbutton, "toggled", G_CALLBACK (time_out_display_hours_toggled), time_out);
gtk_container_add (GTK_CONTAINER (vbox), checkbutton);
gtk_widget_show (checkbutton);
/* Create display seconds check button */
checkbutton = gtk_check_button_new_with_label (_("Display seconds"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), time_out->display_seconds);
g_signal_connect (checkbutton, "toggled", G_CALLBACK (time_out_display_seconds_toggled), time_out);
gtk_container_add (GTK_CONTAINER (appearancebin), checkbutton);
gtk_container_add (GTK_CONTAINER (vbox), checkbutton);
gtk_widget_show (checkbutton);
/* Show the entire dialog */
......@@ -517,6 +580,25 @@ time_out_allow_postpone_toggled (GtkToggleButton *toggle_button,
static void
time_out_display_time_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out)
{
g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button));
g_return_if_fail (time_out != NULL);
/* Set display time attribute */
time_out->display_time = gtk_toggle_button_get_active (toggle_button);
/* Hide or display the time label */
if (time_out->display_time)
gtk_widget_show (time_out->time_label);
else
gtk_widget_hide (time_out->time_label);
}
static void
time_out_display_seconds_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out)
......@@ -530,6 +612,19 @@ time_out_display_seconds_toggled (GtkToggleButton *toggle_button,
static void
time_out_display_hours_toggled (GtkToggleButton *toggle_button,
TimeOutPlugin *time_out)
{
g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button));
g_return_if_fail (time_out != NULL);
/* Set display hours attribute */
time_out->display_hours = gtk_toggle_button_get_active (toggle_button);
}
static void
time_out_load_settings (TimeOutPlugin *time_out)
{
......@@ -542,6 +637,8 @@ time_out_load_settings (TimeOutPlugin *time_out)
gint postpone_countdown_seconds = DEFAULT_POSTPONE_COUNTDOWN_SECONDS;
gboolean enabled = DEFAULT_ENABLED;
gboolean display_seconds = DEFAULT_DISPLAY_SECONDS;
gboolean display_hours = DEFAULT_DISPLAY_HOURS;
gboolean display_time = DEFAULT_DISPLAY_TIME;
gboolean allow_postpone = DEFAULT_ALLOW_POSTPONE;
g_return_if_fail (time_out != NULL);
......@@ -564,6 +661,8 @@ time_out_load_settings (TimeOutPlugin *time_out)
postpone_countdown_seconds = xfce_rc_read_int_entry (rc, "postpone-countdown-seconds", postpone_countdown_seconds);
enabled = xfce_rc_read_bool_entry (rc, "enabled", enabled);
display_seconds = xfce_rc_read_bool_entry (rc, "display-seconds", display_seconds);
display_hours = xfce_rc_read_bool_entry (rc, "display-hours", display_hours);
display_time = xfce_rc_read_bool_entry (rc, "display-time", display_time);
allow_postpone = xfce_rc_read_bool_entry (rc, "allow-postpone", allow_postpone);
/* Close file handle */
......@@ -580,6 +679,8 @@ time_out_load_settings (TimeOutPlugin *time_out)
time_out->postpone_countdown_seconds = postpone_countdown_seconds;
time_out->enabled = enabled;
time_out->display_seconds = display_seconds;
time_out->display_hours = display_hours;
time_out->display_time = display_time;
time_out->allow_postpone = allow_postpone;
}
......@@ -611,6 +712,8 @@ time_out_save_settings (TimeOutPlugin *time_out)
xfce_rc_write_int_entry (rc, "postpone-countdown-seconds", time_out->postpone_countdown_seconds);
xfce_rc_write_bool_entry (rc, "enabled", time_out->enabled);
xfce_rc_write_bool_entry (rc, "display-seconds", time_out->display_seconds);
xfce_rc_write_bool_entry (rc, "display-hours", time_out->display_hours);
xfce_rc_write_bool_entry (rc, "display-time", time_out->display_time);
/* Close file handle */
xfce_rc_close (rc);
......@@ -707,19 +810,25 @@ time_out_break_countdown_update (TimeOutCountdown *countdown,
gint seconds_remaining,
TimeOutPlugin *time_out)
{
GString *time_string;
GString *short_time_string;
GString *long_time_string;
g_return_if_fail (IS_TIME_OUT_COUNTDOWN (countdown));
g_return_if_fail (time_out != NULL);
/* Get short version of the time string */
time_string = time_out_countdown_seconds_to_string (seconds_remaining, time_out->display_seconds, TRUE);
/* Get time strings */
short_time_string = time_out_countdown_seconds_to_string (seconds_remaining, time_out->display_seconds, time_out->display_hours, TRUE);
long_time_string = time_out_countdown_seconds_to_string (seconds_remaining, TRUE, TRUE, FALSE);
/* Set label text */
gtk_label_set_text (GTK_LABEL (time_out->time_label), time_string->str);
gtk_label_set_text (GTK_LABEL (time_out->time_label), short_time_string->str);
/* Update tooltips */
gtk_tooltips_set_tip (GTK_TOOLTIPS (time_out->tooltips), time_out->ebox, long_time_string->str, long_time_string->str);
/* Free time string */
g_string_free (time_string, TRUE);
/* Free time strings */
g_string_free (short_time_string, TRUE);
g_string_free (long_time_string, TRUE);
}
......
/* $Id$ */
/* vi:set expandtab sw=2 sts=2: */
/*-
* Copyright (c) 2006 Jannis Pohlmann <jannis@xfce.org>
* Copyright (c) 2007 Jannis Pohlmann <jannis@xfce.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
......
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* xfce4-time-out-plugin.pot: Merge new strings.
* de.po: Update German translations.
2007-05-06 Jannis Pohlmann <jannis@xfce.org>
* POTFILES.in, xfce4-time-out-plugin.pot: Merge new strings.
......
# Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
#
# This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
#
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
#
# - Modified by jacob berkman <jacob@ximian.com> to install
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
#
# - Modified by Rodney Dawes <dobey@novell.com> for use with intltool
#
# We have the following line for use by intltoolize:
# INTLTOOL_MAKEFILE
GETTEXT_PACKAGE = xfce4-time-out-plugin
PACKAGE = xfce4-time-out-plugin
VERSION = 0.0.1svn-r2711
SHELL = /bin/sh
srcdir = .
top_srcdir = ..
top_builddir = ..
prefix = /usr/local
exec_prefix = ${prefix}
datadir = ${datarootdir}
datarootdir = ${prefix}/share
libdir = ${exec_prefix}/lib
DATADIRNAME = share
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
subdir = po
install_sh = $(SHELL) /home/jannis/devel/xfce/svn/goodies/xfce4-time-out-plugin/trunk/install-sh
# Automake >= 1.8 provides /bin/mkdir -p.
# Until it can be supposed, use the safe fallback:
mkdir_p = $(install_sh) -d
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
GMSGFMT = /usr/bin/msgfmt
MSGFMT = /usr/bin/msgfmt
XGETTEXT_ARGS = --keyword=Q_
XGETTEXT = /usr/bin/xgettext $(XGETTEXT_ARGS)
INTLTOOL_UPDATE = $(top_builddir)/intltool-update
INTLTOOL_EXTRACT = $(top_builddir)/intltool-extract
MSGMERGE = XGETTEXT_ARGS="$(XGETTEXT_ARGS)" INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
GENPOT = XGETTEXT_ARGS="$(XGETTEXT_ARGS)" INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
ALL_LINGUAS = de
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
POFILES=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.po "; done)
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES)
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
POTFILES = \
../panel-plugin/time-out.c \
../panel-plugin/xfce4-time-out-plugin.desktop.in.in
#This Gets Replace for some reason
CATALOGS=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
.SUFFIXES:
.SUFFIXES: .po .pox .gmo .mo .msg .cat
.po.pox:
$(MAKE) $(GETTEXT_PACKAGE).pot
$(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
.po.mo:
$(MSGFMT) -o $@ $<
.po.gmo:
file=`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
&& rm -f $@ && gencat $@ $*.msg
all: all-yes
all-yes: $(CATALOGS)
all-no:
$(GETTEXT_PACKAGE).pot: $(POTFILES)
$(GENPOT)
install: install-data
install-data: install-data-yes
install-data-no: all
install-data-yes: all
$(mkdir_p) $(DESTDIR)$(itlocaledir)
if test -n "$(PO_LINGUAS)"; then \
linguas="$(PO_LINGUAS)"; \
else \
linguas="$(ALL_LINGUAS)"; \
fi; \
for lang in $$linguas; do \
dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
$(mkdir_p) $$dir; \
if test -r $$lang.gmo; then \
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
else \
$(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
echo "installing $(srcdir)/$$lang.gmo as" \
"$$dir/$(GETTEXT_PACKAGE).mo"; \
fi; \
if test -r $$lang.gmo.m; then \
$(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
else \
if test -r $(srcdir)/$$lang.gmo.m ; then \
$(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
$$dir/$(GETTEXT_PACKAGE).mo.m; \
echo "installing $(srcdir)/$$lang.gmo.m as" \
"$$dir/$(GETTEXT_PACKAGE).mo.m"; \
else \
true; \
fi; \
fi; \
done
# Empty stubs to satisfy archaic automake needs
dvi info tags TAGS ID:
# Define this as empty until I found a useful application.
installcheck:
uninstall:
if test -n "$(PO_LINGUAS)"; then \
linguas="$(PO_LINGUAS)"; \
else \
linguas="$(ALL_LINGUAS)"; \
fi; \
for lang in $$linguas; do \
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
done
check: all $(GETTEXT_PACKAGE).pot
mostlyclean:
rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp