gimp r27600 - in trunk: . app/core
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27600 - in trunk: . app/core
- Date: Mon, 10 Nov 2008 11:41:51 +0000 (UTC)
Author: neo
Date: Mon Nov 10 11:41:51 2008
New Revision: 27600
URL: http://svn.gnome.org/viewvc/gimp?rev=27600&view=rev
Log:
2008-11-10 Sven Neumann <sven gimp org>
* app/core/gimpunit.c: use NC_() to provide translation
contexts.
Modified:
trunk/ChangeLog
trunk/app/core/gimpunit.c
Modified: trunk/app/core/gimpunit.c
==============================================================================
--- trunk/app/core/gimpunit.c (original)
+++ trunk/app/core/gimpunit.c Mon Nov 10 11:41:51 2008
@@ -53,22 +53,30 @@
static const GimpUnitDef gimp_unit_defs[GIMP_UNIT_END] =
{
/* pseudo unit */
- { FALSE, 0.0, 0, "pixels", "px", "px", N_("pixel"), N_("pixels") },
+ { FALSE, 0.0, 0, "pixels", "px", "px",
+ NC_("unit-singular", "pixel"), NC_("unit-plural", "pixels") },
/* standard units */
- { FALSE, 1.0, 2, "inches", "''", "in", N_("inch"), N_("inches") },
- { FALSE, 25.4, 1, "millimeters", "mm", "mm", N_("millimeter"), N_("millimeters") },
+ { FALSE, 1.0, 2, "inches", "''", "in",
+ NC_("unit-singular", "inch"), NC_("unit-plural", "inches") },
+
+ { FALSE, 25.4, 1, "millimeters", "mm", "mm",
+ NC_("unit-singular", "millimeter"), NC_("unit-plural", "millimeters") },
/* professional units */
- { FALSE, 72.0, 0, "points", "pt", "pt", N_("point"), N_("points") },
- { FALSE, 6.0, 1, "picas", "pc", "pc", N_("pica"), N_("picas") },
+ { FALSE, 72.0, 0, "points", "pt", "pt",
+ NC_("unit-singular", "point"), NC_("unit-plural", "points") },
+
+ { FALSE, 6.0, 1, "picas", "pc", "pc",
+ NC_("unit-singular", "pica"), NC_("unit-plural", "picas") }
};
/* not a unit at all but kept here to have the strings in one place
*/
static const GimpUnitDef gimp_unit_percent =
{
- FALSE, 0.0, 0, "percent", "%", "%", N_("percent"), N_("plural|percent")
+ FALSE, 0.0, 0, "percent", "%", "%",
+ NC_("singular", "percent"), NC_("plural", "percent")
};
@@ -233,12 +241,10 @@
gimp_unit_defs[GIMP_UNIT_INCH].singular);
if (unit < GIMP_UNIT_END)
- return g_strip_context (gimp_unit_defs[unit].singular,
- gettext (gimp_unit_defs[unit].singular));
+ return g_dpgettext2 (NULL, "unit-singular", gimp_unit_defs[unit].singular);
if (unit == GIMP_UNIT_PERCENT)
- return g_strip_context (gimp_unit_percent.singular,
- gettext (gimp_unit_percent.singular));
+ return g_dpgettext2 (NULL, "unit-singular", gimp_unit_percent.singular);
return _gimp_unit_get_user_unit (gimp, unit)->singular;
}
@@ -252,12 +258,10 @@
gimp_unit_defs[GIMP_UNIT_INCH].plural);
if (unit < GIMP_UNIT_END)
- return g_strip_context (gimp_unit_defs[unit].plural,
- gettext (gimp_unit_defs[unit].plural));
+ return g_dpgettext2 (NULL, "unit-plural", gimp_unit_defs[unit].plural);
if (unit == GIMP_UNIT_PERCENT)
- return g_strip_context (gimp_unit_percent.plural,
- gettext (gimp_unit_percent.plural));
+ return g_dpgettext2 (NULL, "unit-plural", gimp_unit_percent.plural);
return _gimp_unit_get_user_unit (gimp, unit)->plural;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]