[Xfce4-commits] r26394 - in thunar/trunk: . docs/manual/C docs/manual/es docs/manual/eu docs/manual/fr docs/manual/ja docs/manual/nl docs/manual/pl docs/manual/ru docs/manual/zh_TW plugins/thunar-sbr po po-doc

Benedikt Meurer benny at xfce.org
Wed Nov 28 19:20:56 CET 2007


Author: benny
Date: 2007-11-28 18:20:55 +0000 (Wed, 28 Nov 2007)
New Revision: 26394

Added:
   thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.c
   thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.h
Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/docs/manual/C/Thunar.xml.in
   thunar/trunk/docs/manual/es/Thunar.xml.in
   thunar/trunk/docs/manual/eu/Thunar.xml.in
   thunar/trunk/docs/manual/fr/Thunar.xml.in
   thunar/trunk/docs/manual/ja/Thunar.xml.in
   thunar/trunk/docs/manual/nl/Thunar.xml.in
   thunar/trunk/docs/manual/pl/Thunar.xml.in
   thunar/trunk/docs/manual/ru/Thunar.xml.in
   thunar/trunk/docs/manual/zh_TW/Thunar.xml.in
   thunar/trunk/plugins/thunar-sbr/Makefile.am
   thunar/trunk/plugins/thunar-sbr/README
   thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.c
   thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.h
   thunar/trunk/plugins/thunar-sbr/thunar-sbr-plugin.c
   thunar/trunk/plugins/thunar-sbr/thunar-sbr-provider.c
   thunar/trunk/po-doc/ChangeLog
   thunar/trunk/po-doc/Thunar.pot
   thunar/trunk/po-doc/es.po
   thunar/trunk/po-doc/eu.po
   thunar/trunk/po-doc/fr.po
   thunar/trunk/po-doc/ja.po
   thunar/trunk/po-doc/nl.po
   thunar/trunk/po-doc/pl.po
   thunar/trunk/po-doc/ru.po
   thunar/trunk/po-doc/zh_TW.po
   thunar/trunk/po/ChangeLog
   thunar/trunk/po/POTFILES.in
   thunar/trunk/po/Thunar.pot
   thunar/trunk/po/ar.po
   thunar/trunk/po/be.po
   thunar/trunk/po/ca.po
   thunar/trunk/po/cs.po
   thunar/trunk/po/de.po
   thunar/trunk/po/dz.po
   thunar/trunk/po/el.po
   thunar/trunk/po/en_GB.po
   thunar/trunk/po/eo.po
   thunar/trunk/po/es.po
   thunar/trunk/po/et.po
   thunar/trunk/po/eu.po
   thunar/trunk/po/fi.po
   thunar/trunk/po/fr.po
   thunar/trunk/po/gl.po
   thunar/trunk/po/he.po
   thunar/trunk/po/hu.po
   thunar/trunk/po/it.po
   thunar/trunk/po/ja.po
   thunar/trunk/po/ka.po
   thunar/trunk/po/ko.po
   thunar/trunk/po/lt.po
   thunar/trunk/po/lv.po
   thunar/trunk/po/mk.po
   thunar/trunk/po/nb_NO.po
   thunar/trunk/po/nl.po
   thunar/trunk/po/pa.po
   thunar/trunk/po/pl.po
   thunar/trunk/po/pt_BR.po
   thunar/trunk/po/pt_PT.po
   thunar/trunk/po/ro.po
   thunar/trunk/po/sq.po
   thunar/trunk/po/sv.po
   thunar/trunk/po/tr.po
   thunar/trunk/po/ur.po
   thunar/trunk/po/zh_CN.po
