brasero r1978 - in trunk: . libbrasero-media src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1978 - in trunk: . libbrasero-media src
- Date: Sat, 21 Feb 2009 09:09:37 +0000 (UTC)
Author: philippr
Date: Sat Feb 21 09:09:36 2009
New Revision: 1978
URL: http://svn.gnome.org/viewvc/brasero?rev=1978&view=rev
Log:
2009-02-21 Philippe Rouquier <ykw localhost localdomain>
Fix #572621 â Missing translator comments
Added comments for the printf argument
* libbrasero-media/brasero-units.c (brasero_units_get_time_string):
* src/brasero-drive-properties.c
(brasero_drive_properties_format_disc_speed):
* src/brasero-progress.c
(brasero_burn_progress_display_session_info),
(brasero_burn_progress_set_status):
* src/brasero-project.c (brasero_project_set_uri):
* src/brasero-utils.c (brasero_utils_get_time_string):
Modified:
trunk/ChangeLog
trunk/libbrasero-media/brasero-units.c
trunk/src/brasero-drive-properties.c
trunk/src/brasero-progress.c
trunk/src/brasero-project.c
trunk/src/brasero-utils.c
Modified: trunk/libbrasero-media/brasero-units.c
==============================================================================
--- trunk/libbrasero-media/brasero-units.c (original)
+++ trunk/libbrasero-media/brasero-units.c Sat Feb 21 09:09:36 2009
@@ -61,6 +61,7 @@
if (hour) {
if (with_unit) {
if (hour && minute && second)
+ /* FIXME: mark these strings for translation? */
return g_strdup_printf ("%lli h %02lli min %02lli",
hour,
minute,
@@ -83,8 +84,13 @@
if (with_unit) {
if (!second)
+ /* Translators: %lli is a duration expressed in minutes
+ * hence the "min" as unit. */
return g_strdup_printf (_("%lli min"), minute);
else
+ /* Translators: the first %lli is the number of minutes
+ * and the second one is the number of seconds.
+ * The whole string expresses a duration */
return g_strdup_printf (_("%lli:%02lli min"), minute, second);
}
else
Modified: trunk/src/brasero-drive-properties.c
==============================================================================
--- trunk/src/brasero-drive-properties.c (original)
+++ trunk/src/brasero-drive-properties.c Sat Feb 21 09:09:36 2009
@@ -427,15 +427,20 @@
gchar *text;
if (media & BRASERO_MEDIUM_DVD)
+ /* Translators %s.1f is the speed used to burn */
text = g_strdup_printf (_("%.1f x (DVD)"),
BRASERO_RATE_TO_SPEED_DVD (rate));
else if (media & BRASERO_MEDIUM_CD)
+ /* Translators %s.1f is the speed used to burn */
text = g_strdup_printf (_("%.1f x (CD)"),
BRASERO_RATE_TO_SPEED_CD (rate));
else if (media & BRASERO_MEDIUM_BD)
+ /* Translators %s.1f is the speed used to burn */
text = g_strdup_printf (_("%.1f x (BD)"),
BRASERO_RATE_TO_SPEED_BD (rate));
else
+ /* Translators %s.1f is the speed used to burn for every medium
+ * type*/
text = g_strdup_printf (_("%.1f x (BD) %.1f x (DVD) %.1f x (CD)"),
BRASERO_RATE_TO_SPEED_BD (rate),
BRASERO_RATE_TO_SPEED_DVD (rate),
Modified: trunk/src/brasero-progress.c
==============================================================================
--- trunk/src/brasero-progress.c (original)
+++ trunk/src/brasero-progress.c Sat Feb 21 09:09:36 2009
@@ -183,6 +183,8 @@
mn = time / 60;
sec = ((int) time) % 60;
+ /* Translators: first %02i is hours, the second one is minutes and the
+ * third one is seconds. */
text = g_strdup_printf (_("Total time: %02i:%02i:%02i"), hrs, mn, sec);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (obj->priv->progress), text);
g_free (text);
@@ -418,6 +420,8 @@
mn = remaining / 60;
sec = ((int) remaining) % 60;
+ /* Translators: first %02i is hours, the second one is minutes
+ * and the third one is seconds. */
text = g_strdup_printf (_("Estimated remaining time: %02i:%02i:%02i"), hrs, mn, sec);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (self->priv->progress), text);
g_free (text);
Modified: trunk/src/brasero-project.c
==============================================================================
--- trunk/src/brasero-project.c (original)
+++ trunk/src/brasero-project.c Sat Feb 21 09:09:36 2009
@@ -1682,10 +1682,13 @@
/* update the name of the main window */
BRASERO_GET_BASENAME_FOR_DISPLAY (uri, name);
if (type == BRASERO_PROJECT_TYPE_DATA)
+ /* Translators: %s is the name of the project */
title = g_strdup_printf (_("Brasero - %s (Data Disc)"), name);
else if (type == BRASERO_PROJECT_TYPE_AUDIO)
+ /* Translators: %s is the name of the project */
title = g_strdup_printf (_("Brasero - %s (Audio Disc)"), name);
else if (type == BRASERO_PROJECT_TYPE_VIDEO)
+ /* Translators: %s is the name of the project */
title = g_strdup_printf (_("Brasero - %s (Video Disc)"), name);
else
title = NULL;
Modified: trunk/src/brasero-utils.c
==============================================================================
--- trunk/src/brasero-utils.c (original)
+++ trunk/src/brasero-utils.c Sat Feb 21 09:09:36 2009
@@ -228,8 +228,12 @@
if (with_unit) {
if (!second)
+ /* Translators: %lli is a duration expressed in minutes */
return g_strdup_printf (_("%lli min"), minute);
else
+ /* Translators: the first %lli is the number of minutes
+ * and the second one is the number of seconds.
+ * The whole string expresses a duration */
return g_strdup_printf (_("%lli:%02lli min"), minute, second);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]