[recipes] Stop matching plurals of units
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Stop matching plurals of units
- Date: Fri, 30 Dec 2016 17:12:57 +0000 (UTC)
commit 88315872ac2d02d296e2e65c53c042deee3713ff
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 30 12:01:01 2016 -0500
Stop matching plurals of units
This seems maybe unnecessary, and we can stop tranlating quite
a few strings if we drop this.
src/gr-edit-page.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index b69503d..183369e 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -730,19 +730,17 @@ unit_filter_func (GtkListBoxRow *row,
{
GrEditPage *self = data;
const char *unit;
- const char *cf1, *cf2, *cf3;
+ const char *cf1, *cf2;
if (!self->unit_term)
return TRUE;
unit = (const char *)g_object_get_data (G_OBJECT (row), "unit");
cf1 = gr_unit_get_abbreviation (unit);
- cf2 = gr_unit_get_plural (unit);
- cf3 = gr_unit_get_display_name (unit);
+ cf2 = gr_unit_get_display_name (unit);
return g_str_has_prefix (cf1, self->unit_term) ||
- g_str_has_prefix (cf2, self->unit_term) ||
- g_str_has_prefix (cf3, self->unit_term);
+ g_str_has_prefix (cf2, self->unit_term);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]