Log:
2007-11-28	Benedikt Meurer <benny at xfce.org>

	* plugins/thunar-sbr/: Import new date renamer based on patch
	  from Nick Schermer <nick at xfce.org>. Bug #3656.
	* docs/manual/: Update the user manual.
	* po/POTFILES.in: Add new file here.
	* po/Thunar.pot, po/*.po: Merge new strings.
	* po/de.po: Update german translations.
	* po-doc/Thunar.pot, po-doc/*.po: Merge new strings.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/ChangeLog	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,5 +1,15 @@
 2007-11-28	Benedikt Meurer <benny at xfce.org>
 
+	* plugins/thunar-sbr/: Import new date renamer based on patch
+	  from Nick Schermer <nick at xfce.org>. Bug #3656.
+	* docs/manual/: Update the user manual.
+	* po/POTFILES.in: Add new file here.
+	* po/Thunar.pot, po/*.po: Merge new strings.
+	* po/de.po: Update german translations.
+	* po-doc/Thunar.pot, po-doc/*.po: Merge new strings.
+
+2007-11-28	Benedikt Meurer <benny at xfce.org>
+
 	* thunar-vfs/thunar-vfs-exec.c(thunar_vfs_exec_on_screen):
 	  Make sure to pass the correct $DISPLAY value to processes
 	  spawned by Thunar and xfdesktop. Bug #3667.

Modified: thunar/trunk/docs/manual/C/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/C/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/C/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
     "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-  <!ENTITY date "January 2007"> 
+  <!ENTITY date "November 2007"> 
   <!ENTITY version "@PACKAGE_VERSION@">
   <!ENTITY application "@PACKAGE_NAME@"> 
 ]>
@@ -1289,6 +1289,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/docs/manual/es/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/es/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/es/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -1273,6 +1273,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/docs/manual/eu/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/eu/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/eu/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -1263,6 +1263,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/docs/manual/fr/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/fr/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/fr/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -797,6 +797,7 @@
       <itemizedlist>
         <listitem><para>Supprimer des caractères.</para></listitem>
         <listitem><para>Numéroter les fichiers.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insérer ou écraser des caractères.</para></listitem>
         <listitem><para>Chercher et remplacer des caractères.</para></listitem>
         <listitem><para>Convertir en majuscule, minuscule ou 1ère LettreEnMajuscule (CamelCase)</para></listitem>

Modified: thunar/trunk/docs/manual/ja/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/ja/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/ja/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -1263,6 +1263,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/docs/manual/nl/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/nl/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/nl/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -1278,6 +1278,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/docs/manual/pl/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/pl/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/pl/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -803,6 +803,7 @@
       <itemizedlist>
         <listitem><para>usuwanie znaków,</para></listitem>
         <listitem><para>numerowanie plików,</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>wstawianie lub usuwanie znaków,</para></listitem>
         <listitem><para>znajdowanie i zamienianie znaków,</para></listitem>
         <listitem><para>zmiana sposobu stosowania wielkich i małych liter.</para></listitem>

Modified: thunar/trunk/docs/manual/ru/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/ru/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/ru/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -1263,6 +1263,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/docs/manual/zh_TW/Thunar.xml.in
===================================================================
--- thunar/trunk/docs/manual/zh_TW/Thunar.xml.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/docs/manual/zh_TW/Thunar.xml.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-<!ENTITY date "January 2007">
+<!ENTITY date "November 2007">
 <!ENTITY version "@PACKAGE_VERSION@">
 <!ENTITY application "@PACKAGE_NAME@">
 ]>
@@ -1263,6 +1263,7 @@
       <itemizedlist>
         <listitem><para>Remove characters.</para></listitem>
         <listitem><para>Numbering files.</para></listitem>
+        <listitem><para>Insert Date or Time.</para></listitem>
         <listitem><para>Insert or overwrite characters.</para></listitem>
         <listitem><para>Search and replace characters.</para></listitem>
         <listitem><para>Convert to uppercase, lowercase or camlcase.</para></listitem>

Modified: thunar/trunk/plugins/thunar-sbr/Makefile.am
===================================================================
--- thunar/trunk/plugins/thunar-sbr/Makefile.am	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/plugins/thunar-sbr/Makefile.am	2007-11-28 18:20:55 UTC (rev 26394)
@@ -15,6 +15,8 @@
 thunar_sbr_la_SOURCES =							\
 	thunar-sbr-case-renamer.c					\
 	thunar-sbr-case-renamer.h					\
+	thunar-sbr-date-renamer.c					\
+	thunar-sbr-date-renamer.h					\
 	thunar-sbr-enum-types.c						\
 	thunar-sbr-enum-types.h						\
 	thunar-sbr-insert-renamer.c					\
@@ -30,6 +32,7 @@
 	thunar-sbr-replace-renamer.h
 
 thunar_sbr_la_CFLAGS =							\
+	$(EXIF_CFLAGS)							\
 	$(EXO_CFLAGS)							\
 	$(PCRE_CFLAGS)							\
 	$(PLATFORM_CFLAGS)
@@ -41,7 +44,8 @@
 	$(PLATFORM_LDFLAGS)
 
 thunar_sbr_la_LIBADD =							\
-	$(PCRE_LIBS)
+	$(PCRE_LIBS)							\
+	$(EXIF_LIBS)
 
 EXTRA_DIST =								\
 	README

Modified: thunar/trunk/plugins/thunar-sbr/README
===================================================================
--- thunar/trunk/plugins/thunar-sbr/README	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/plugins/thunar-sbr/README	2007-11-28 18:20:55 UTC (rev 26394)
@@ -5,6 +5,7 @@
 for the bulk rename dialog: 
 
  * Insert / Overwrite
+ * Insert Date / Time
  * Numbering
  * Remove Characters
  * Search & Replace

Added: thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.c
===================================================================
--- thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.c	                        (rev 0)
+++ thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.c	2007-11-28 18:20:55 UTC (rev 26394)
@@ -0,0 +1,782 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Nick Schermer <nick at xfce.org>
+ * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#include <exo/exo.h>
+
+#include <thunar-sbr/thunar-sbr-date-renamer.h>
+#include <thunar-vfs/thunar-vfs.h>
+
+#ifdef HAVE_EXIF
+#include <libexif/exif-data.h>
+#endif
+
+
+
+/* Property identifiers */
+enum
+{
+  PROP_0,
+  PROP_MODE,
+  PROP_FORMAT,
+  PROP_OFFSET,
+  PROP_OFFSET_MODE,
+};
+
+
+
+static void               thunar_sbr_date_renamer_class_init    (ThunarSbrDateRenamerClass  *klass);
+static void               thunar_sbr_date_renamer_init          (ThunarSbrDateRenamer       *date_renamer);
+static void               thunar_sbr_date_renamer_finalize      (GObject                    *object);
+static void               thunar_sbr_date_renamer_get_property  (GObject                    *object,
+                                                                 guint                       prop_id,
+                                                                 GValue                     *value,
+                                                                 GParamSpec                 *pspec);
+static void               thunar_sbr_date_renamer_set_property  (GObject                    *object,
+                                                                 guint                       prop_id,
+                                                                 const GValue               *value,
+                                                                 GParamSpec                 *pspec);
+static gchar             *thunar_sbr_get_time_string            (ThunarVfsFileTime           file_time,
+                                                                 const gchar                *custom_format);
+#ifdef HAVE_EXIF
+static ThunarVfsFileTime  thunar_sbr_get_time_from_string       (const gchar                *string);
+#endif
+static ThunarVfsFileTime  thunar_sbr_get_time                   (ThunarxFileInfo            *file,
+                                                                 ThunarSbrDateMode           mode);
+static gchar             *thunar_sbr_date_renamer_process       (ThunarxRenamer             *renamer,
+                                                                 ThunarxFileInfo            *file,
+                                                                 const gchar                *text,
+                                                                 guint                       index);
+
+
+
+struct _ThunarSbrDateRenamerClass
+{
+  ThunarxRenamerClass __parent__;
+};
+
+struct _ThunarSbrDateRenamer
+{
+  ThunarxRenamer      __parent__;
+  GtkTooltips        *tooltips;
+  ThunarSbrDateMode   mode;
+  guint               offset;
+  ThunarSbrOffsetMode offset_mode;
+  gchar              *format;
+};
+
+
+
+THUNARX_DEFINE_TYPE (ThunarSbrDateRenamer, thunar_sbr_date_renamer, THUNARX_TYPE_RENAMER);
+
+
+
+static void
+thunar_sbr_date_renamer_class_init (ThunarSbrDateRenamerClass *klass)
+{
+  ThunarxRenamerClass *thunarxrenamer_class;
+  GObjectClass        *gobject_class;
+
+  gobject_class = G_OBJECT_CLASS (klass);
+  gobject_class->finalize = thunar_sbr_date_renamer_finalize;
+  gobject_class->get_property = thunar_sbr_date_renamer_get_property;
+  gobject_class->set_property = thunar_sbr_date_renamer_set_property;
+
+  thunarxrenamer_class = THUNARX_RENAMER_CLASS (klass);
+  thunarxrenamer_class->process = thunar_sbr_date_renamer_process;
+
+  /**
+   * ThunarSbrDateRenamer:mode:
+   *
+   * The #ThunarSbrDateMode to use.
+   **/
+  g_object_class_install_property (gobject_class,
+                                   PROP_MODE,
+                                   g_param_spec_enum ("mode",
+                                                      "mode",
+                                                      "mode",
+                                                      THUNAR_SBR_TYPE_DATE_MODE,
+                                                      THUNAR_SBR_DATE_MODE_NOW,
+                                                      G_PARAM_READWRITE));
+
+  /**
+   * ThunarSbrDateRenamer:format:
+   *
+   * The date format to insert.
+   **/
+  g_object_class_install_property (gobject_class,
+                                   PROP_FORMAT,
+                                   g_param_spec_string ("format",
+                                                        "format",
+                                                        "format",
+                                                        "%Y%m%d",
+                                                        G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
+
+  /**
+   * ThunarSbrDateRenamer:offset:
+   *
+   * The starting offset at which to insert/overwrite.
+   **/
+  g_object_class_install_property (gobject_class,
+                                   PROP_OFFSET,
+                                   g_param_spec_uint ("offset",
+                                                      "offset",
+                                                      "offset",
+                                                      0, G_MAXUINT, 0,
+                                                      G_PARAM_READWRITE));
+
+  /**
+   * ThunarSbrDateRenamer:offset-mode:
+   *
+   * The offset mode for the renamer.
+   **/
+  g_object_class_install_property (gobject_class,
+                                   PROP_OFFSET_MODE,
+                                   g_param_spec_enum ("offset-mode",
+                                                      "offset-mode",
+                                                      "offset-mode",
+                                                      THUNAR_SBR_TYPE_OFFSET_MODE,
+                                                      THUNAR_SBR_OFFSET_MODE_LEFT,
+                                                      G_PARAM_READWRITE));
+}
+
+
+
+static void
+thunar_sbr_date_renamer_init (ThunarSbrDateRenamer *date_renamer)
+{
+  GEnumClass     *klass;
+  AtkRelationSet *relations;
+  AtkRelation    *relation;
+  AtkObject      *object;
+  GtkWidget      *vbox, *hbox;
+  GtkWidget      *label, *combo;
+  GtkWidget      *spinner;
+  GtkWidget      *entry;
+  GtkAdjustment  *adjustment;
+  gint            n;
+
+  /* allocate tooltips for the renamer */
+  date_renamer->tooltips = gtk_tooltips_new ();
+  exo_gtk_object_ref_sink (GTK_OBJECT (date_renamer->tooltips));
+
+  vbox = gtk_vbox_new (FALSE, 6);
+  gtk_box_pack_start (GTK_BOX (date_renamer), vbox, TRUE, TRUE, 0);
+  gtk_widget_show (vbox);
+
+  hbox = gtk_hbox_new (FALSE, 12);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+  gtk_widget_show (hbox);
+
+  label = gtk_label_new_with_mnemonic (_("Insert _time:"));
+  gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+  gtk_widget_show (label);
+
+  combo = gtk_combo_box_new_text ();
+  klass = g_type_class_ref (THUNAR_SBR_TYPE_DATE_MODE);
+  for (n = 0; n < klass->n_values; ++n)
+    gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _(klass->values[n].value_nick));
+  exo_mutual_binding_new (G_OBJECT (date_renamer), "mode", G_OBJECT (combo), "active");
+  gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0);
+  gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo);
+  g_type_class_unref (klass);
+  gtk_widget_show (combo);
+
+  /* set Atk label relation for the combo */
+  object = gtk_widget_get_accessible (combo);
+  relations = atk_object_ref_relation_set (gtk_widget_get_accessible (label));
+  relation = atk_relation_new (&object, 1, ATK_RELATION_LABEL_FOR);
+  atk_relation_set_add (relations, relation);
+  g_object_unref (G_OBJECT (relation));
+
+  label = gtk_label_new_with_mnemonic (_("_Format:"));
+  gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+  gtk_widget_show (label);
+
+  entry = gtk_entry_new ();
+  exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (date_renamer), "format");
+  gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (date_renamer->tooltips, entry,
+                        _("The format describes the date and time parts to insert "
+                          "into the file name. For example, %Y will be substituted "
+                          "with the year, %m with the month and %d with the day. "
+                          "See the documentation of the date utility for additional "
+                          "information."), NULL);
+  gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
+  gtk_widget_show (entry);
+
+  /* set Atk label relation for the entry */
+  object = gtk_widget_get_accessible (entry);
+  relations = atk_object_ref_relation_set (gtk_widget_get_accessible (label));
+  relation = atk_relation_new (&object, 1, ATK_RELATION_LABEL_FOR);
+  atk_relation_set_add (relations, relation);
+  g_object_unref (G_OBJECT (relation));
+
+  hbox = gtk_hbox_new (FALSE, 12);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
+  gtk_widget_show (hbox);
+
+  label = gtk_label_new_with_mnemonic (_("_At position:"));
+  gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+  gtk_widget_show (label);
+
+  spinner = gtk_spin_button_new_with_range (0u, G_MAXUINT, 1u);
+  gtk_entry_set_width_chars (GTK_ENTRY (spinner), 4);
+  gtk_entry_set_alignment (GTK_ENTRY (spinner), 1.0f);
+  gtk_entry_set_activates_default (GTK_ENTRY (spinner), TRUE);
+  gtk_spin_button_set_digits (GTK_SPIN_BUTTON (spinner), 0);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
+  gtk_spin_button_set_snap_to_ticks (GTK_SPIN_BUTTON (spinner), TRUE);
+  gtk_box_pack_start (GTK_BOX (hbox), spinner, FALSE, FALSE, 0);
+  gtk_label_set_mnemonic_widget (GTK_LABEL (label), spinner);
+  gtk_widget_show (spinner);
+
+  adjustment = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (spinner));
+  exo_mutual_binding_new (G_OBJECT (date_renamer), "offset", G_OBJECT (adjustment), "value");
+
+  combo = gtk_combo_box_new_text ();
+  klass = g_type_class_ref (THUNAR_SBR_TYPE_OFFSET_MODE);
+  for (n = 0; n < klass->n_values; ++n)
+    gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _(klass->values[n].value_nick));
+  exo_mutual_binding_new (G_OBJECT (date_renamer), "offset-mode", G_OBJECT (combo), "active");
+  gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0);
+  g_type_class_unref (klass);
+  gtk_widget_show (combo);
+}
+
+
+
+static void
+thunar_sbr_date_renamer_finalize (GObject *object)
+{
+  ThunarSbrDateRenamer *date_renamer = THUNAR_SBR_DATE_RENAMER (object);
+
+  /* release the tooltips */
+  g_object_unref (G_OBJECT (date_renamer->tooltips));
+
+  /* release the format */
+  g_free (date_renamer->format);
+
+  (*G_OBJECT_CLASS (thunar_sbr_date_renamer_parent_class)->finalize) (object);
+}
+
+
+
+static void
+thunar_sbr_date_renamer_get_property (GObject    *object,
+                                      guint       prop_id,
+                                      GValue     *value,
+                                      GParamSpec *pspec)
+{
+  ThunarSbrDateRenamer *date_renamer = THUNAR_SBR_DATE_RENAMER (object);
+
+  switch (prop_id)
+    {
+    case PROP_MODE:
+      g_value_set_enum (value, thunar_sbr_date_renamer_get_mode (date_renamer));
+      break;
+
+    case PROP_FORMAT:
+      g_value_set_string (value, thunar_sbr_date_renamer_get_format (date_renamer));
+      break;
+
+    case PROP_OFFSET:
+      g_value_set_uint (value, thunar_sbr_date_renamer_get_offset (date_renamer));
+      break;
+
+    case PROP_OFFSET_MODE:
+      g_value_set_enum (value, thunar_sbr_date_renamer_get_offset_mode (date_renamer));
+      break;
+
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
+    }
+}
+
+
+
+static void
+thunar_sbr_date_renamer_set_property (GObject      *object,
+                                      guint         prop_id,
+                                      const GValue *value,
+                                      GParamSpec   *pspec)
+{
+  ThunarSbrDateRenamer *date_renamer = THUNAR_SBR_DATE_RENAMER (object);
+
+  switch (prop_id)
+    {
+    case PROP_MODE:
+      thunar_sbr_date_renamer_set_mode (date_renamer, g_value_get_enum (value));
+      break;
+
+    case PROP_FORMAT:
+      thunar_sbr_date_renamer_set_format (date_renamer, g_value_get_string (value));
+      break;
+
+    case PROP_OFFSET:
+      thunar_sbr_date_renamer_set_offset (date_renamer, g_value_get_uint (value));
+      break;
+
+    case PROP_OFFSET_MODE:
+      thunar_sbr_date_renamer_set_offset_mode (date_renamer, g_value_get_enum (value));
+      break;
+
+    default:
+      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+      break;
+    }
+}
+
+
+
+static gchar *
+thunar_sbr_get_time_string (ThunarVfsFileTime  file_time,
+                            const gchar       *format)
+{
+  struct tm *tm;
+  gchar     *converted;
+  gchar      buffer[1024];
+  gint       length;
+
+  /* determine the local file time */
+  tm = localtime (&file_time);
+
+  /* conver the format to the current locale */
+  converted = g_locale_from_utf8 (format, -1, NULL, NULL, NULL);
+
+  /* parse the format */
+  length = strftime (buffer, sizeof (buffer), converted, tm);
+
+  /* cleanup */
+  g_free (converted);
+
+  /* check if strftime succeeded */
+  if (G_UNLIKELY (length == 0))
+    return NULL;
+
+  /* return the utf-8 string */
+  return g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
+}
+
+
+
+#ifdef HAVE_EXIF
+static ThunarVfsFileTime
+thunar_sbr_get_time_from_string (const gchar *string)
+{
+  struct tm tm;
+
+#ifdef HAVE_STRPTIME
+  /* parse the string with strptime */
+  strptime (string, "%Y:%m:%d %T", &tm);
+#else
+  gint result;
+  gint year, month, day, hour, min, sec;
+
+  result = sscanf (string, "%d:%d:%d %d:%d:%d", &year, &month, &day, &hour, &min, &sec);
+
+  /* only continue when atleast the date is parsed succesfully */
+  if (G_LIKELY (result >= 3 && g_date_valid_dmy (day, month, year)))
+    {
+      /* be sure to start with a clean tm */
+      memset (&tm, 0, sizeof (tm));
+
+      /* set the date */
+      tm.tm_year = year - 1900;
+      tm.tm_mon = month - 1;
+      tm.tm_mday = day;
+
+		  /* set the time */
+		  tm.tm_hour = result >= 4? hour : 0;
+		  tm.tm_min = result >= 5 ? min : 0;
+		  tm.tm_sec = result >= 6 ? sec : 0;
+    }
+  else
+    {
+      return 0;
+    }
+#endif
+  /* return the local time */
+  return mktime (&tm);
+}
+#endif
+
+
+
+static ThunarVfsFileTime
+thunar_sbr_get_time (ThunarxFileInfo   *file,
+                     ThunarSbrDateMode  mode)
+{
+
+  ThunarVfsInfo     *vfs_info;
+  ThunarVfsFileTime  file_time = 0;
+#ifdef HAVE_EXIF
+  gchar             *uri, *filename;
+  ExifEntry         *exif_entry;
+  ExifData          *exif_data;
+  gchar              exif_buffer[128];
+#endif
+
+  switch (mode)
+    {
+    case THUNAR_SBR_DATE_MODE_NOW:
+      /* set the time to the current time */
+      file_time = time (NULL);
+      break;
+
+    case THUNAR_SBR_DATE_MODE_ATIME:
+    case THUNAR_SBR_DATE_MODE_MTIME:
+      /* get the vfs info */
+      vfs_info = thunarx_file_info_get_vfs_info (file);
+
+      /* get the time from the info */
+      if (mode == THUNAR_SBR_DATE_MODE_ATIME)
+        file_time = vfs_info->atime;
+      else
+        file_time = vfs_info->mtime;
+
+      /* release the vfs info */
+      thunar_vfs_info_unref (vfs_info);
+      break;
+
+#ifdef HAVE_EXIF
+    case THUNAR_SBR_DATE_MODE_TAKEN:
+      /* get the uri */
+      uri = thunarx_file_info_get_uri (file);
+      if (G_LIKELY (uri != NULL))
+        {
+          /* determine the local path of the file */
+          filename = g_filename_from_uri (uri, NULL, NULL);
+          if (G_LIKELY (filename != NULL))
+            {
+              /* try to load the exif data for the file */
+              exif_data = exif_data_new_from_file (filename);
+              if (G_LIKELY (exif_data != NULL))
+                {
+                  /* lookup the entry for the tag, fallback on less common ones */
+                  exif_entry = exif_data_get_entry (exif_data, EXIF_TAG_DATE_TIME);
+
+                  if (exif_entry == NULL)
+                    exif_entry = exif_data_get_entry (exif_data, EXIF_TAG_DATE_TIME_ORIGINAL);
+
+                  if (exif_entry == NULL)
+                    exif_entry = exif_data_get_entry (exif_data, EXIF_TAG_DATE_TIME_DIGITIZED);
+
+                  if (G_LIKELY (exif_entry != NULL))
+                    {
+                      /* determine the value */
+                      if (exif_entry_get_value (exif_entry, exif_buffer, sizeof (exif_buffer)) != NULL)
+                        file_time = thunar_sbr_get_time_from_string (exif_buffer);
+                    }
+
+                  /* cleanup */
+                  exif_data_free (exif_data);
+                }
+
+              /* cleanup */
+              g_free (filename);
+            }
+
+          /* cleanup */
+          g_free (uri);
+        }
+
+      break;
+#endif
+    }
+
+  return file_time;
+}
+
+
+
+static gchar*
+thunar_sbr_date_renamer_process (ThunarxRenamer  *renamer,
+                                 ThunarxFileInfo *file,
+                                 const gchar     *text,
+                                 guint            index)
+{
+  ThunarSbrDateRenamer *date_renamer = THUNAR_SBR_DATE_RENAMER (renamer);
+  gchar                *string;
+  ThunarVfsFileTime     file_time;
+  const gchar          *s;
+  GString              *result;
+  guint                 text_length;
+  guint                 offset;
+
+  /* return when there is no text in the custom format entry */
+  if (G_UNLIKELY (date_renamer->format == NULL || *date_renamer->format == '\0'))
+    return g_strdup (text);
+
+  /* determine the input text length */
+  text_length = g_utf8_strlen (text, -1);
+
+  /* determine the real offset and check if it's valid */
+  offset = (date_renamer->offset_mode == THUNAR_SBR_OFFSET_MODE_LEFT) ? date_renamer->offset : (text_length - date_renamer->offset);
+  if (G_UNLIKELY (offset > text_length))
+    return g_strdup (text);
+
+  /* get the file time */
+  file_time = thunar_sbr_get_time (file, date_renamer->mode);
+  if (file_time == 0)
+    return g_strdup (text);
+
+  /* allocate space for the result */
+  result = g_string_sized_new (2 * text_length);
+
+  /* determine the text pointer for the offset */
+  s = g_utf8_offset_to_pointer (text, offset);
+
+  /* add the text before the insert/overwrite offset */
+  g_string_append_len (result, text, s - text);
+
+  /* parse the time string */
+  string = thunar_sbr_get_time_string (file_time, date_renamer->format);
+  if (string)
+    {
+      g_string_append (result, string);
+      g_free (string);
+    }
+
+  /* append the remaining text */
+  g_string_append (result, s);
+
+  /* return the result */
+  return g_string_free (result, FALSE);
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_new:
+ *
+ * Allocates a new #ThunarSbrDateRenamer instance.
+ *
+ * Return value: the newly allocated #ThunarSbrDateRenamer.
+ **/
+ThunarSbrDateRenamer*
+thunar_sbr_date_renamer_new (void)
+{
+  return g_object_new (THUNAR_SBR_TYPE_DATE_RENAMER,
+                       "name", _("Insert Date / Time"),
+                       NULL);
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_get_mode:
+ * @date_renamer : a #ThunarSbrDateRenamer.
+ *
+ * Returns the mode of the @date_renamer.
+ *
+ * Return value: the mode of @date_renamer.
+ **/
+ThunarSbrDateMode
+thunar_sbr_date_renamer_get_mode (ThunarSbrDateRenamer *date_renamer)
+{
+  g_return_val_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer), THUNAR_SBR_DATE_MODE_NOW);
+
+  return date_renamer->mode;
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_set_mode:
+ * @date_renamer : a #ThunarSbrDateRenamer.
+ * @mode         : the new #ThunarSbrDateMode for @date_renamer.
+ *
+ * Sets the mode of @date_renamer to @mode.
+ **/
+void
+thunar_sbr_date_renamer_set_mode (ThunarSbrDateRenamer *date_renamer,
+                                  ThunarSbrDateMode     mode)
+{
+  g_return_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer));
+
+  /* check if we have a new mode */
+  if (G_LIKELY (date_renamer->mode != mode))
+    {
+      /* apply the new mode */
+      date_renamer->mode = mode;
+
+      /* update the renamer */
+      thunarx_renamer_changed (THUNARX_RENAMER (date_renamer));
+
+      /* notify listeners */
+      g_object_notify (G_OBJECT (date_renamer), "mode");
+    }
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_get_format:
+ * @date_renamer : a #ThunarSbrDateRenamer.
+ *
+ * Returns the format for the @date_renamer.
+ *
+ * Return value: the format for @date_renamer.
+ **/
+const gchar*
+thunar_sbr_date_renamer_get_format (ThunarSbrDateRenamer *date_renamer)
+{
+  g_return_val_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer), NULL);
+
+  return date_renamer->format;
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_set_format:
+ * @date_renamer : a #ThunarSbrDateRenamer.
+ * @format       : the new format for @date_renamer.
+ *
+ * Sets the format for @date_renamer to @format.
+ **/
+void
+thunar_sbr_date_renamer_set_format (ThunarSbrDateRenamer *date_renamer,
+                                    const gchar          *format)
+{
+  g_return_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer));
+
+  /* check if we have a new format */
+  if (G_LIKELY (!exo_str_is_equal (date_renamer->format, format)))
+    {
+      /* apply the new format */
+      g_free (date_renamer->format);
+      date_renamer->format = g_strdup (format);
+
+      /* update the renamer */
+      thunarx_renamer_changed (THUNARX_RENAMER (date_renamer));
+
+      /* notify listeners */
+      g_object_notify (G_OBJECT (date_renamer), "format");
+    }
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_get_offset:
+ * @date_renamer : a #ThunarSbrInsertRenamer.
+ *
+ * Returns the offset for the @date_renamer.
+ *
+ * Return value: the offset for @date_renamer.
+ **/
+guint
+thunar_sbr_date_renamer_get_offset (ThunarSbrDateRenamer *date_renamer)
+{
+  g_return_val_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer), 0);
+  return date_renamer->offset;
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_set_offset:
+ * @date_renamer : a #ThunarSbrInsertRenamer.
+ * @offset         : the new offset for @date_renamer.
+ *
+ * Sets the offset for @date_renamer to @offset.
+ **/
+void
+thunar_sbr_date_renamer_set_offset (ThunarSbrDateRenamer *date_renamer,
+                                    guint                 offset)
+{
+  g_return_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer));
+
+  /* check if we have a new offset */
+  if (G_LIKELY (date_renamer->offset != offset))
+    {
+      /* apply the new offset */
+      date_renamer->offset = offset;
+
+      /* update the renamer */
+      thunarx_renamer_changed (THUNARX_RENAMER (date_renamer));
+
+      /* notify listeners */
+      g_object_notify (G_OBJECT (date_renamer), "offset");
+    }
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_get_offset_mode:
+ * @date_renamer : a #ThunarSbrInsertRenamer.
+ *
+ * Returns the offset mode for the @date_renamer.
+ *
+ * Return value: the offset mode for @date_renamer.
+ **/
+ThunarSbrOffsetMode
+thunar_sbr_date_renamer_get_offset_mode (ThunarSbrDateRenamer *date_renamer)
+{
+  g_return_val_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer), THUNAR_SBR_OFFSET_MODE_LEFT);
+  return date_renamer->offset_mode;
+}
+
+
+
+/**
+ * thunar_sbr_date_renamer_set_offset_mode:
+ * @date_renamer : a #ThunarSbrInsertRenamer.
+ * @offset_mode    : the new offset mode for @date_renamer.
+ *
+ * Sets the offset mode for @date_renamer to @offset_mode.
+ **/
+void
+thunar_sbr_date_renamer_set_offset_mode (ThunarSbrDateRenamer *date_renamer,
+                                         ThunarSbrOffsetMode   offset_mode)
+{
+  g_return_if_fail (THUNAR_SBR_IS_DATE_RENAMER (date_renamer));
+
+  /* check if we have a new setting */
+  if (G_LIKELY (date_renamer->offset_mode != offset_mode))
+    {
+      /* apply the new setting */
+      date_renamer->offset_mode = offset_mode;
+
+      /* update the renamer */
+      thunarx_renamer_changed (THUNARX_RENAMER (date_renamer));
+
+      /* notify listeners */
+      g_object_notify (G_OBJECT (date_renamer), "offset-mode");
+    }
+}


