Commit 08e28ccc authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

made the library version information easier to translate.

2008-02-26  Sven Neumann  <sven@gimp.org>

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

svn path=/trunk/; revision=24975
parent b8a0cc0d
2008-02-26 Sven Neumann <sven@gimp.org>
* app/version.c (gimp_show_library_version): made the library
version information easier to translate.
2008-02-26 Tor Lillqvist <tml@novell.com> 2008-02-26 Tor Lillqvist <tml@novell.com>
* app/version.c (gimp_show_library_versions): Show also GEGL * app/version.c (gimp_show_library_versions): Show also GEGL
......
...@@ -48,12 +48,26 @@ gimp_show_library_version (const gchar *package, ...@@ -48,12 +48,26 @@ gimp_show_library_version (const gchar *package,
gint run_time_minor, gint run_time_minor,
gint run_time_micro) gint run_time_micro)
{ {
g_print ("%s %s %d.%d.%d, %s %d.%d.%d\n", gchar *build_time_version;
package, gchar *run_time_version;
_("compiled against version"),
build_time_major, build_time_minor, build_time_micro, build_time_version = g_strdup_printf ("%d.%d.%d",
_("running against version"), build_time_major,
run_time_major, run_time_minor, run_time_micro); 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 static void
...@@ -75,6 +89,14 @@ gimp_show_library_versions (void) ...@@ -75,6 +89,14 @@ gimp_show_library_versions (void)
gegl_minor_version, gegl_minor_version,
gegl_micro_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 #ifndef GIMP_CONSOLE_COMPILATION
gimp_show_library_version ("GTK+", gimp_show_library_version ("GTK+",
GTK_MAJOR_VERSION, GTK_MAJOR_VERSION,
...@@ -93,14 +115,6 @@ gimp_show_library_versions (void) ...@@ -93,14 +115,6 @@ gimp_show_library_versions (void)
pango_version () / 100 % 100, pango_version () / 100 % 100,
pango_version () % 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", gimp_show_library_version ("Fontconfig",
FC_MAJOR, FC_MINOR, FC_REVISION, FC_MAJOR, FC_MINOR, FC_REVISION,
FcGetVersion () / 100 / 100, FcGetVersion () / 100 / 100,
......
2008-02-26 Sven Neumann <sven@gimp.org>
* POTFILES.in: added app/version.h.
2008-02-20 Ilkka Tuohela <hile@iki.fi> 2008-02-20 Ilkka Tuohela <hile@iki.fi>
* fi.po: Updated Finnish translation. * fi.po: Updated Finnish translation.
......
...@@ -8,6 +8,7 @@ app/app.c ...@@ -8,6 +8,7 @@ app/app.c
app/batch.c app/batch.c
app/main.c app/main.c
app/sanity.c app/sanity.c
app/version.c
app/actions/actions.c app/actions/actions.c
app/actions/brush-editor-actions.c app/actions/brush-editor-actions.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment