gimp r24975 - in trunk: . app po



Author: neo
Date: Tue Feb 26 15:50:07 2008
New Revision: 24975
URL: http://svn.gnome.org/viewvc/gimp?rev=24975&view=rev

Log:
2008-02-26  Sven Neumann  <sven gimp org>

	* app/version.c (gimp_show_library_version): made the library
	version information easier to translate.


Modified:
   trunk/ChangeLog
   trunk/app/version.c
   trunk/po/ChangeLog
   trunk/po/POTFILES.in

Modified: trunk/app/version.c
==============================================================================
--- trunk/app/version.c	(original)
+++ trunk/app/version.c	Tue Feb 26 15:50:07 2008
@@ -48,12 +48,26 @@
                            gint         run_time_minor,
                            gint         run_time_micro)
 {
-  g_print ("%s  %s %d.%d.%d, %s %d.%d.%d\n",
-           package,
-           _("compiled against version"),
-           build_time_major, build_time_minor, build_time_micro,
-           _("running against version"),
-           run_time_major, run_time_minor, run_time_micro);
+  gchar *build_time_version;
+  gchar *run_time_version;
+
+  build_time_version = g_strdup_printf ("%d.%d.%d",
+                                        build_time_major,
+                                        build_time_minor,
+                                        build_time_micro);
+  run_time_version = g_strdup_printf ("%d.%d.%d",
+                                      run_time_major,
+                                      run_time_minor,
+                                      run_time_micro);
+
+  /* show versions of libraries used by GIMP */
+  g_print (_("using %s, "
+             "compiled against version %s, running against version %s"),
+           package, build_time_version, run_time_version);
+  g_print ("\n");
+
+  g_free (run_time_version);
+  g_free (build_time_version);
 }
 
 static void
@@ -75,6 +89,14 @@
                              gegl_minor_version,
                              gegl_micro_version);
 
+  gimp_show_library_version ("GLib",
+                             GLIB_MAJOR_VERSION,
+                             GLIB_MINOR_VERSION,
+                             GLIB_MICRO_VERSION,
+                             glib_major_version,
+                             glib_minor_version,
+                             glib_micro_version);
+
 #ifndef GIMP_CONSOLE_COMPILATION
   gimp_show_library_version ("GTK+",
                              GTK_MAJOR_VERSION,
@@ -93,14 +115,6 @@
                              pango_version () / 100 % 100,
                              pango_version () % 100);
 
-  gimp_show_library_version ("GLib",
-                             GLIB_MAJOR_VERSION,
-                             GLIB_MINOR_VERSION,
-                             GLIB_MICRO_VERSION,
-                             glib_major_version,
-                             glib_minor_version,
-                             glib_micro_version);
-
   gimp_show_library_version ("Fontconfig",
                              FC_MAJOR, FC_MINOR, FC_REVISION,
                              FcGetVersion () / 100 / 100,

Modified: trunk/po/POTFILES.in
==============================================================================
--- trunk/po/POTFILES.in	(original)
+++ trunk/po/POTFILES.in	Tue Feb 26 15:50:07 2008
@@ -8,6 +8,7 @@
 app/batch.c
 app/main.c
 app/sanity.c
+app/version.c
 
 app/actions/actions.c
 app/actions/brush-editor-actions.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]