Property changes on: thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.c
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Rev

Added: thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.h
===================================================================
--- thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.h	                        (rev 0)
+++ thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.h	2007-11-28 18:20:55 UTC (rev 26394)
@@ -0,0 +1,63 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2007 Nick Schermer <nick at xfce.org>
+ * Copyright (c) 2007 Benedikt Meurer <benny at xfce.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __THUNAR_SBR_DATE_RENAMER_H__
+#define __THUNAR_SBR_DATE_RENAMER_H__
+
+#include <thunar-sbr/thunar-sbr-enum-types.h>
+
+G_BEGIN_DECLS;
+
+typedef struct _ThunarSbrDateRenamerClass ThunarSbrDateRenamerClass;
+typedef struct _ThunarSbrDateRenamer      ThunarSbrDateRenamer;
+
+#define THUNAR_SBR_TYPE_DATE_RENAMER            (thunar_sbr_date_renamer_get_type ())
+#define THUNAR_SBR_DATE_RENAMER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_SBR_TYPE_DATE_RENAMER, ThunarSbrDateRenamer))
+#define THUNAR_SBR_DATE_RENAMER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_SBR_TYPE_DATE_RENAMER, ThunarSbrDateRenamerClass))
+#define THUNAR_SBR_IS_DATE_RENAMER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_SBR_TYPE_DATE_RENAMER))
+#define THUNAR_SBR_IS_DATE_RENAMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_SBR_TYPE_DATE_RENAMER))
+#define THUNAR_SBR_DATE_RENAMER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_SBR_TYPE_DATE_RENAMER, ThunarSbrDateRenamerClass))
+
+GType                 thunar_sbr_date_renamer_get_type        (void) G_GNUC_CONST G_GNUC_INTERNAL;
+
+void                  thunar_sbr_date_renamer_register_type   (ThunarxProviderPlugin  *plugin) G_GNUC_INTERNAL;
+
+ThunarSbrDateRenamer *thunar_sbr_date_renamer_new             (void) G_GNUC_INTERNAL G_GNUC_MALLOC;
+
+ThunarSbrDateMode     thunar_sbr_date_renamer_get_mode        (ThunarSbrDateRenamer *date_renamer) G_GNUC_INTERNAL;
+void                  thunar_sbr_date_renamer_set_mode        (ThunarSbrDateRenamer *date_renamer,
+                                                               ThunarSbrDateMode     mode) G_GNUC_INTERNAL;
+
+const gchar          *thunar_sbr_date_renamer_get_format      (ThunarSbrDateRenamer *date_renamer) G_GNUC_INTERNAL;
+void                  thunar_sbr_date_renamer_set_format      (ThunarSbrDateRenamer *date_renamer,
+                                                               const gchar          *format) G_GNUC_INTERNAL;
+
+guint                 thunar_sbr_date_renamer_get_offset      (ThunarSbrDateRenamer *date_renamer) G_GNUC_INTERNAL;
+void                  thunar_sbr_date_renamer_set_offset      (ThunarSbrDateRenamer *date_renamer,
+                                                               guint                 offset) G_GNUC_INTERNAL;
+
+ThunarSbrOffsetMode   thunar_sbr_date_renamer_get_offset_mode (ThunarSbrDateRenamer *date_renamer) G_GNUC_INTERNAL;
+void                  thunar_sbr_date_renamer_set_offset_mode (ThunarSbrDateRenamer *date_renamer,
+                                                               ThunarSbrOffsetMode   offset_mode) G_GNUC_INTERNAL;
+
+G_END_DECLS;
+
+#endif /* !__THUNAR_SBR_DATE_RENAMER_H__ */


