[brasero] Remove format like G_GINT64_FORMAT from translatable strings
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Remove format like G_GINT64_FORMAT from translatable strings
- Date: Sat, 23 May 2009 11:52:51 -0400 (EDT)
commit 095388aaaa43ac7982d906b4e43d0011e5026aea
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat May 23 17:46:00 2009 +0200
Remove format like G_GINT64_FORMAT from translatable strings
Fix #583649 â?? Wrong translatable strings in burn-job.c
---
libbrasero-burn/burn-job.c | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/libbrasero-burn/burn-job.c b/libbrasero-burn/burn-job.c
index 67c4678..47e1ee8 100644
--- a/libbrasero-burn/burn-job.c
+++ b/libbrasero-burn/burn-job.c
@@ -411,15 +411,34 @@ brasero_job_check_output_disc_space (BraseroJob *self,
/* This is not really an error, we'll probably ask the
* user to load a new disc */
if (output_blocks > media_blocks) {
+ gchar *available_str;
+ gchar *media_blocks_str;
+ gchar *output_blocks_str;
+
BRASERO_BURN_LOG ("Insufficient space on disc %"G_GINT64_FORMAT"/%"G_GINT64_FORMAT,
media_blocks,
output_blocks);
+
+ media_blocks_str = g_strdup_printf ("%"G_GINT64_FORMAT, media_blocks);
+ output_blocks_str = g_strdup_printf ("%" G_GINT64_FORMAT, output_blocks);
+
+ /* Translators: the first %s is the size of the free space on the medium
+ * and the second %s is the size of the space required by the data to be
+ * burnt. */
+ available_str = g_strdup_printf (_("(%s available for %s)"),
+ media_blocks_str,
+ output_blocks_str);
+ g_free (media_blocks_str);
+ g_free (output_blocks_str);
+
g_set_error (error,
BRASERO_BURN_ERROR,
BRASERO_BURN_ERROR_MEDIUM_SPACE,
- _("Not enough space available on the disc (%"G_GINT64_FORMAT" available for %"G_GINT64_FORMAT")"),
- media_blocks,
- output_blocks);
+ "%s %s.",
+ _("Not enough space available on the disc"),
+ available_str);
+
+ g_free (available_str);
return BRASERO_BURN_NEED_RELOAD;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]