gnome-scan r566 - in trunk: . lib modules src
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-scan r566 - in trunk: . lib modules src
- Date: Fri, 29 Feb 2008 21:17:41 +0000 (GMT)
Author: bersace
Date: Fri Feb 29 21:17:41 2008
New Revision: 566
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=566&view=rev
Log:
Fixed tons of translations issues and removed dead code having
translated strings.
Modified:
trunk/ChangeLog
trunk/lib/gnome-scan-dialog.c
trunk/lib/gnome-scan-paper-size-widget.c
trunk/lib/gnome-scan-param-widget.c
trunk/lib/gnome-scan-preview-plugin-area.c
trunk/lib/gnome-scan-processor-common.c
trunk/modules/gsane-meta-param.c
trunk/modules/gsfile-scanner.c
trunk/src/flegita-sink.c
trunk/src/flegita.c
Modified: trunk/lib/gnome-scan-dialog.c
==============================================================================
--- trunk/lib/gnome-scan-dialog.c (original)
+++ trunk/lib/gnome-scan-dialog.c Fri Feb 29 21:17:41 2008
@@ -473,6 +473,7 @@
"window-position", GTK_WIN_POS_CENTER,
"default-width", 320,
"default-height", 420,
+ /* translator: this is the dialog title */
"title", _("Scan"),
"has-separator", FALSE,
"modal", TRUE,
@@ -511,14 +512,14 @@
if (g_slist_length (priv->backends) == 0) {
gsd_message_dialog (dialog, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
- _("Unable to detect scanners !"),
+ _("Unable to detect scanners!"),
_("No drivers has been found."));
return;
}
if (priv->probe_done && !priv->scanner_count) {
gsd_message_dialog (dialog, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
- _("No device found !"),
+ _("No device found!"),
_("Ensure your device is plugged, powered, supported and configured. "
"The dialog will run until you plug a scanner or cancel."));
}
@@ -650,7 +651,7 @@
label = NULL;
}
else {
- label = gtk_label_new (g_strdup_printf (_("%s:"),
+ label = gtk_label_new (g_strdup_printf ("%s:",
dgettext (gs_param_spec_get_domain (node->data),
g_param_spec_get_nick (node->data))));
gtk_misc_set_alignment (GTK_MISC (label), 0., .5);
@@ -1389,6 +1390,7 @@
priv->preview_stage = gtk_label_new (NULL);
gtk_misc_set_alignment (GTK_MISC (priv->preview_stage), 0., .5);
gtk_label_set_markup (GTK_LABEL (priv->preview_stage),
+ /* translator: initial state before preview begin. */
g_strconcat("<i>", _("Inactive"), "</i>", NULL));
gtk_box_pack_start (GTK_BOX (box), priv->preview_stage, FALSE, FALSE, 0);
Modified: trunk/lib/gnome-scan-paper-size-widget.c
==============================================================================
--- trunk/lib/gnome-scan-paper-size-widget.c (original)
+++ trunk/lib/gnome-scan-paper-size-widget.c Fri Feb 29 21:17:41 2008
@@ -68,6 +68,8 @@
GnomeScanPaperSizeWidgetPrivate *priv = GET_PRIVATE (gspsw);
gchar *display_name = NULL;
+ /* translators: this is the paper size width and height expressed in
+ millimeters, shown just below the selector. */
display_name = g_strdup_printf (_("%.0f x %.0f mm"),
gtk_paper_size_get_width (ps, GTK_UNIT_MM),
gtk_paper_size_get_height (ps, GTK_UNIT_MM));
Modified: trunk/lib/gnome-scan-param-widget.c
==============================================================================
--- trunk/lib/gnome-scan-param-widget.c (original)
+++ trunk/lib/gnome-scan-param-widget.c Fri Feb 29 21:17:41 2008
@@ -101,21 +101,27 @@
priv->unit = gtk_label_new(NULL);
switch (gs_param_spec_get_unit (gspw->pspec)) {
case GS_UNIT_PIXEL:
+ /* translator: unit pixel */
unit = _("px");
break;
case GS_UNIT_BIT:
+ /* translator: unit bit */
unit = _("bit");
break;
case GS_UNIT_MM:
+ /* translator: unit millimeter */
unit = _("mm");
break;
case GS_UNIT_DPI:
+ /* translator: unit dot per inch */
unit = _("dpi");
break;
case GS_UNIT_PERCENT:
+ /* translator: unit percent */
unit = _("%");
break;
case GS_UNIT_MICROSECOND:
+ /* translator: unit microsecond */
unit = _("ms");
break;
case GS_UNIT_NONE:
Modified: trunk/lib/gnome-scan-preview-plugin-area.c
==============================================================================
--- trunk/lib/gnome-scan-preview-plugin-area.c (original)
+++ trunk/lib/gnome-scan-preview-plugin-area.c Fri Feb 29 21:17:41 2008
@@ -483,6 +483,7 @@
gs_convert (r.width, GS_UNIT_PIXEL, GS_UNIT_MM, res),
gs_convert (r.height, GS_UNIT_PIXEL, GS_UNIT_MM, res));
g_boxed_free (GTK_TYPE_PAPER_SIZE, p);
+ /* translator: Manual is the name of user defined paper size. */
p = gtk_paper_size_new_custom ("manual", _("Manual"),
gs_convert (MIN(r.width, r.height), GS_UNIT_PIXEL, GS_UNIT_MM, res),
gs_convert (MAX(r.width, r.height), GS_UNIT_PIXEL, GS_UNIT_MM, res),
Modified: trunk/lib/gnome-scan-processor-common.c
==============================================================================
--- trunk/lib/gnome-scan-processor-common.c (original)
+++ trunk/lib/gnome-scan-processor-common.c Fri Feb 29 21:17:41 2008
@@ -68,9 +68,9 @@
gnome_scan_plugin_params_add (GNOME_SCAN_PLUGIN (object), pspec);
pspec = gs_param_spec_boolean ("enhance", N_("Automatic color enhancement"),
- N_("Color enhancement produce better photos, "
- "but take more time to process and can be "
- "useless for text."),
+ N_("Color enhancement produces better "
+ "photos, but takes more time to process "
+ "and can be useless for text."),
GS_PARAM_GROUP_PROCESSING_COMMON,
TRUE,
G_PARAM_WRITABLE);
Modified: trunk/modules/gsane-meta-param.c
==============================================================================
--- trunk/modules/gsane-meta-param.c (original)
+++ trunk/modules/gsane-meta-param.c Fri Feb 29 21:17:41 2008
@@ -328,6 +328,7 @@
enumeration = g_slist_append (enumeration,
gtk_paper_size_new_custom ("manual",
+ /* translator: Manual is the name of user defined paper size. */
_("Manual"),
w, h,
GTK_UNIT_MM)); /* what if w and h are not mm, but e.g. pixel ? */
@@ -485,7 +486,7 @@
mpps->roi.width = w;
mpps->roi.height = h;
}
- else if (g_str_equal (name, "origin")) {
+ else if (g_str_equal (name, "origin")) {
mpps->origin = g_value_get_pointer (value);
mpps->roi.x = mpps->origin->x;
mpps->roi.y = mpps->origin->y;
Modified: trunk/modules/gsfile-scanner.c
==============================================================================
--- trunk/modules/gsfile-scanner.c (original)
+++ trunk/modules/gsfile-scanner.c Fri Feb 29 21:17:41 2008
@@ -129,13 +129,14 @@
GnomeScanner*
gsfile_scanner_new ()
{
- static gint count = 0;
GObject *object = g_object_new (GSFILE_TYPE_SCANNER,
- "name", (!count ? _("Files") : g_strdup_printf (_("Files (%i)"), count)),
+ /* translator: this is the name of the file
+ loader backend which allow user to scan
+ a list a images */
+ "name", _("Files"),
"blurb", _("Import from files."),
"icon-name", "gnome-mime-image",
NULL);
- count++;
return GNOME_SCANNER (object);
}
Modified: trunk/src/flegita-sink.c
==============================================================================
--- trunk/src/flegita-sink.c (original)
+++ trunk/src/flegita-sink.c Fri Feb 29 21:17:41 2008
@@ -49,12 +49,12 @@
/* save */
GeglNode *output;
- GeglProcessor *processor;
+ GeglProcessor *processor;
gchar *filename;
guint png_compression;
/* print */
- GtkPrintJob *job;
+ GtkPrintJob *job;
cairo_t *cr;
};
@@ -98,19 +98,6 @@
NULL
};
-#if 0
- /* ACTION */
- pspec = priv->action_spec =
- flegita_param_spec_action("flegita-action",
- N_("Action"),
- N_("Action over the scan output"),
- GS_PARAM_GROUP_SINK_FRONT,
- FLEGITA_SAVE,
- G_PARAM_WRITABLE);
- gnome_scan_plugin_params_add (GNOME_SCAN_PLUGIN (object),
- pspec);
-#endif
-
/* FORMAT */
formats = g_slist_append (formats,
gnome_scan_format_new ("png",
@@ -145,7 +132,9 @@
pspec = priv->png_compression_spec =
gs_param_spec_range("png-compression-level", N_("PNG Compression Level"),
- N_("Higher level mean lower file size, but take more time to save"),
+ /* translator: this explain the PNG compression level */
+ N_("Higher level means lower file size, but takes more "
+ "time to save"),
FLEGITA_PARAM_GROUP_PNG_OPTIONS,
min, max, step, val, G_PARAM_WRITABLE);
gs_param_spec_set_domain (pspec, GETTEXT_PACKAGE);
Modified: trunk/src/flegita.c
==============================================================================
--- trunk/src/flegita.c (original)
+++ trunk/src/flegita.c Fri Feb 29 21:17:41 2008
@@ -69,8 +69,11 @@
"Franklin Street, Fifth Floor Boston, MA 02110-1301, "
"USA\n\n",
"logo-icon-name", "flegita",
- /* translator : Add you in this field */
- "translator-credits", _("Not translated"),
+ /* Translators: Add your names here with one name per
+ line, like
+ "John Smith <email1 example com>\n
+ Robert Foo <email2 example com>" */
+ "translator-credits", _("translator-credit"),
"version", PACKAGE_VERSION,
"website", "http://www.gnome.org/project/gnome-scan/index",
"website-label", _("Gnome Scan website"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]