Property changes on: thunar/trunk/plugins/thunar-sbr/thunar-sbr-date-renamer.h
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Rev

Modified: thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.c
===================================================================
--- thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.c	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.c	2007-11-28 18:20:55 UTC (rev 26394)
@@ -33,6 +33,7 @@
 static GType number_mode_type;
 static GType offset_mode_type;
 static GType text_mode_type;
+static GType date_mode_type;
 
 
 
@@ -76,6 +77,14 @@
 
 
 
+GType
+thunar_sbr_date_mode_get_type (void)
+{
+  return date_mode_type;
+}
+
+
+
 void
 thunar_sbr_register_enum_types (ThunarxProviderPlugin *plugin)
 {
@@ -120,11 +129,23 @@
     { 0,                        NULL,                       NULL,                            },
   };
 
+  static const GEnumValue date_mode_values[] =
+  {
+    { THUNAR_SBR_DATE_MODE_NOW,    "THUNAR_SBR_DATE_MODE_NOW",   N_ ("Current"),            },
+    { THUNAR_SBR_DATE_MODE_ATIME,  "THUNAR_SBR_DATE_MODE_ATIME", N_ ("Date Accessed"),      },
+    { THUNAR_SBR_DATE_MODE_MTIME,  "THUNAR_SBR_DATE_MODE_MTIME", N_ ("Date Modified"),      },
+#ifdef HAVE_EXIF
+    { THUNAR_SBR_DATE_MODE_TAKEN,  "THUNAR_SBR_DATE_MODE_TAKEN", N_ ("Date Picture Taken"), },
+#endif
+    { 0,                           NULL,                         NULL,                      },
+  };
+
   case_renamer_mode_type = thunarx_provider_plugin_register_enum (plugin, "ThunarSbrCaseRenamerMode", case_renamer_mode_values);
   insert_mode_type = thunarx_provider_plugin_register_enum (plugin, "ThunarSbrInsertMode", insert_mode_values);
   number_mode_type = thunarx_provider_plugin_register_enum (plugin, "ThunarSbrNumberMode", number_mode_values);
   offset_mode_type = thunarx_provider_plugin_register_enum (plugin, "ThunarSbrOffsetMode", offset_mode_values);
   text_mode_type = thunarx_provider_plugin_register_enum (plugin, "ThunarSbrTextMode", text_mode_values);
+  date_mode_type = thunarx_provider_plugin_register_enum (plugin, "ThunarSbrDateMode", date_mode_values);
 }
 
 

Modified: thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.h
===================================================================
--- thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.h	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/plugins/thunar-sbr/thunar-sbr-enum-types.h	2007-11-28 18:20:55 UTC (rev 26394)
@@ -128,6 +128,30 @@
 GType thunar_sbr_text_mode_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
 
 
+#define THUNAR_SBR_TYPE_DATE_MODE (thunar_sbr_date_mode_get_type ())
+
+/**
+ * ThunarSbrDateMode:
+ * @THUNAR_SBR_DATE_MODE_NOW   : Current Time
+ * @THUNAR_SBR_DATE_MODE_ATIME : Access Time
+ * @THUNAR_SBR_DATE_MODE_MTIME : Modification Time
+ * @THUNAR_SBR_DATE_MODE_TAKEN : Picture Taken Time
+ *
+ * The date mode for the #ThunarSbrDateRenamer.
+ **/
+typedef enum
+{
+  THUNAR_SBR_DATE_MODE_NOW,
+  THUNAR_SBR_DATE_MODE_ATIME,
+  THUNAR_SBR_DATE_MODE_MTIME,
+#ifdef HAVE_EXIF
+  THUNAR_SBR_DATE_MODE_TAKEN,
+#endif
+} ThunarSbrDateMode;
+
+GType thunar_sbr_date_mode_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
+
+
 void thunar_sbr_register_enum_types (ThunarxProviderPlugin *plugin) G_GNUC_INTERNAL;
 
 G_END_DECLS;

Modified: thunar/trunk/plugins/thunar-sbr/thunar-sbr-plugin.c
===================================================================
--- thunar/trunk/plugins/thunar-sbr/thunar-sbr-plugin.c	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/plugins/thunar-sbr/thunar-sbr-plugin.c	2007-11-28 18:20:55 UTC (rev 26394)
@@ -28,6 +28,7 @@
 #include <thunar-sbr/thunar-sbr-provider.h>
 #include <thunar-sbr/thunar-sbr-remove-renamer.h>
 #include <thunar-sbr/thunar-sbr-replace-renamer.h>
+#include <thunar-sbr/thunar-sbr-date-renamer.h>
 
 
 
@@ -62,6 +63,7 @@
   thunar_sbr_provider_register_type (plugin);
   thunar_sbr_remove_renamer_register_type (plugin);
   thunar_sbr_replace_renamer_register_type (plugin);
+  thunar_sbr_date_renamer_register_type (plugin);
 
   /* setup the plugin provider type list */
   type_list[0] = THUNAR_SBR_TYPE_PROVIDER;

Modified: thunar/trunk/plugins/thunar-sbr/thunar-sbr-provider.c
===================================================================
--- thunar/trunk/plugins/thunar-sbr/thunar-sbr-provider.c	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/plugins/thunar-sbr/thunar-sbr-provider.c	2007-11-28 18:20:55 UTC (rev 26394)
@@ -28,6 +28,7 @@
 #include <thunar-sbr/thunar-sbr-provider.h>
 #include <thunar-sbr/thunar-sbr-remove-renamer.h>
 #include <thunar-sbr/thunar-sbr-replace-renamer.h>
+#include <thunar-sbr/thunar-sbr-date-renamer.h>
 
 
 
@@ -90,12 +91,7 @@
   renamers = g_list_prepend (renamers, thunar_sbr_number_renamer_new ());
   renamers = g_list_prepend (renamers, thunar_sbr_insert_renamer_new ());
   renamers = g_list_prepend (renamers, thunar_sbr_case_renamer_new ());
+  renamers = g_list_prepend (renamers, thunar_sbr_date_renamer_new ());
 
   return renamers;
 }
-
-
-
-
-
-

Modified: thunar/trunk/po/ChangeLog
===================================================================
--- thunar/trunk/po/ChangeLog	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/po/ChangeLog	2007-11-28 18:20:55 UTC (rev 26394)
@@ -1,20 +1,26 @@
-2007-11-17	Mike Massonnet <mmassonnet at xfce.org>
+2007-11-28  Benedikt Meurer <benny at xfce.org>
 
+	* POTFILES.in: Add new file here.
+	* Thunar.pot, *.po: Merge new strings.
+	* de.po: Update german translations.
+
+2007-11-17  Mike Massonnet <mmassonnet at xfce.org>
+
 	* ro.po: Update Romanian translation by MiÅŸu Moldovan <dumol at gnome.ro>
 
-2007-11-15	Mike Massonnet <mmassonnet at xfce.org>
+2007-11-15  Mike Massonnet <mmassonnet at xfce.org>
 
 	* ur.po, LINGUAS: Add Urdu translation by ﻢﺤﻣﺩ ﻊﻠﻳ ﺎﻠﻤﻜﻳ
-	makki.ma at gmail.com
+	  makki.ma at gmail.com
 
-2007-11-11	Mike Massonnet <mmassonnet at xfce.org>
+2007-11-11  Mike Massonnet <mmassonnet at xfce.org>
 
 	* lv.po: Add latvian by Rihards Prieditis <RPrieditis at inbox.lv>
 
 2007-11-03 Og Maciel <ogmaciel at gnome.org>
 
