<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,3 @@
-- localization
 - code-cleanup
 - online-help (yelp)
-- use GOption instead of getopt
 - use GList instead of my home-grown linked-list stuff</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -1,156 +1,15 @@
-#! /bin/sh
+#!/bin/sh
 
-if [ -z &quot;$USE_SHELL&quot; ]; then
-        USE_SHELL=/bin/sh; export USE_SHELL
-fi
+srcdir=`dirname $0`
+test -z &quot;$srcdir&quot; &amp;&amp; srcdir=.
 
-(eval 'echo $((1+1))') &gt;/dev/null 2&gt;&amp;1 || {
-    if [ -x /bin/ksh ]; then
-        USE_SHELL=/bin/ksh
-    elif [ -x /usr/xpg4/bin/sh ]; then
-        USE_SHELL=/usr/xpg4/bin/sh
-    else
-        echo &quot;please install /bin/ksh or /usr/xpg4/bin/sh&quot;
-        exit
-    fi
-    export USE_SHELL
-    echo &quot;restarting under $USE_SHELL...&quot;
-    $USE_SHELL $0 &quot;$@&quot;
-    exit
-}
-   
-TOP_DIR=$(cd $(dirname $0); echo $PWD)
-LAST_DIR=$PWD
+ORIGDIR=`pwd`
+cd $srcdir
 
-if test ! -f $TOP_DIR/configure.ac ; then
-    echo &quot;You must execute this script from the top level directory.&quot;
-    exit 1
-fi
+autoreconf -v --install || exit 1
+intltoolize --copy --force --automake || exit 1
+glib-gettextize --copy --force || exit 1
 
-# Functions
-dump_help_screen ()
-{
-    echo &quot;Usage: autogen.sh [options]&quot;
-    echo 
-    echo &quot;options:&quot;
-    echo &quot;  -h,--help		    Show this help screen&quot;
-    echo
-    exit 0
-}
+cd $ORIGDIR || exit $?
 