-    * pt_BR.po: Updated Brazilian Portuguese translation by
-    Fábio Nogueira <deb-user-ba at ubuntu.com>
+	* pt_BR.po: Updated Brazilian Portuguese translation by
+	  Fábio Nogueira <deb-user-ba at ubuntu.com>
 
 2007-09-30  Pau Rul-lan Ferragut <paurullan at bulma.net>
 
@@ -36,12 +42,12 @@
 2007-08-29  Mike Massonnet <mmassonnet at xfce.org>
 
 	* nb_NO.po: Update translations
-	by Terje Uriansrud <ter at operamail.com>
+	  by Terje Uriansrud <ter at operamail.com>
 
 2007-08-25  Mike Massonnet <mmassonnet at xfce.org>
 
 	* pt_PT.po: European Portuguese update
-	by Nuno Miguel <nunis at netcabo.pt>
+	  by Nuno Miguel <nunis at netcabo.pt>
 
 2007-08-24  Jean-François Wauthy <pollux at xfce.org>
 
@@ -58,7 +64,7 @@
 2006-07-06  Stephan Arts <stephan at xfce.org>
 
 	* nl.po: Dutch translation update
-	patch by Peter Maassen <p.maassen at chello.nl> modified by me.
+	  patch by Peter Maassen <p.maassen at chello.nl> modified by me.
 
 2007-06-20  Piarres Beobide <pi at beobide.net>
 
@@ -67,12 +73,12 @@
 2007-06-20  Maximilian Schleiss <maximilian at xfce.org>
 
 	* en_GB: British English translation updated
-	by Jeff Bailes <thepizzaking at gmail.com>
+	  by Jeff Bailes <thepizzaking at gmail.com>
 
 2007-06-14  Maximilian Schleiss <maximilian at xfce.org>
 
 	* nl.po: Updated the Dutch translation
-	by Vincent Tunru <imnotb at gmail.com>
+	  by Vincent Tunru <imnotb at gmail.com>
 
 2007-06-14  Stephan Arts <stephan at xfce.org>
 

Modified: thunar/trunk/po/POTFILES.in
===================================================================
--- thunar/trunk/po/POTFILES.in	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/po/POTFILES.in	2007-11-28 18:20:55 UTC (rev 26394)
@@ -126,6 +126,7 @@
 plugins/thunar-apr/thunar-apr-provider.c
 
 plugins/thunar-sbr/thunar-sbr-case-renamer.c
+plugins/thunar-sbr/thunar-sbr-date-renamer.c
 plugins/thunar-sbr/thunar-sbr-enum-types.c
 plugins/thunar-sbr/thunar-sbr-insert-renamer.c
 plugins/thunar-sbr/thunar-sbr-number-renamer.c

Modified: thunar/trunk/po/Thunar.pot
===================================================================
--- thunar/trunk/po/Thunar.pot	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/po/Thunar.pot	2007-11-28 18:20:55 UTC (rev 26394)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-23 23:24+0200\n"
+"POT-Creation-Date: 2007-11-28 19:01+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -22,7 +22,7 @@
 msgid "Failed to read folder contents"
 msgstr ""
 
-#: ../thunar-vfs/thunar-vfs-exec.c:577
+#: ../thunar-vfs/thunar-vfs-exec.c:582
 msgid "Unknown error"
 msgstr ""
 
@@ -867,80 +867,80 @@
 msgid "Details view"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:104
+#: ../thunar/thunar-dialogs.c:108
 msgid "translator-credits"
 msgstr ""
 
 #. display an error message to the user
 #. tell the user that we failed
-#: ../thunar/thunar-dialogs.c:231 ../thunar/thunar-renamer-dialog.c:959
+#: ../thunar/thunar-dialogs.c:235 ../thunar/thunar-renamer-dialog.c:959
 msgid "Failed to open the documentation browser"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:328
+#: ../thunar/thunar-dialogs.c:332
 msgid "_Yes"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:332
+#: ../thunar/thunar-dialogs.c:336
 msgid "Yes to _all"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:336
+#: ../thunar/thunar-dialogs.c:340
 msgid "_No"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:340
+#: ../thunar/thunar-dialogs.c:344
 msgid "N_o to all"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:344
+#: ../thunar/thunar-dialogs.c:348
 msgid "_Retry"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:349
+#: ../thunar/thunar-dialogs.c:353
 msgid "_Cancel"
 msgstr ""
 
 #. setup the confirmation dialog
-#: ../thunar/thunar-dialogs.c:429
+#: ../thunar/thunar-dialogs.c:433
 msgid "Confirm to replace files"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:435
+#: ../thunar/thunar-dialogs.c:439
 msgid "_Skip"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:436
+#: ../thunar/thunar-dialogs.c:440
 msgid "Replace _All"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:437
+#: ../thunar/thunar-dialogs.c:441
 msgid "_Replace"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:467
+#: ../thunar/thunar-dialogs.c:471
 #, c-format
 msgid "This folder already contains a file \"%s\"."
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:475
+#: ../thunar/thunar-dialogs.c:479
 msgid "ReplaceDialogPart1|Do you want to replace the existing file"
 msgstr ""
 
 #.
 #. Fourth box (size, volume, free space)
 #.
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:440
 msgid "Size:"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:401
 msgid "Modified:"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:500
+#: ../thunar/thunar-dialogs.c:504
 msgid "ReplaceDialogPart2|with the following file?"
 msgstr ""
 
@@ -976,10 +976,12 @@
 msgstr ""
 
 #: ../thunar/thunar-enum-types.c:114
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:135
 msgid "Date Accessed"
 msgstr ""
 
 #: ../thunar/thunar-enum-types.c:115
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:136
 msgid "Date Modified"
 msgstr ""
 
@@ -1555,6 +1557,7 @@
 msgstr ""
 
 #: ../thunar/thunar-preferences-dialog.c:338
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:223
 msgid "_Format:"
 msgstr ""
 
@@ -1837,7 +1840,7 @@
 
 #. display an error message
 #: ../thunar/thunar-properties-dialog.c:1006
-#: ../thunar/thunar-standard-view.c:2282
+#: ../thunar/thunar-standard-view.c:2286
 #, c-format
 msgid "Failed to rename \"%s\""
 msgstr ""
@@ -2131,7 +2134,7 @@
 msgid "Du_plicate"
 msgstr ""
 
-#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3387
+#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3391
 msgid "Ma_ke Link"
 msgid_plural "Ma_ke Links"
 msgstr[0] ""
@@ -2192,58 +2195,58 @@
 msgstr ""
 
 #. tell the user that the file name provided by the X Direct Save source is invalid
-#: ../thunar/thunar-standard-view.c:2578
+#: ../thunar/thunar-standard-view.c:2582
 msgid "Invalid filename provided by XDS drag site"
 msgstr ""
 
 #. display an error dialog to the user
-#: ../thunar/thunar-standard-view.c:2755
+#: ../thunar/thunar-standard-view.c:2759
 #, c-format
 msgid "Failed to create a link for the URL \"%s\""
 msgstr ""
 
-#: ../thunar/thunar-standard-view.c:3020
+#: ../thunar/thunar-standard-view.c:3024
 #, c-format
 msgid "Failed to open directory \"%s\""
 msgstr ""
 
-#: ../thunar/thunar-standard-view.c:3347
+#: ../thunar/thunar-standard-view.c:3351
 msgid "Prepare the selected file to be moved with a Paste command"
 msgid_plural "Prepare the selected files to be moved with a Paste command"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../thunar/thunar-standard-view.c:3355
+#: ../thunar/thunar-standard-view.c:3359
 msgid "Prepare the selected file to be copied with a Paste command"
 msgid_plural "Prepare the selected files to be copied with a Paste command"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../thunar/thunar-standard-view.c:3366
+#: ../thunar/thunar-standard-view.c:3370
 msgid "Delete the selected file"
 msgid_plural "Delete the selected files"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../thunar/thunar-standard-view.c:3380
+#: ../thunar/thunar-standard-view.c:3384
 msgid "Duplicate the selected file"
 msgid_plural "Duplicate each selected file"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../thunar/thunar-standard-view.c:3389
+#: ../thunar/thunar-standard-view.c:3393
 msgid "Create a symbolic link for the selected file"
 msgid_plural "Create a symbolic link for each selected file"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../thunar/thunar-standard-view.c:3397
+#: ../thunar/thunar-standard-view.c:3401
 msgid "Rename the selected file"
 msgid_plural "Rename the selected files"
 msgstr[0] ""
 msgstr[1] ""
 
-#: ../thunar/thunar-standard-view.c:3405
+#: ../thunar/thunar-standard-view.c:3409
 msgid "Restore the selected file"
 msgid_plural "Restore the selected files"
 msgstr[0] ""
@@ -2759,79 +2762,104 @@
 msgid "Uppercase / Lowercase"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:84
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:202
+msgid "Insert _time:"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:231
+msgid ""
+"The format describes the date and time parts to insert into the file name. "
+"For example, %Y will be substituted with the year, %m with the month and %d "
+"with the day. See the documentation of the date utility for additional "
+"information."
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:250
+#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
+msgid "_At position:"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:593
+msgid "Insert Date / Time"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
 msgid "lowercase"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:85
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:94
 msgid "UPPERCASE"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:86
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:95
 msgid "Camelcase"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:92
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
 msgid "Insert"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
 msgid "Overwrite"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:99
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:108
 msgid "1, 2, 3, ..."
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:100
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
 msgid "01, 02, 03, ..."
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
 msgid "001, 002, 003, ..."
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:111
 msgid "0001, 0002, 0003, ..."
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:103
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:112
 msgid "a, b, c, d, ..."
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:118
 msgid "From the front (left)"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:119
 msgid "From the back (right)"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:116
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:125
 msgid "Old Name - Text - Number"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:117
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:126
 msgid "Number - Text - Old Name"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:118
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:127
 msgid "Text - Number"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:119
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:128
 msgid "Number - Text"
 msgstr ""
 
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:134
+msgid "Current"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:138
+msgid "Date Picture Taken"
+msgstr ""
+
 #: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:181
 #: ../plugins/thunar-sbr/thunar-sbr-number-renamer.c:260
 msgid "_Text:"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
-msgid "_At position:"
-msgstr ""
-
 #: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:387
 msgid "Insert / Overwrite"
 msgstr ""

Modified: thunar/trunk/po/ar.po
===================================================================
--- thunar/trunk/po/ar.po	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/po/ar.po	2007-11-28 18:20:55 UTC (rev 26394)
@@ -9,7 +9,7 @@
 msgstr ""
 "Project-Id-Version: ar\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-23 23:24+0200\n"
+"POT-Creation-Date: 2007-11-28 19:01+0100\n"
 "PO-Revision-Date: 2007-09-22 05:34+0200\n"
 "Last-Translator: Mohamed Magdy <mohamed.m.k at gmail.com>\n"
 "Language-Team: Arabic <doc at arabeyes.org>\n"
@@ -25,7 +25,7 @@
 msgid "Failed to read folder contents"
 msgstr "أخفق في قراءة محتويات المجلد"
 
-#: ../thunar-vfs/thunar-vfs-exec.c:577
+#: ../thunar-vfs/thunar-vfs-exec.c:582
 msgid "Unknown error"
 msgstr "خطأ غير‌معروف"
 
@@ -890,84 +890,84 @@
 msgid "Details view"
 msgstr "تفاصيل"
 
-#: ../thunar/thunar-dialogs.c:104
+#: ../thunar/thunar-dialogs.c:108
 msgid "translator-credits"
 msgstr "المشاركون في الترجمة"
 
 #. display an error message to the user
 #. tell the user that we failed
-#: ../thunar/thunar-dialogs.c:231 ../thunar/thunar-renamer-dialog.c:959
+#: ../thunar/thunar-dialogs.c:235 ../thunar/thunar-renamer-dialog.c:959
 msgid "Failed to open the documentation browser"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:328
+#: ../thunar/thunar-dialogs.c:332
 msgid "_Yes"
 msgstr "_نعم"
 
-#: ../thunar/thunar-dialogs.c:332
+#: ../thunar/thunar-dialogs.c:336
 msgid "Yes to _all"
 msgstr "نعم لل_جميع"
 
-#: ../thunar/thunar-dialogs.c:336
+#: ../thunar/thunar-dialogs.c:340
 msgid "_No"
 msgstr "_ï»»"
 
-#: ../thunar/thunar-dialogs.c:340
+#: ../thunar/thunar-dialogs.c:344
 #, fuzzy
 msgid "N_o to all"
 msgstr "نعم لل_جميع"
 
-#: ../thunar/thunar-dialogs.c:344
+#: ../thunar/thunar-dialogs.c:348
 #, fuzzy
 msgid "_Retry"
 msgstr "_مجلدات"
 
-#: ../thunar/thunar-dialogs.c:349
+#: ../thunar/thunar-dialogs.c:353
 msgid "_Cancel"
 msgstr "_إلغاء"
 
 #. setup the confirmation dialog
-#: ../thunar/thunar-dialogs.c:429
+#: ../thunar/thunar-dialogs.c:433
 msgid "Confirm to replace files"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:435
+#: ../thunar/thunar-dialogs.c:439
 msgid "_Skip"
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:436
+#: ../thunar/thunar-dialogs.c:440
 #, fuzzy
 msgid "Replace _All"
 msgstr "عوض_بـ: "
 
-#: ../thunar/thunar-dialogs.c:437
+#: ../thunar/thunar-dialogs.c:441
 #, fuzzy
 msgid "_Replace"
 msgstr "غير إسم"
 
-#: ../thunar/thunar-dialogs.c:467
+#: ../thunar/thunar-dialogs.c:471
 #, c-format
 msgid "This folder already contains a file \"%s\"."
 msgstr ""
 
-#: ../thunar/thunar-dialogs.c:475
+#: ../thunar/thunar-dialogs.c:479
 msgid "ReplaceDialogPart1|Do you want to replace the existing file"
 msgstr ""
 
 #.
 #. Fourth box (size, volume, free space)
 #.
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:440
 msgid "Size:"
 msgstr "حجم:"
 
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:401
 msgid "Modified:"
 msgstr "تغير:"
 
-#: ../thunar/thunar-dialogs.c:500
+#: ../thunar/thunar-dialogs.c:504
 msgid "ReplaceDialogPart2|with the following file?"
 msgstr ""
 
@@ -1003,10 +1003,12 @@
 msgstr "الاسم واللاحق"
 
 #: ../thunar/thunar-enum-types.c:114
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:135
 msgid "Date Accessed"
 msgstr ""
 
 #: ../thunar/thunar-enum-types.c:115
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:136
 msgid "Date Modified"
 msgstr "تاريخ التغيير"
 
@@ -1605,6 +1607,7 @@
 msgstr "_لصق"
 
 #: ../thunar/thunar-preferences-dialog.c:338
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:223
 msgid "_Format:"
 msgstr ""
 
@@ -1893,7 +1896,7 @@
 
 #. display an error message
 #: ../thunar/thunar-properties-dialog.c:1006
-#: ../thunar/thunar-standard-view.c:2282
+#: ../thunar/thunar-standard-view.c:2286
 #, c-format
 msgid "Failed to rename \"%s\""
 msgstr "فشل في تغيير إسم \"%s\""
@@ -2193,7 +2196,7 @@
 msgid "Du_plicate"
 msgstr ""
 
-#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3387
+#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3391
 #, fuzzy
 msgid "Ma_ke Link"
 msgid_plural "Ma_ke Links"
@@ -2258,36 +2261,36 @@
 msgstr "غير إسم"
 
 #. tell the user that the file name provided by the X Direct Save source is invalid
-#: ../thunar/thunar-standard-view.c:2578
+#: ../thunar/thunar-standard-view.c:2582
 msgid "Invalid filename provided by XDS drag site"
 msgstr ""
 
 #. display an error dialog to the user
-#: ../thunar/thunar-standard-view.c:2755
+#: ../thunar/thunar-standard-view.c:2759
 #, c-format
 msgid "Failed to create a link for the URL \"%s\""
 msgstr "فشل في تكوين وصلة للعنوان التالي\"%s\""
 
-#: ../thunar/thunar-standard-view.c:3020
+#: ../thunar/thunar-standard-view.c:3024
 #, c-format
 msgid "Failed to open directory \"%s\""
 msgstr "فشل في فتح المجلد \"%s\""
 
-#: ../thunar/thunar-standard-view.c:3347
+#: ../thunar/thunar-standard-view.c:3351
 msgid "Prepare the selected file to be moved with a Paste command"
 msgid_plural "Prepare the selected files to be moved with a Paste command"
 msgstr[0] ""
 msgstr[1] ""
 msgstr[2] ""
 
-#: ../thunar/thunar-standard-view.c:3355
+#: ../thunar/thunar-standard-view.c:3359
 msgid "Prepare the selected file to be copied with a Paste command"
 msgid_plural "Prepare the selected files to be copied with a Paste command"
 msgstr[0] ""
 msgstr[1] ""
 msgstr[2] ""
 
-#: ../thunar/thunar-standard-view.c:3366
+#: ../thunar/thunar-standard-view.c:3370
 #, fuzzy
 msgid "Delete the selected file"
 msgid_plural "Delete the selected files"
@@ -2295,14 +2298,14 @@
 msgstr[1] "نفذ الملف المختار"
 msgstr[2] "نفذ الملف المختار"
 
-#: ../thunar/thunar-standard-view.c:3380
+#: ../thunar/thunar-standard-view.c:3384
 msgid "Duplicate the selected file"
 msgid_plural "Duplicate each selected file"
 msgstr[0] ""
 msgstr[1] ""
 msgstr[2] ""
 
-#: ../thunar/thunar-standard-view.c:3389
+#: ../thunar/thunar-standard-view.c:3393
 #, fuzzy
 msgid "Create a symbolic link for the selected file"
 msgid_plural "Create a symbolic link for each selected file"
@@ -2310,7 +2313,7 @@
 msgstr[1] "أنشئ وصلة رمزية للملف المختار"
 msgstr[2] "أنشئ وصلة رمزية للملف المختار"
 
-#: ../thunar/thunar-standard-view.c:3397
+#: ../thunar/thunar-standard-view.c:3401
 #, fuzzy
 msgid "Rename the selected file"
 msgid_plural "Rename the selected files"
@@ -2318,7 +2321,7 @@
 msgstr[1] "تغيير إسم الملف"
 msgstr[2] "تغيير إسم الملف"
 
-#: ../thunar/thunar-standard-view.c:3405
+#: ../thunar/thunar-standard-view.c:3409
 #, fuzzy
 msgid "Restore the selected file"
 msgid_plural "Restore the selected files"
@@ -2846,79 +2849,106 @@
 msgid "Uppercase / Lowercase"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:84
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:202
+#, fuzzy
+msgid "Insert _time:"
+msgstr "ادخل"
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:231
+msgid ""
+"The format describes the date and time parts to insert into the file name. "
+"For example, %Y will be substituted with the year, %m with the month and %d "
+"with the day. See the documentation of the date utility for additional "
+"information."
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:250
+#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
+msgid "_At position:"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:593
+msgid "Insert Date / Time"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
 msgid "lowercase"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:85
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:94
 msgid "UPPERCASE"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:86
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:95
 msgid "Camelcase"
 msgstr ""
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:92
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
 msgid "Insert"
 msgstr "ادخل"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
 msgid "Overwrite"
 msgstr "اكتب‌فوقه"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:99
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:108
 msgid "1, 2, 3, ..."
 msgstr "1,·2,·3,·..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:100
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
 msgid "01, 02, 03, ..."
 msgstr "01,·02,·03,·..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
 msgid "001, 002, 003, ..."
 msgstr "001,·002,·003,·..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:111
 msgid "0001, 0002, 0003, ..."
 msgstr "0001,·0002,·0003,·..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:103
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:112
 msgid "a, b, c, d, ..."
 msgstr "أ، ب، ج، ..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:118
 msgid "From the front (left)"
 msgstr "من الأمام (اليسار)"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:119
 msgid "From the back (right)"
 msgstr "من الوراء (اليمين)"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:116
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:125
 msgid "Old Name - Text - Number"
 msgstr "الإسم القديم - النص -  الرقم"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:117
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:126
 msgid "Number - Text - Old Name"
 msgstr "الرقم - النص - الإسم القديم"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:118
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:127
 msgid "Text - Number"
 msgstr "النص - رقم"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:119
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:128
 msgid "Number - Text"
 msgstr "رقم - النص"
 
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:134
+msgid "Current"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:138
+#, fuzzy
+msgid "Date Picture Taken"
+msgstr "مأخوذة يوم:"
+
 #: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:181
 #: ../plugins/thunar-sbr/thunar-sbr-number-renamer.c:260
 msgid "_Text:"
 msgstr "_في النص:"
 
-#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
-msgid "_At position:"
-msgstr ""
-
 #: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:387
 msgid "Insert / Overwrite"
 msgstr ""
@@ -3366,5 +3396,5 @@
 msgid "Open the specified folders in Thunar"
 msgstr "افتح المجلد في Thunar"
 
-msgid "Views"
-msgstr "إظهار"
+#~ msgid "Views"
+#~ msgstr "إظهار"

Modified: thunar/trunk/po/be.po
===================================================================
--- thunar/trunk/po/be.po	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/po/be.po	2007-11-28 18:20:55 UTC (rev 26394)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: Thunar 0.8.1svn-r25750\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-23 23:24+0200\n"
+"POT-Creation-Date: 2007-11-28 19:01+0100\n"
 "PO-Revision-Date: 2007-09-10 11:50+0300\n"
 "Last-Translator: Alexander Nyakhaychyk <nyakhaychyk at gmail.com>\n"
 "Language-Team: Belarusian <xfce-i18n at xfce.org>\n"
@@ -22,7 +22,7 @@
 msgid "Failed to read folder contents"
 msgstr "Немагчыма прачытаць зьмест тэчкі"
 
-#: ../thunar-vfs/thunar-vfs-exec.c:577
+#: ../thunar-vfs/thunar-vfs-exec.c:582
 msgid "Unknown error"
 msgstr "Невядомая памылка"
 
@@ -903,80 +903,80 @@
 msgid "Details view"
 msgstr "Падрабязны выгляд"
 
-#: ../thunar/thunar-dialogs.c:104
+#: ../thunar/thunar-dialogs.c:108
 msgid "translator-credits"
 msgstr "Alexander Nyakhaychyk"
 
 #. display an error message to the user
 #. tell the user that we failed