-parse_options ()
-{
-    while test &quot;$1&quot; != &quot;&quot; ; do
-        case $1 in
-            -h|--help)
-                dump_help_screen
-                ;;
-            *)
-                echo Invalid argument - $1
-                dump_help_screen
-                ;;
-        esac
-        shift
-    done
-}
-
-run_or_die_shell ()
-{
-    run_or_die $USE_SHELL &quot;$@&quot;
-}
-
-run_or_die ()
-{
-    COMMAND=$1
-
-    # check for empty commands
-    if test -z &quot;$COMMAND&quot; ; then
-        echo &quot;*warning* no command specified&quot;
-        return 1
-    fi
-
-    shift;
-
-    OPTIONS=&quot;$@&quot;
-
-    # print a message
-    printf &quot;*info* running $COMMAND&quot;
-    if test -n &quot;$OPTIONS&quot; ; then
-        echo &quot; ($OPTIONS)&quot;
-    else
-        echo
-    fi
-
-    # run or die
-    $COMMAND $OPTIONS ; RESULT=$?
-    if test $RESULT -ne 0 ; then
-        echo &quot;*error* $COMMAND failed. (exit code = $RESULT)&quot;
-        exit 1
-    fi
-
-    return 0
-}
-
-# Main run
-parse_options &quot;$@&quot;
-cd $TOP_DIR
-
-AUTOCONF=${AUTOCONF:-autoconf}
-AUTOMAKE=${AUTOMAKE:-automake}
-ACLOCAL=${ACLOCAL:-aclocal}
-AUTOHEADER=${AUTOHEADER:-autoheader}
-LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
-
-# Check for proper automake version
-automake_maj_req=1
-automake_min_req=9
-
-printf &quot;Checking Automake version...&quot;
-
-automake_version=`$AUTOMAKE --version | head -n1 | cut -f 4 -d \ `
-automake_major=$(echo $automake_version | cut -f 1 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
-automake_minor=$(echo $automake_version | cut -f 2 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
-automake_micro=$(echo $automake_version | cut -f 3 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
-
-printf &quot;$automake_major.$automake_minor.$automake_micro.:  &quot;
-
-if [ $automake_major -ge $automake_maj_req ]; then
-    if [ $automake_minor -lt $automake_min_req ]; then 
-      echo &quot;error: cairo-clock requires automake $automake_maj_req.$automake_min_req&quot;
-      exit 1
-    else
-      echo &quot;ok&quot;
-    fi
-fi
-
-# Check for proper autoconf version
-autoconf_maj_req=2
-autoconf_min_req=52
-
-printf &quot;Checking Autoconf version... &quot;
-
-autoconf_version=`$AUTOCONF --version | head -n1 | cut -f 4 -d \ `
-autoconf_major=$(echo $autoconf_version | cut -f 1 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
-autoconf_minor=$(echo $autoconf_version | cut -f 2 -d . | sed -e 's:^\([0-9]\+\).*$:\1:')
-
-printf &quot;$autoconf_major.$autoconf_minor..:  &quot;
-
-if [ $autoconf_major -ge $autoconf_maj_req ]; then
-    if [ $autoconf_minor -lt $autoconf_min_req ]; then 
-      echo &quot;error: cairo-clock requires autoconf $autoconf_maj_req.$autoconf_min_req&quot;
-      exit 1
-    else
-      echo &quot;ok&quot;
-    fi
-fi
-
-touch ChangeLog
-
-run_or_die $ACLOCAL -I m4
-run_or_die $LIBTOOLIZE -f -c --automake
-run_or_die $ACLOCAL -I m4
-run_or_die $AUTOCONF
-run_or_die $AUTOHEADER
-run_or_die $AUTOMAKE -a -c
-
-cd $LAST_DIR
+$srcdir/configure --enable-maintainer-mode &quot;$@&quot;
\ No newline at end of file</diff>
      <filename>autogen.sh</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,24 @@
-dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ([2.57])
 
-AC_INIT([cairo-clock], [0.3.3])
-AC_PREREQ([2.5])
+m4_define(cairo_clock_version_major, 0)
+m4_define(cairo_clock_version_minor, 3)
+m4_define(cairo_clock_version_micro, 3)
 
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
+AC_INIT([cairo-clock],
+	[cairo_clock_version_major().cairo_clock_version_minor().cairo_clock_version_micro()],
+	[macslow@bangang.de])
 
-AM_INIT_AUTOMAKE([1.8])
+CAIRO_CLOCK_VERSION_MAJOR=cairo_clock_version_major()
+CAIRO_CLOCK_VERSION_MINOR=cairo_clock_version_minor()
+CAIRO_CLOCK_VERSION_MICRO=cairo_clock_version_micro()
+AC_SUBST(CAIRO_CLOCK_VERSION_MAJOR)
+AC_SUBST(CAIRO_CLOCK_VERSION_MINOR)
+AC_SUBST(CAIRO_CLOCK_VERSION_MICRO)
 
-AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([1.9])
+AC_CONFIG_HEADER([config.h])
+AC_PROG_INTLTOOL([0.23])
+AM_MAINTAINER_MODE
 
 dnl Check for C compiler
 AC_LANG([C])
@@ -54,6 +63,17 @@ AC_DISABLE_STATIC
 AC_ENABLE_SHARED
 AC_PROG_LIBTOOL
 
+dnl intltool
+ALL_LINGUAS=&quot;de&quot;
+AC_SUBST(ALL_LINGUAS)
+AM_GLIB_GNU_GETTEXT
+GETTEXT_PACKAGE=cairo-clock
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,&quot;$GETTEXT_PACKAGE&quot;, [Gettext package.])
+AC_SUBST(GETTEXT_PACKAGE)
+
+cairoclocklocaledir='${prefix}/${DATADIRNAME}/locale'
+AC_SUBST(cairoclocklocaledir)
+
 dnl pkg-config
 PKG_PROG_PKG_CONFIG
 
@@ -65,11 +85,11 @@ PKG_CHECK_MODULES([GTK], [gtk+-2.0 &gt;= 2.10.0])
 
 dnl GTK Deps+Libglade
 PKG_CHECK_MODULES([GTK_DEP],
-	[cairo &gt;= 1.0.0
+	[cairo &gt;= 1.2.0
          pango &gt;= 1.10.0
 	 pangocairo &gt;= 1.10.0
-	 libglade-2.0 &gt;= 2.5.1
-	 librsvg-2.0 &gt;= 2.13.91])
+	 libglade-2.0 &gt;= 2.6.0
+	 librsvg-2.0 &gt;= 2.14.0])
 
 dnl CLOCK defines
 CLOCK_DEFINES='-DDATA_DIR=&quot;\&quot;$(datadir)\&quot;&quot; -DPKGDATA_DIR=&quot;\&quot;$(pkgdatadir)\&quot;&quot;'
@@ -86,6 +106,7 @@ AC_CONFIG_FILES([
     glade/Makefile
     src/Makefile
     man/Makefile
+    po/Makefile.in
     themes/Makefile
     themes/fdo/Makefile
     themes/simple/Makefile</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,5 @@
 desktopdir = $(datadir)/applications
 
-desktop_DATA = \
-	cairo-clock.desktop
-
-EXTRA_DIST = \
-	cairo-clock.desktop.in
-
+desktop_in_files = cairo-clock.desktop.in
+desktop_DATA = $(cairo_clock_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@</diff>
      <filename>desktop/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,8 @@
 [Desktop Entry]
 Type=Application
 Encoding=UTF-8
-Name=MacSlow's Cairo-Clock
-Name[de]=MacSlow's Cairo-Uhr
-Name[en]=MacSlow's Cairo-Clock
-Name[fr]=MacSlow's Cairo-Heure
-Comment=a super fine analog clock
-Comment[de]=eine total tolle Analoguhr
-Comment[en]=a super fine analog clock
-Comment[fr]=une formidable heure analogue
+_Name=MacSlow's Cairo-Clock
+_Comment=a super fine analog clock
 Exec=cairo-clock
 Icon=cairo-clock
 Categories=GNOME;Application;Utility;</diff>
      <filename>desktop/cairo-clock.desktop.in</filename>
    </modified>
    <modified>
      <diff>@@ -3,19 +3,20 @@ transform = s/_/-/g
 
 cairo_clock_LDFLAGS = -Wl, --export-dynamic
 
-cairo_clock_LDADD = \
-	$(GLIB_LIBS)             \
-	$(GTK_LIBS)              \
+cairo_clock_LDADD =	\
+	$(GLIB_LIBS)	\
+	$(GTK_LIBS)	\
 	$(GTK_DEP_LIBS)		 
 
-cairo_clock_CFLAGS = \
-	-I$(top_srcdir)                              \
-	-I$(top_srcdir)/include                      \
-	-DG_LOG_DOMAIN=\&quot;CairoClock\&quot;                \
-	$(GLIB_CFLAGS)                               \
-	$(GTK_CFLAGS) $(GTK_DEP_CFLAGS)              \
-	$(CLOCK_DEFINES)			     \
-	-D_XOPEN_SOURCE=600
+cairo_clock_CFLAGS =			\
+	-I$(top_srcdir)			\
+	-I$(top_srcdir)/include		\
+	-DG_LOG_DOMAIN=\&quot;CairoClock\&quot;	\
+	$(GLIB_CFLAGS)			\
+	$(GTK_CFLAGS) $(GTK_DEP_CFLAGS)	\
+	$(CLOCK_DEFINES)		\
+	-D_XOPEN_SOURCE=600		\
+	-DCAIROCLOCKLOCALEDIR=\&quot;&quot;$(cairoclocklocaledir)&quot;\&quot;
 
 cairo_clock_SOURCES = \
 	cairo-clock.c</diff>
      <filename>src/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -31,7 +31,9 @@
 **    Truchan &lt;moppsy@comcast.net&gt;
 **
 *******************************************************************************/
- 
+
+#include &quot;config.h&quot;
+
 #include &lt;time.h&gt;
 #include &lt;math.h&gt;
 #include &lt;string.h&gt;
@@ -51,9 +53,6 @@
 #include &lt;gdk/gdkx.h&gt;
 #endif
 
-#define GETTEXT_PACKAGE &quot;cairo-clock&quot;
-#define LOCALEDIR &quot;mo&quot;
-
 #define SECOND_INTERVAL	 1000
 #define MINUTE_INTERVAL	60000
 #define MIN_WIDTH	   32
@@ -827,9 +826,9 @@ write_settings (gchar* pcFilePath,
 		return FALSE;
 
 	fprintf (fileHandle,
-		 &quot;%s %s %s\n&quot;, &quot;# This file is machine-generated.&quot;,
-		 &quot;Do not edit it manually!&quot;,
-		 &quot;I really mean it!!!&quot;);
+		 &quot;%s %s %s\n&quot;, _(&quot;# This file is machine-generated.&quot;),
+		 _(&quot;Do not edit it manually!&quot;),
+		 _(&quot;I really mean it!!!&quot;));
 	fprintf (fileHandle, &quot;x=%d\n&quot;, iX);
 	fprintf (fileHandle, &quot;y=%d\n&quot;, iY);
 	fprintf (fileHandle, &quot;width=%d\n&quot;, iWidth);
@@ -872,7 +871,7 @@ on_close_clicked (GtkButton* pButton,
 			     g_iSticky,
 			     g_i24,
 			     g_iRefreshRate))
-		printf (&quot;Ups, there was an error while trying to save the preferences!\n&quot;);
+		printf (_(&quot;Ups, there was an error while trying to save the preferences!\n&quot;));
 
 	if (pcFilename)
 		free (pcFilename);
@@ -1327,116 +1326,116 @@ main (int    argc,
 					    0,
 					    G_OPTION_ARG_INT,
 					    &amp;g_iDefaultX,
-					    &quot;x-position of the top-left window-corner&quot;,
+					    _(&quot;x-position of the top-left window-corner&quot;),
 					    &quot;X&quot;},
 					   {&quot;yposition&quot;,
 					    'y',
 					    0,
 					    G_OPTION_ARG_INT,
 					    &amp;g_iDefaultY,
-					    &quot;y-position of the top-left window-corner&quot;,
+					    _(&quot;y-position of the top-left window-corner&quot;),
 					    &quot;Y&quot;},
 					   {&quot;width&quot;,
 					    'w',
 					    0,
 					    G_OPTION_ARG_INT,
 					    &amp;g_iDefaultWidth,
-					    &quot;open window with this width&quot;,
+					    _(&quot;open window with this width&quot;),
 					    &quot;WIDTH&quot;},
 					   {&quot;height&quot;,
 					    'h',
 					    0,
 					    G_OPTION_ARG_INT,
 					    &amp;g_iDefaultHeight,
-					    &quot;open window with this height&quot;,
+					    _(&quot;open window with this height&quot;),
 					    &quot;HEIGHT&quot;},
 					   {&quot;seconds&quot;,
 					    's',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_iShowSeconds,
-					    &quot;draw seconds hand&quot;,
+					    _(&quot;draw seconds hand&quot;),
 					    NULL},
 					   {&quot;date&quot;,
 					    'd',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_iShowDate,
-					    &quot;draw data-display&quot;,
+					    _(&quot;draw date-display&quot;),
 					    NULL},
 					   {&quot;list&quot;,
 					    'l',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;bPrintThemeList,
-					    &quot;list installed themes and exit&quot;,
+					    _(&quot;list installed themes and exit&quot;),
 					    NULL},
 					   {&quot;theme&quot;,
 					    't',
 					    0,
 					    G_OPTION_ARG_STRING,
 					    &amp;g_pcTheme,
-					    &quot;theme to draw the clock with&quot;,
+					    _(&quot;theme to draw the clock with&quot;),
 					    &quot;NAME&quot;},
 					   {&quot;ontop&quot;,
 					    'o',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_iKeepOnTop,
-					    &quot;clock-window stays on top of all windows&quot;,
+					    _(&quot;clock-window stays on top of all windows&quot;),
 					    NULL},
 					   {&quot;pager&quot;,
 					    'p',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_iAppearInPager,
-					    &quot;clock-window shows up in pager&quot;,
+					    _(&quot;clock-window shows up in pager&quot;),
 					    NULL},
 					   {&quot;taskbar&quot;,
 					    'b',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_iAppearInTaskbar,
-					    &quot;clock-window shows up in taskbar&quot;,
+					    _(&quot;clock-window shows up in taskbar&quot;),
 					    NULL},
 					   {&quot;sticky&quot;,
 					    'i',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_iSticky,
-					    &quot;clock-window sticks to all workspaces&quot;,
+					    _(&quot;clock-window sticks to all workspaces&quot;),
 					    NULL},
 					   {&quot;twelve&quot;,
 					    'e',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_i12,
-					    &quot;hands work in 12 hour mode&quot;,
+					    _(&quot;hands work in 12 hour mode&quot;),
 					    NULL},
 					   {&quot;twentyfour&quot;,
 					    'f',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;g_i24,
-					    &quot;hands work in 24 hour mode&quot;,
+					    _(&quot;hands work in 24 hour mode&quot;),
 					    NULL},
 					   {&quot;refresh&quot;,
 					    'r',
 					    0,
 					    G_OPTION_ARG_INT,
 					    &amp;g_iRefreshRate,
-					    &quot;render at RATE (default: 30 Hz)&quot;,
+					    _(&quot;render at RATE (default: 30 Hz)&quot;),
 					    &quot;RATE&quot;},
 					   {&quot;version&quot;,
 					    'v',
 					    0,
 					    G_OPTION_ARG_NONE,
 					    &amp;bPrintVersion,
-					    &quot;print version of program and exit&quot;,
+					    _(&quot;print version of program and exit&quot;),
 					    NULL},
 					   {NULL}};
 
-	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+	bindtextdomain (GETTEXT_PACKAGE, CAIROCLOCKLOCALEDIR);
 	bind_textdomain_codeset (GETTEXT_PACKAGE, &quot;UTF-8&quot;);
 	textdomain (GETTEXT_PACKAGE);
 
@@ -1452,7 +1451,7 @@ main (int    argc,
 	if (argc &gt; 1)
 	{
 		/* setup and process command-line options */
-		pOptionContext = g_option_context_new (&quot;- analog clock drawn with vector-graphics&quot;);
+		pOptionContext = g_option_context_new (_(&quot;- analog clock drawn with vector-graphics&quot;));
 		g_option_context_add_main_entries (pOptionContext,
 						   aOptions,
 						   &quot;cairo-clock&quot;);
@@ -1520,7 +1519,7 @@ main (int    argc,
 	pGladeXml = glade_xml_new (get_glade_filename (), NULL, NULL);
 	if (!pGladeXml)
 	{
-		printf (&quot;Could not load \&quot;%s\&quot;!\n&quot;, get_glade_filename ());
+		printf (_(&quot;Could not load \&quot;%s\&quot;!\n&quot;), get_glade_filename ());
 		exit (1);
 	}
 
@@ -1635,7 +1634,7 @@ main (int    argc,
 				       get_icon_filename (),
 				       NULL);
 	gtk_window_set_title (GTK_WINDOW (g_pMainWindow),
-			      &quot;MacSlow's Cairo-Clock&quot;);
+			      _(&quot;MacSlow's Cairo-Clock&quot;));
 	gtk_window_set_default_size (GTK_WINDOW (g_pMainWindow),
 				     g_iDefaultWidth,
 				     g_iDefaultHeight);
@@ -1820,7 +1819,7 @@ main (int    argc,
 			     g_iSticky,
 			     g_i24,
 			     g_iRefreshRate))
-		printf (&quot;Ups, error while trying to save the preferences!\n&quot;);
+		printf (_(&quot;Ups, error while trying to save the preferences!\n&quot;));
 
 	if (pcFilename)
 		free (pcFilename);</diff>
      <filename>src/cairo-clock.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af1dc91d027184726acbda97075282e9f0c541d6</id>
    </parent>
  </parents>
  <author>
    <name>Mirco M&#252;ller</name>
    <email>macslow@bangang.de</email>
  </author>
  <url>http://github.com/stephane/cairo-clock/commit/c48dcae1521768a3f9ce2029093c49a7b7646beb</url>
  <id>c48dcae1521768a3f9ce2029093c49a7b7646beb</id>
  <committed-date>2007-08-16T22:45:18-07:00</committed-date>
  <authored-date>2007-08-16T22:45:18-07:00</authored-date>
  <message>implemented localization</message>
  <tree>d10eca1240d108680e46482e6b50251460978b1f</tree>
  <committer>
    <name>macslow</name>
    <email>mirco@vaio.(none)</email>
  </committer>
</commit>