-#: ../thunar/thunar-dialogs.c:231 ../thunar/thunar-renamer-dialog.c:959
+#: ../thunar/thunar-dialogs.c:235 ../thunar/thunar-renamer-dialog.c:959
 msgid "Failed to open the documentation browser"
 msgstr "Немагчыма адкрыць гартач дакумэнтаў"
 
-#: ../thunar/thunar-dialogs.c:328
+#: ../thunar/thunar-dialogs.c:332
 msgid "_Yes"
 msgstr "_Так"
 
-#: ../thunar/thunar-dialogs.c:332
+#: ../thunar/thunar-dialogs.c:336
 msgid "Yes to _all"
 msgstr "Так для _ўсіх"
 
-#: ../thunar/thunar-dialogs.c:336
+#: ../thunar/thunar-dialogs.c:340
 msgid "_No"
 msgstr "_Не"
 
-#: ../thunar/thunar-dialogs.c:340
+#: ../thunar/thunar-dialogs.c:344
 msgid "N_o to all"
 msgstr "Н_е, для ўсіх"
 
-#: ../thunar/thunar-dialogs.c:344
+#: ../thunar/thunar-dialogs.c:348
 msgid "_Retry"
 msgstr "Паў_тарыць"
 
-#: ../thunar/thunar-dialogs.c:349
+#: ../thunar/thunar-dialogs.c:353
 msgid "_Cancel"
 msgstr "_Скасаваць"
 
 #. setup the confirmation dialog
-#: ../thunar/thunar-dialogs.c:429
+#: ../thunar/thunar-dialogs.c:433
 msgid "Confirm to replace files"
 msgstr "Пацьвердзіце замену файлаў"
 
-#: ../thunar/thunar-dialogs.c:435
+#: ../thunar/thunar-dialogs.c:439
 msgid "_Skip"
 msgstr "Аб_мінуць"
 
-#: ../thunar/thunar-dialogs.c:436
+#: ../thunar/thunar-dialogs.c:440
 msgid "Replace _All"
 msgstr "Замяніць _усе"
 
-#: ../thunar/thunar-dialogs.c:437
+#: ../thunar/thunar-dialogs.c:441
 msgid "_Replace"
 msgstr "За_мяніць"
 
-#: ../thunar/thunar-dialogs.c:467
+#: ../thunar/thunar-dialogs.c:471
 #, c-format
 msgid "This folder already contains a file \"%s\"."
 msgstr "Гэтая тэчка ўжо ўтрымлівае файл \"%s\"."
 
-#: ../thunar/thunar-dialogs.c:475
+#: ../thunar/thunar-dialogs.c:479
 msgid "ReplaceDialogPart1|Do you want to replace the existing file"
 msgstr "Ці жадаеце замяніць існуючы файл"
 
 #.
 #. Fourth box (size, volume, free space)
 #.
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:440
 msgid "Size:"
 msgstr "Памер:"
 
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:401
 msgid "Modified:"
 msgstr "Зьменены:"
 
-#: ../thunar/thunar-dialogs.c:500
+#: ../thunar/thunar-dialogs.c:504
 msgid "ReplaceDialogPart2|with the following file?"
 msgstr "гэтым файлам?"
 
@@ -1012,10 +1012,12 @@
 msgstr "Назва і суфікс"
 
 #: ../thunar/thunar-enum-types.c:114
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:135
 msgid "Date Accessed"
 msgstr "Час доступу"
 
 #: ../thunar/thunar-enum-types.c:115
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:136
 msgid "Date Modified"
 msgstr "Час зьмены"
 
@@ -1625,6 +1627,7 @@
 msgstr "Дата"
 
 #: ../thunar/thunar-preferences-dialog.c:338
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:223
 msgid "_Format:"
 msgstr "_Фармат:"
 
@@ -1930,7 +1933,7 @@
 
 #. display an error message
 #: ../thunar/thunar-properties-dialog.c:1006
-#: ../thunar/thunar-standard-view.c:2282
+#: ../thunar/thunar-standard-view.c:2286
 #, c-format
 msgid "Failed to rename \"%s\""
 msgstr "Немагчыма перайменаваць \"%s\""
@@ -2246,7 +2249,7 @@
 msgid "Du_plicate"
 msgstr "Ду_блікат"
 
-#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3387
+#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3391
 msgid "Ma_ke Link"
 msgid_plural "Ma_ke Links"
 msgstr[0] "Ства_рыць спасылку"
@@ -2308,22 +2311,22 @@
 msgstr "Перай_менаваць"
 
 #. tell the user that the file name provided by the X Direct Save source is invalid
-#: ../thunar/thunar-standard-view.c:2578
+#: ../thunar/thunar-standard-view.c:2582
 msgid "Invalid filename provided by XDS drag site"
 msgstr "Нерэчаісная назва файла, вызначаная XDS"
 
 #. display an error dialog to the user
-#: ../thunar/thunar-standard-view.c:2755
+#: ../thunar/thunar-standard-view.c:2759
 #, c-format
 msgid "Failed to create a link for the URL \"%s\""
 msgstr "Немагчыма стварыць спасылку для URL \"%s\""
 
-#: ../thunar/thunar-standard-view.c:3020
+#: ../thunar/thunar-standard-view.c:3024
 #, c-format
 msgid "Failed to open directory \"%s\""
 msgstr "Немагчыма адчыніць тэчку \"%s\""
 
-#: ../thunar/thunar-standard-view.c:3347
+#: ../thunar/thunar-standard-view.c:3351
 msgid "Prepare the selected file to be moved with a Paste command"
 msgid_plural "Prepare the selected files to be moved with a Paste command"
 msgstr[0] ""
@@ -2333,7 +2336,7 @@
 msgstr[2] ""
 "Падрыхтаваць вылучаныя файлы да перамяшчэньня з дапамогай загаду \"Уставіць\""
 
-#: ../thunar/thunar-standard-view.c:3355
+#: ../thunar/thunar-standard-view.c:3359
 msgid "Prepare the selected file to be copied with a Paste command"
 msgid_plural "Prepare the selected files to be copied with a Paste command"
 msgstr[0] ""
@@ -2343,35 +2346,35 @@
 msgstr[2] ""
 "Падрыхтаваць вылучаныя файлы да капіяваньня з дапамогай загаду \"Уставіць\""
 
-#: ../thunar/thunar-standard-view.c:3366
+#: ../thunar/thunar-standard-view.c:3370
 msgid "Delete the selected file"
 msgid_plural "Delete the selected files"
 msgstr[0] "Выдаліць вылучаны файл"
 msgstr[1] "Выдаліць вылучаныя файлы"
 msgstr[2] "Выдаліць вылучаныя файлы"
 
-#: ../thunar/thunar-standard-view.c:3380
+#: ../thunar/thunar-standard-view.c:3384
 msgid "Duplicate the selected file"
 msgid_plural "Duplicate each selected file"
 msgstr[0] "Зрабіць дублікат вылучанага файла"
 msgstr[1] "Зрабіць дублікат кожнага вылучанага файла"
 msgstr[2] "Зрабіць дублікат кожнага вылучанага файла"
 
-#: ../thunar/thunar-standard-view.c:3389
+#: ../thunar/thunar-standard-view.c:3393
 msgid "Create a symbolic link for the selected file"
 msgid_plural "Create a symbolic link for each selected file"
 msgstr[0] "Стварыць сымбалічную спасылку для вылучанага файла"
 msgstr[1] "Стварыць сымбалічную спасылку для кожнага вылучанага файла"
 msgstr[2] "Стварыць сымбалічную спасылку для кожнага вылучанага файла"
 
-#: ../thunar/thunar-standard-view.c:3397
+#: ../thunar/thunar-standard-view.c:3401
 msgid "Rename the selected file"
 msgid_plural "Rename the selected files"
 msgstr[0] "Перайменаваць вылучаны файл"
 msgstr[1] "Перайменаваць вылучаныя файлы"
 msgstr[2] "Перайменаваць вылучаныя файлы"
 
-#: ../thunar/thunar-standard-view.c:3405
+#: ../thunar/thunar-standard-view.c:3409
 msgid "Restore the selected file"
 msgid_plural "Restore the selected files"
 msgstr[0] "Аднавіць вылучаны файл"
@@ -2903,79 +2906,107 @@
 msgid "Uppercase / Lowercase"
 msgstr "Вялікія/малыя літары"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:84
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:202
+#, fuzzy
+msgid "Insert _time:"
+msgstr "Уставіць"
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:231
+msgid ""
+"The format describes the date and time parts to insert into the file name. "
+"For example, %Y will be substituted with the year, %m with the month and %d "
+"with the day. See the documentation of the date utility for additional "
+"information."
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:250
+#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
+msgid "_At position:"
+msgstr "_Ад пазыцыі"
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:593
+#, fuzzy
+msgid "Insert Date / Time"
+msgstr "Устаўка / Перазапіс"
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
 msgid "lowercase"
 msgstr "малыя літары"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:85
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:94
 msgid "UPPERCASE"
 msgstr "ВЯЛІКІЯ ЛІТАРЫ"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:86
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:95
 msgid "Camelcase"
 msgstr "CamelCase"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:92
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
 msgid "Insert"
 msgstr "Уставіць"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
 msgid "Overwrite"
 msgstr "Перазапісаць"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:99
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:108
 msgid "1, 2, 3, ..."
 msgstr "1, 2, 3, ..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:100
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
 msgid "01, 02, 03, ..."
 msgstr "01, 02, 03, ..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
 msgid "001, 002, 003, ..."
 msgstr "001, 002, 003, ..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:111
 msgid "0001, 0002, 0003, ..."
 msgstr "0001, 0002, 0003, ..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:103
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:112
 msgid "a, b, c, d, ..."
 msgstr "a, b, c, d, ..."
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:118
 msgid "From the front (left)"
 msgstr "Ад пачатку (зьлева)"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:119
 msgid "From the back (right)"
 msgstr "Ад канца (з права)"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:116
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:125
 msgid "Old Name - Text - Number"
 msgstr "Ранейшая назва - Тэкст - Нумар"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:117
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:126
 msgid "Number - Text - Old Name"
 msgstr "Нумар - Тэкст - Ранейшая назва"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:118
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:127
 msgid "Text - Number"
 msgstr "Тэкст - Нумар"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:119
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:128
 msgid "Number - Text"
 msgstr "Нумар - Тэкст"
 
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:134
+msgid "Current"
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:138
+#, fuzzy
+msgid "Date Picture Taken"
+msgstr "Час атрыманьня:"
+
 #: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:181
 #: ../plugins/thunar-sbr/thunar-sbr-number-renamer.c:260
 msgid "_Text:"
 msgstr "_Тэкст:"
 
-#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
-msgid "_At position:"
-msgstr "_Ад пазыцыі"
-
 #: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:387
 msgid "Insert / Overwrite"
 msgstr "Устаўка / Перазапіс"

Modified: thunar/trunk/po/ca.po
===================================================================
--- thunar/trunk/po/ca.po	2007-11-28 17:32:00 UTC (rev 26393)
+++ thunar/trunk/po/ca.po	2007-11-28 18:20:55 UTC (rev 26394)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: Thunar 0.8.1svn-r25750\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-23 23:24+0200\n"
+"POT-Creation-Date: 2007-11-28 19:01+0100\n"
 "PO-Revision-Date: 2007-09-30 10:33+0200\n"
 "Last-Translator: Pau Ruŀlan Ferragut <paurullan at bulma.net>\n"
 "Language-Team: Catalan <xfce-i18n at xfce.org>\n"
@@ -23,7 +23,7 @@
 msgid "Failed to read folder contents"
 msgstr "No s’ha pogut llegir el contigut de la carpeta"
 
-#: ../thunar-vfs/thunar-vfs-exec.c:577
+#: ../thunar-vfs/thunar-vfs-exec.c:582
 msgid "Unknown error"
 msgstr "Error desconegut"
 
@@ -900,80 +900,80 @@
 msgid "Details view"
 msgstr "Mostra detalls"
 
-#: ../thunar/thunar-dialogs.c:104
+#: ../thunar/thunar-dialogs.c:108
 msgid "translator-credits"
 msgstr "Crèdits de traductors"
 
 #. display an error message to the user
 #. tell the user that we failed
-#: ../thunar/thunar-dialogs.c:231 ../thunar/thunar-renamer-dialog.c:959
+#: ../thunar/thunar-dialogs.c:235 ../thunar/thunar-renamer-dialog.c:959
 msgid "Failed to open the documentation browser"
 msgstr "No s’ha pogut obrir el visor de documentació"
 
-#: ../thunar/thunar-dialogs.c:328
+#: ../thunar/thunar-dialogs.c:332
 msgid "_Yes"
 msgstr "_Sí"
 
-#: ../thunar/thunar-dialogs.c:332
+#: ../thunar/thunar-dialogs.c:336
 msgid "Yes to _all"
 msgstr "Si _a tot"
 
-#: ../thunar/thunar-dialogs.c:336
+#: ../thunar/thunar-dialogs.c:340
 msgid "_No"
 msgstr "_No"
 
-#: ../thunar/thunar-dialogs.c:340
+#: ../thunar/thunar-dialogs.c:344
 msgid "N_o to all"
 msgstr "N_o a tot"
 
-#: ../thunar/thunar-dialogs.c:344
+#: ../thunar/thunar-dialogs.c:348
 msgid "_Retry"
 msgstr "_Reintenta"
 
-#: ../thunar/thunar-dialogs.c:349
+#: ../thunar/thunar-dialogs.c:353
 msgid "_Cancel"
 msgstr "_Canceŀla"
 
 #. setup the confirmation dialog
-#: ../thunar/thunar-dialogs.c:429
+#: ../thunar/thunar-dialogs.c:433
 msgid "Confirm to replace files"
 msgstr "Confirmeu que voleu reempleçar els fitxers"
 
-#: ../thunar/thunar-dialogs.c:435
+#: ../thunar/thunar-dialogs.c:439
 msgid "_Skip"
 msgstr "_Salta"
 
-#: ../thunar/thunar-dialogs.c:436
+#: ../thunar/thunar-dialogs.c:440
 msgid "Replace _All"
 msgstr "Reempl_aça tots"
 
-#: ../thunar/thunar-dialogs.c:437
+#: ../thunar/thunar-dialogs.c:441
 msgid "_Replace"
 msgstr "Substitue_ix"
 
-#: ../thunar/thunar-dialogs.c:467
+#: ../thunar/thunar-dialogs.c:471
 #, c-format
 msgid "This folder already contains a file \"%s\"."
 msgstr "Aquest directori ja conté un fitxer «%s»."
 
-#: ../thunar/thunar-dialogs.c:475
+#: ../thunar/thunar-dialogs.c:479
 msgid "ReplaceDialogPart1|Do you want to replace the existing file"
 msgstr "Voleu reemplaçar el fitxer existent"
 
 #.
 #. Fourth box (size, volume, free space)
 #.
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:440
 msgid "Size:"
 msgstr "Mida:"
 
-#: ../thunar/thunar-dialogs.c:491 ../thunar/thunar-dialogs.c:516
+#: ../thunar/thunar-dialogs.c:495 ../thunar/thunar-dialogs.c:520
 #: ../thunar/thunar-properties-dialog.c:401
 msgid "Modified:"
 msgstr "Modificat:"
 
-#: ../thunar/thunar-dialogs.c:500
+#: ../thunar/thunar-dialogs.c:504
 msgid "ReplaceDialogPart2|with the following file?"
 msgstr "amb aquest fitxer?"
 
@@ -1009,10 +1009,12 @@
 msgstr "Nom i sufixe"
 
 #: ../thunar/thunar-enum-types.c:114
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:135
 msgid "Date Accessed"
 msgstr "Data d’accés"
 
 #: ../thunar/thunar-enum-types.c:115
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:136
 msgid "Date Modified"
 msgstr "Data de modificació"
 
@@ -1498,7 +1500,9 @@
 "If you select this option your choice will be remembered and you won't be "
 "asked again. You can use the preferences dialog to alter your choice "
 "afterwards."
-msgstr "Si ho seleccioneu aquesta opció serà recordada i no se us tornarà a demanar. Igualment podeu usar el diàleg de preferències per canviar-la."
+msgstr ""
+"Si ho seleccioneu aquesta opció serà recordada i no se us tornarà a demanar. "
+"Igualment podeu usar el diàleg de preferències per canviar-la."
 
 #. display an error to the user
 #: ../thunar/thunar-permissions-chooser.c:666
@@ -1607,6 +1611,7 @@
 msgstr "Data"
 
 #: ../thunar/thunar-preferences-dialog.c:338
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:223
 msgid "_Format:"
 msgstr "_Format:"
 
@@ -1911,7 +1916,7 @@
 
 #. display an error message
 #: ../thunar/thunar-properties-dialog.c:1006
-#: ../thunar/thunar-standard-view.c:2282
+#: ../thunar/thunar-standard-view.c:2286
 #, c-format
 msgid "Failed to rename \"%s\""
 msgstr "No s’ha pogut canviar el nom «%s»"
@@ -2219,7 +2224,7 @@
 msgid "Du_plicate"
 msgstr "Du_plica"
 
-#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3387
+#: ../thunar/thunar-standard-view.c:333 ../thunar/thunar-standard-view.c:3391
 msgid "Ma_ke Link"
 msgid_plural "Ma_ke Links"
 msgstr[0] "Crea un _enllaç"
@@ -2280,60 +2285,60 @@
 msgstr "_Canvia el nom"
 
 #. tell the user that the file name provided by the X Direct Save source is invalid
-#: ../thunar/thunar-standard-view.c:2578
+#: ../thunar/thunar-standard-view.c:2582
 msgid "Invalid filename provided by XDS drag site"
 msgstr "Nom de fitxer obtingut del lloc d’arrossegament XDS no és vàlid"
 
 #. display an error dialog to the user
-#: ../thunar/thunar-standard-view.c:2755
+#: ../thunar/thunar-standard-view.c:2759
 #, c-format
 msgid "Failed to create a link for the URL \"%s\""
 msgstr "No s’ha pogut crear l’enllaç per l’URL «%s»"
 
-#: ../thunar/thunar-standard-view.c:3020
+#: ../thunar/thunar-standard-view.c:3024
 #, c-format
 msgid "Failed to open directory \"%s\""
 msgstr "No s’ha pogut obrir el directori «%s»"
 
-#: ../thunar/thunar-standard-view.c:3347
+#: ../thunar/thunar-standard-view.c:3351
 msgid "Prepare the selected file to be moved with a Paste command"
 msgid_plural "Prepare the selected files to be moved with a Paste command"
 msgstr[0] "Prepara el fitxer seleccionat i serà mogut amb l’ordre d’Enganxar"
 msgstr[1] ""
 "Prepara els fitxers seleccionats i seran moguts amb l’ordre d’Enganxar"
 
-#: ../thunar/thunar-standard-view.c:3355
+#: ../thunar/thunar-standard-view.c:3359
 msgid "Prepare the selected file to be copied with a Paste command"
 msgid_plural "Prepare the selected files to be copied with a Paste command"
 msgstr[0] "Prepara el fitxer seleccionat i serà copiat amb l’ordre d’Enganxar"
 msgstr[1] ""
 "Prepara els fitxers seleccionats i seran copiats amb l’ordre d’Enganxar"
 
-#: ../thunar/thunar-standard-view.c:3366
+#: ../thunar/thunar-standard-view.c:3370
 msgid "Delete the selected file"
 msgid_plural "Delete the selected files"
 msgstr[0] "Suprimeix el fitxer seleccionat"
 msgstr[1] "Suprimeix els fitxers seleccionats"
 
-#: ../thunar/thunar-standard-view.c:3380
+#: ../thunar/thunar-standard-view.c:3384
 msgid "Duplicate the selected file"
 msgid_plural "Duplicate each selected file"
 msgstr[0] "Duplica el fitxer seleccionat"
 msgstr[1] "Duplica els fitxers seleccionats"
 
-#: ../thunar/thunar-standard-view.c:3389
+#: ../thunar/thunar-standard-view.c:3393
 msgid "Create a symbolic link for the selected file"
 msgid_plural "Create a symbolic link for each selected file"
 msgstr[0] "Crea un enllaç simbòlic del fitxer seleccionat"
 msgstr[1] "Crea un enllaç simbòlic dels fitxers seleccionats"
 
-#: ../thunar/thunar-standard-view.c:3397
+#: ../thunar/thunar-standard-view.c:3401
 msgid "Rename the selected file"
 msgid_plural "Rename the selected files"
 msgstr[0] "Canvia el nom al fitxer seleccionat"
 msgstr[1] "Canvia el nom als fitxers seleccionats"
 
-#: ../thunar/thunar-standard-view.c:3405
+#: ../thunar/thunar-standard-view.c:3409
 msgid "Restore the selected file"
 msgid_plural "Restore the selected files"
 msgstr[0] "Restaura el fitxer seleccionat"
@@ -2866,79 +2871,107 @@
 msgid "Uppercase / Lowercase"
 msgstr "Majúscula / minúscula"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:84
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:202
+#, fuzzy
+msgid "Insert _time:"
+msgstr "Insert"
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:231
+msgid ""
+"The format describes the date and time parts to insert into the file name. "
+"For example, %Y will be substituted with the year, %m with the month and %d "
+"with the day. See the documentation of the date utility for additional "
+"information."
+msgstr ""
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:250
+#: ../plugins/thunar-sbr/thunar-sbr-insert-renamer.c:199
+msgid "_At position:"
+msgstr "_A la posició:"
+
+#: ../plugins/thunar-sbr/thunar-sbr-date-renamer.c:593
+#, fuzzy
+msgid "Insert Date / Time"
+msgstr "Insereix / Sobreescriu"
+
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
 msgid "lowercase"
 msgstr "minúscules"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:85
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:94
 msgid "UPPERCASE"
 msgstr "MAJÚSCULES"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:86
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:95
 msgid "Camelcase"
 msgstr "MajúsculesDeCamell"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:92
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
 msgid "Insert"
 msgstr "Insert"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:93
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
 msgid "Overwrite"
 msgstr "Sobreescriu"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:99
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:108
 msgid "1, 2, 3, ..."
 msgstr "1, 2, 3…"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:100
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:109
 msgid "01, 02, 03, ..."
 msgstr "01, 02, 03…"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:101
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:110
 msgid "001, 002, 003, ..."
 msgstr "001, 002, 003…"
 
-#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:102
+#: ../plugins/thunar-sbr/thunar-sbr-enum-types.c:111
 msgid "0001, 0002, 0003, ...&quo