[libadwaita/wip/exalm/property-translation] Stop translating properties
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/property-translation] Stop translating properties
- Date: Fri, 2 Apr 2021 08:39:39 +0000 (UTC)
commit a0c3cef579673b17557b3d37b39c5d0be8501f43
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Apr 2 13:37:53 2021 +0500
Stop translating properties
This was useful for Glade and GtkInspector; Glade doesn't work on GTK 4 and
GtkInspector stopped showing property names. Translating them is a lot of
work for translators, and these are most of our translatable strings.
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/89
po/POTFILES.in | 29 --------------
src/adw-action-row.c | 26 ++++++-------
src/adw-bin.c | 6 +--
src/adw-carousel-box.c | 17 ++++-----
src/adw-carousel-indicator-dots.c | 5 +--
src/adw-carousel-indicator-lines.c | 5 +--
src/adw-carousel.c | 33 ++++++++--------
src/adw-clamp-layout.c | 9 ++---
src/adw-clamp-scrollable.c | 14 +++----
src/adw-clamp.c | 14 +++----
src/adw-combo-row.c | 38 +++++++++----------
src/adw-enum-list-model.c | 5 +--
src/adw-enum-value-object.c | 13 +++----
src/adw-expander-row.c | 25 ++++++-------
src/adw-flap.c | 61 +++++++++++++++---------------
src/adw-header-bar.c | 21 +++++------
src/adw-leaflet.c | 77 +++++++++++++++++++-------------------
src/adw-preferences-group.c | 9 ++---
src/adw-preferences-page.c | 13 +++----
src/adw-preferences-row.c | 9 ++---
src/adw-preferences-window.c | 8 ++--
src/adw-shadow-helper.c | 7 ++--
src/adw-squeezer.c | 53 +++++++++++++-------------
src/adw-status-page.c | 17 ++++-----
src/adw-swipe-tracker.c | 21 +++++------
src/adw-value-object.c | 6 +--
src/adw-view-switcher-bar.c | 13 +++----
src/adw-view-switcher-button.c | 9 ++---
src/adw-view-switcher-title.c | 25 ++++++-------
src/adw-view-switcher.c | 13 +++----
src/adw-window-title.c | 9 ++---
31 files changed, 274 insertions(+), 336 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 184a066..da65945 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,33 +1,4 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
-src/adw-action-row.c
-src/adw-bin.c
-src/adw-carousel-box.c
-src/adw-carousel.c
-src/adw-carousel-indicator-dots.c
-src/adw-carousel-indicator-lines.c
-src/adw-clamp.c
-src/adw-clamp-layout.c
-src/adw-clamp-scrollable.c
-src/adw-combo-row.c
-src/adw-enum-list-model.c
-src/adw-enum-value-object.c
-src/adw-expander-row.c
-src/adw-flap.c
-src/adw-header-bar.c
-src/adw-leaflet.c
-src/adw-preferences-group.c
-src/adw-preferences-page.c
-src/adw-preferences-row.c
src/adw-preferences-window.c
src/adw-preferences-window.ui
-src/adw-shadow-helper.c
-src/adw-squeezer.c
-src/adw-status-page.c
-src/adw-swipe-tracker.c
-src/adw-value-object.c
-src/adw-view-switcher-bar.c
-src/adw-view-switcher-button.c
-src/adw-view-switcher.c
-src/adw-view-switcher-title.c
-src/adw-window-title.c
diff --git a/src/adw-action-row.c b/src/adw-action-row.c
index cc51353..d5b1d56 100644
--- a/src/adw-action-row.c
+++ b/src/adw-action-row.c
@@ -7,8 +7,6 @@
#include "config.h"
#include "adw-action-row.h"
-#include <glib/gi18n-lib.h>
-
/**
* SECTION:adw-action-row
* @short_description: A #GtkListBox row used to present actions.
@@ -242,8 +240,8 @@ adw_action_row_class_init (AdwActionRowClass *klass)
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
- _("Icon name"),
- _("Icon name"),
+ "Icon name",
+ "Icon name",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -256,8 +254,8 @@ adw_action_row_class_init (AdwActionRowClass *klass)
*/
props[PROP_ACTIVATABLE_WIDGET] =
g_param_spec_object ("activatable-widget",
- _("Activatable widget"),
- _("The widget to be activated when the row is activated"),
+ "Activatable widget",
+ "The widget to be activated when the row is activated",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE);
@@ -270,8 +268,8 @@ adw_action_row_class_init (AdwActionRowClass *klass)
*/
props[PROP_SUBTITLE] =
g_param_spec_string ("subtitle",
- _("Subtitle"),
- _("Subtitle"),
+ "Subtitle",
+ "Subtitle",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -285,8 +283,8 @@ adw_action_row_class_init (AdwActionRowClass *klass)
*/
props[PROP_USE_UNDERLINE] =
g_param_spec_boolean ("use-underline",
- _("Use underline"),
- _("If set, an underline in the text indicates the next character should be used
for the mnemonic accelerator key"),
+ "Use underline",
+ "If set, an underline in the text indicates the next character should be used for
the mnemonic accelerator key",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -300,8 +298,8 @@ adw_action_row_class_init (AdwActionRowClass *klass)
*/
props[PROP_TITLE_LINES] =
g_param_spec_int ("title-lines",
- _("Number of title lines"),
- _("The desired number of title lines"),
+ "Number of title lines",
+ "The desired number of title lines",
0, G_MAXINT,
1,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -317,8 +315,8 @@ adw_action_row_class_init (AdwActionRowClass *klass)
*/
props[PROP_SUBTITLE_LINES] =
g_param_spec_int ("subtitle-lines",
- _("Number of subtitle lines"),
- _("The desired number of subtitle lines"),
+ "Number of subtitle lines",
+ "The desired number of subtitle lines",
0, G_MAXINT,
1,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-bin.c b/src/adw-bin.c
index 6da5046..6e441a4 100644
--- a/src/adw-bin.c
+++ b/src/adw-bin.c
@@ -9,8 +9,6 @@
#include "config.h"
#include "adw-bin.h"
-#include <glib/gi18n-lib.h>
-
/**
* SECTION:adw-bin
* @Short_description: A widget with one child
@@ -109,8 +107,8 @@ adw_bin_class_init (AdwBinClass *klass)
*/
props[PROP_CHILD] =
g_param_spec_object ("child",
- _("Child"),
- _("The child widget"),
+ "Child",
+ "The child widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-carousel-box.c b/src/adw-carousel-box.c
index ca36add..4a880ba 100644
--- a/src/adw-carousel-box.c
+++ b/src/adw-carousel-box.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-animation-private.h"
#include "adw-carousel-box-private.h"
@@ -683,8 +682,8 @@ adw_carousel_box_class_init (AdwCarouselBoxClass *klass)
*/
props[PROP_N_PAGES] =
g_param_spec_uint ("n-pages",
- _("Number of pages"),
- _("Number of pages"),
+ "Number of pages",
+ "Number of pages",
0,
G_MAXUINT,
0,
@@ -699,8 +698,8 @@ adw_carousel_box_class_init (AdwCarouselBoxClass *klass)
*/
props[PROP_POSITION] =
g_param_spec_double ("position",
- _("Position"),
- _("Current scrolling position"),
+ "Position",
+ "Current scrolling position",
0,
G_MAXDOUBLE,
0,
@@ -715,8 +714,8 @@ adw_carousel_box_class_init (AdwCarouselBoxClass *klass)
*/
props[PROP_SPACING] =
g_param_spec_uint ("spacing",
- _("Spacing"),
- _("Spacing between pages"),
+ "Spacing",
+ "Spacing between pages",
0,
G_MAXUINT,
0,
@@ -732,8 +731,8 @@ adw_carousel_box_class_init (AdwCarouselBoxClass *klass)
*/
props[PROP_REVEAL_DURATION] =
g_param_spec_uint ("reveal-duration",
- _("Reveal duration"),
- _("Page reveal duration"),
+ "Reveal duration",
+ "Page reveal duration",
0,
G_MAXUINT,
0,
diff --git a/src/adw-carousel-indicator-dots.c b/src/adw-carousel-indicator-dots.c
index 2ed2491..75bd1f5 100644
--- a/src/adw-carousel-indicator-dots.c
+++ b/src/adw-carousel-indicator-dots.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-carousel-indicator-dots.h"
@@ -381,8 +380,8 @@ adw_carousel_indicator_dots_class_init (AdwCarouselIndicatorDotsClass *klass)
*/
props[PROP_CAROUSEL] =
g_param_spec_object ("carousel",
- _("Carousel"),
- _("Carousel"),
+ "Carousel",
+ "Carousel",
ADW_TYPE_CAROUSEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-carousel-indicator-lines.c b/src/adw-carousel-indicator-lines.c
index 4368ec5..7f10e7c 100644
--- a/src/adw-carousel-indicator-lines.c
+++ b/src/adw-carousel-indicator-lines.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-carousel-indicator-lines.h"
@@ -368,8 +367,8 @@ adw_carousel_indicator_lines_class_init (AdwCarouselIndicatorLinesClass *klass)
*/
props[PROP_CAROUSEL] =
g_param_spec_object ("carousel",
- _("Carousel"),
- _("Carousel"),
+ "Carousel",
+ "Carousel",
ADW_TYPE_CAROUSEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-carousel.c b/src/adw-carousel.c
index 53bea15..04bc851 100644
--- a/src/adw-carousel.c
+++ b/src/adw-carousel.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-carousel.h"
@@ -492,8 +491,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_N_PAGES] =
g_param_spec_uint ("n-pages",
- _("Number of pages"),
- _("Number of pages"),
+ "Number of pages",
+ "Number of pages",
0,
G_MAXUINT,
0,
@@ -509,8 +508,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_POSITION] =
g_param_spec_double ("position",
- _("Position"),
- _("Current scrolling position"),
+ "Position",
+ "Current scrolling position",
0,
G_MAXDOUBLE,
0,
@@ -526,8 +525,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_INTERACTIVE] =
g_param_spec_boolean ("interactive",
- _("Interactive"),
- _("Whether the widget can be swiped"),
+ "Interactive",
+ "Whether the widget can be swiped",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -540,8 +539,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_SPACING] =
g_param_spec_uint ("spacing",
- _("Spacing"),
- _("Spacing between pages"),
+ "Spacing",
+ "Spacing between pages",
0,
G_MAXUINT,
0,
@@ -556,8 +555,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_ANIMATION_DURATION] =
g_param_spec_uint ("animation-duration",
- _("Animation duration"),
- _("Default animation duration"),
+ "Animation duration",
+ "Default animation duration",
0, G_MAXUINT, DEFAULT_DURATION,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -571,8 +570,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_ALLOW_MOUSE_DRAG] =
g_param_spec_boolean ("allow-mouse-drag",
- _("Allow mouse drag"),
- _("Whether to allow dragging with mouse pointer"),
+ "Allow mouse drag",
+ "Whether to allow dragging with mouse pointer",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -586,8 +585,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_ALLOW_LONG_SWIPES] =
g_param_spec_boolean ("allow-long-swipes",
- _("Allow long swipes"),
- _("Whether to allow swiping for more than one page at a time"),
+ "Allow long swipes",
+ "Whether to allow swiping for more than one page at a time",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -600,8 +599,8 @@ adw_carousel_class_init (AdwCarouselClass *klass)
*/
props[PROP_REVEAL_DURATION] =
g_param_spec_uint ("reveal-duration",
- _("Reveal duration"),
- _("Page reveal duration"),
+ "Reveal duration",
+ "Page reveal duration",
0,
G_MAXUINT,
0,
diff --git a/src/adw-clamp-layout.c b/src/adw-clamp-layout.c
index 456d117..9c13d4b 100644
--- a/src/adw-clamp-layout.c
+++ b/src/adw-clamp-layout.c
@@ -7,7 +7,6 @@
#include "config.h"
#include "adw-clamp-layout.h"
-#include <glib/gi18n-lib.h>
#include <math.h>
#include "adw-animation-private.h"
@@ -332,8 +331,8 @@ adw_clamp_layout_class_init (AdwClampLayoutClass *klass)
*/
props[PROP_MAXIMUM_SIZE] =
g_param_spec_int ("maximum-size",
- _("Maximum size"),
- _("The maximum size allocated to the child"),
+ "Maximum size",
+ "The maximum size allocated to the child",
0, G_MAXINT, 600,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -357,8 +356,8 @@ adw_clamp_layout_class_init (AdwClampLayoutClass *klass)
*/
props[PROP_TIGHTENING_THRESHOLD] =
g_param_spec_int ("tightening-threshold",
- _("Tightening threshold"),
- _("The size from which the clamp will tighten its grip on the child"),
+ "Tightening threshold",
+ "The size from which the clamp will tighten its grip on the child",
0, G_MAXINT, 400,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-clamp-scrollable.c b/src/adw-clamp-scrollable.c
index 2ba4558..456082d 100644
--- a/src/adw-clamp-scrollable.c
+++ b/src/adw-clamp-scrollable.c
@@ -7,8 +7,6 @@
#include "config.h"
#include "adw-clamp-scrollable.h"
-#include <glib/gi18n-lib.h>
-
#include "adw-clamp-layout.h"
/**
@@ -262,8 +260,8 @@ adw_clamp_scrollable_class_init (AdwClampScrollableClass *klass)
props[PROP_CHILD] =
g_param_spec_object ("child",
- _("Child"),
- _("The child widget"),
+ "Child",
+ "The child widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -277,8 +275,8 @@ adw_clamp_scrollable_class_init (AdwClampScrollableClass *klass)
*/
props[PROP_MAXIMUM_SIZE] =
g_param_spec_int ("maximum-size",
- _("Maximum size"),
- _("The maximum size allocated to the child"),
+ "Maximum size",
+ "The maximum size allocated to the child",
0, G_MAXINT, 600,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -302,8 +300,8 @@ adw_clamp_scrollable_class_init (AdwClampScrollableClass *klass)
*/
props[PROP_TIGHTENING_THRESHOLD] =
g_param_spec_int ("tightening-threshold",
- _("Tightening threshold"),
- _("The size from which the clamp will tighten its grip on the child"),
+ "Tightening threshold",
+ "The size from which the clamp will tighten its grip on the child",
0, G_MAXINT, 400,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-clamp.c b/src/adw-clamp.c
index 8a892a5..3df48f9 100644
--- a/src/adw-clamp.c
+++ b/src/adw-clamp.c
@@ -7,8 +7,6 @@
#include "config.h"
#include "adw-clamp.h"
-#include <glib/gi18n-lib.h>
-
#include "adw-clamp-layout.h"
/**
@@ -160,8 +158,8 @@ adw_clamp_class_init (AdwClampClass *klass)
props[PROP_CHILD] =
g_param_spec_object ("child",
- _("Child"),
- _("The child widget"),
+ "Child",
+ "The child widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -175,8 +173,8 @@ adw_clamp_class_init (AdwClampClass *klass)
*/
props[PROP_MAXIMUM_SIZE] =
g_param_spec_int ("maximum-size",
- _("Maximum size"),
- _("The maximum size allocated to the child"),
+ "Maximum size",
+ "The maximum size allocated to the child",
0, G_MAXINT, 600,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -200,8 +198,8 @@ adw_clamp_class_init (AdwClampClass *klass)
*/
props[PROP_TIGHTENING_THRESHOLD] =
g_param_spec_int ("tightening-threshold",
- _("Tightening threshold"),
- _("The size from which the clamp will tighten its grip on the child"),
+ "Tightening threshold",
+ "The size from which the clamp will tighten its grip on the child",
0, G_MAXINT, 400,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-combo-row.c b/src/adw-combo-row.c
index 76cc639..71d8768 100644
--- a/src/adw-combo-row.c
+++ b/src/adw-combo-row.c
@@ -13,8 +13,6 @@
#include "config.h"
#include "adw-combo-row.h"
-#include <glib/gi18n-lib.h>
-
/**
* SECTION:adw-combo-row
* @short_description: A #GtkListBox row used to choose from a list of items.
@@ -410,8 +408,8 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_MODEL] =
g_param_spec_object ("model",
- _("Model"),
- _("Model for the displayed items"),
+ "Model",
+ "Model for the displayed items",
G_TYPE_LIST_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -425,10 +423,10 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_SELECTED] =
g_param_spec_uint ("selected",
- _("Selected"),
- _("Position of the selected item"),
- 0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
- G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+ "Selected",
+ "Position of the selected item",
+ 0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
+ G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
/**
* AdwComboRow:selected-item:
@@ -439,10 +437,10 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_SELECTED_ITEM] =
g_param_spec_object ("selected-item",
- _("Selected Item"),
- _("The selected item"),
- G_TYPE_OBJECT,
- G_PARAM_READABLE);
+ "Selected Item",
+ "The selected item",
+ G_TYPE_OBJECT,
+ G_PARAM_READABLE);
/**
* AdwComboRow:factory:
@@ -453,8 +451,8 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_FACTORY] =
g_param_spec_object ("factory",
- _("Factory"),
- _("Factory for populating list items"),
+ "Factory",
+ "Factory for populating list items",
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -469,8 +467,8 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_LIST_FACTORY] =
g_param_spec_object ("list-factory",
- _("List Factory"),
- _("Factory for populating list items"),
+ "List Factory",
+ "Factory for populating list items",
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -484,8 +482,8 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_EXPRESSION] =
gtk_param_spec_expression ("expression",
- _("Expression"),
- _("Expression to determine strings to search for"),
+ "Expression",
+ "Expression to determine strings to search for",
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -502,8 +500,8 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
*/
props[PROP_USE_SUBTITLE] =
g_param_spec_boolean ("use-subtitle",
- _("Use subtitle"),
- _("Set the current value as the subtitle"),
+ "Use subtitle",
+ "Set the current value as the subtitle",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-enum-list-model.c b/src/adw-enum-list-model.c
index c06d8d9..1d100c5 100644
--- a/src/adw-enum-list-model.c
+++ b/src/adw-enum-list-model.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-enum-list-model.h"
#include "adw-enum-value-object-private.h"
@@ -116,8 +115,8 @@ adw_enum_list_model_class_init (AdwEnumListModelClass *klass)
props[PROP_ENUM_TYPE] =
g_param_spec_gtype ("enum-type",
- _("Enum type"),
- _("The type of the enum to construct the model from"),
+ "Enum type",
+ "The type of the enum to construct the model from",
G_TYPE_ENUM,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
diff --git a/src/adw-enum-value-object.c b/src/adw-enum-value-object.c
index 93739d7..6a4c5ca 100644
--- a/src/adw-enum-value-object.c
+++ b/src/adw-enum-value-object.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-enum-value-object-private.h"
@@ -71,22 +70,22 @@ adw_enum_value_object_class_init (AdwEnumValueObjectClass *klass)
props[PROP_VALUE] =
g_param_spec_int ("value",
- _("Value"),
- _("The enum object value"),
+ "Value",
+ "The enum object value",
G_MININT, G_MAXINT, 0,
G_PARAM_READABLE);
props[PROP_NAME] =
g_param_spec_string ("name",
- _("Name"),
- _("The enum object name"),
+ "Name",
+ "The enum object name",
NULL,
G_PARAM_READABLE);
props[PROP_NICK] =
g_param_spec_string ("nick",
- _("Nick"),
- _("The enum object nick"),
+ "Nick",
+ "The enum object nick",
NULL,
G_PARAM_READABLE);
diff --git a/src/adw-expander-row.c b/src/adw-expander-row.c
index 08ca077..36233c7 100644
--- a/src/adw-expander-row.c
+++ b/src/adw-expander-row.c
@@ -7,7 +7,6 @@
#include "config.h"
#include "adw-expander-row.h"
-#include <glib/gi18n-lib.h>
#include "adw-action-row.h"
/**
@@ -185,8 +184,8 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
*/
props[PROP_SUBTITLE] =
g_param_spec_string ("subtitle",
- _("Subtitle"),
- _("The subtitle for this row"),
+ "Subtitle",
+ "The subtitle for this row",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -200,8 +199,8 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
*/
props[PROP_USE_UNDERLINE] =
g_param_spec_boolean ("use-underline",
- _("Use underline"),
- _("If set, an underline in the text indicates the next character should be used
for the mnemonic accelerator key"),
+ "Use underline",
+ "If set, an underline in the text indicates the next character should be used for
the mnemonic accelerator key",
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -214,8 +213,8 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
- _("Icon name"),
- _("Icon name"),
+ "Icon name",
+ "Icon name",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -228,8 +227,8 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
*/
props[PROP_EXPANDED] =
g_param_spec_boolean ("expanded",
- _("Expanded"),
- _("Whether the row is expanded"),
+ "Expanded",
+ "Whether the row is expanded",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -242,8 +241,8 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
*/
props[PROP_ENABLE_EXPANSION] =
g_param_spec_boolean ("enable-expansion",
- _("Enable expansion"),
- _("Whether the expansion is enabled"),
+ "Enable expansion",
+ "Whether the expansion is enabled",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -256,8 +255,8 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
*/
props[PROP_SHOW_ENABLE_SWITCH] =
g_param_spec_boolean ("show-enable-switch",
- _("Show enable switch"),
- _("Whether the switch enabling the expansion is visible"),
+ "Show enable switch",
+ "Whether the switch enabling the expansion is visible",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-flap.c b/src/adw-flap.c
index 359439a..e49e474 100644
--- a/src/adw-flap.c
+++ b/src/adw-flap.c
@@ -8,7 +8,6 @@
#include "config.h"
#include "adw-flap.h"
-#include <glib/gi18n-lib.h>
#include <math.h>
#include "adw-animation-private.h"
@@ -1278,8 +1277,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_CONTENT] =
g_param_spec_object ("content",
- _("Content"),
- _("The content Widget"),
+ "Content",
+ "The content Widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1293,8 +1292,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_FLAP] =
g_param_spec_object ("flap",
- _("Flap"),
- _("The flap widget"),
+ "Flap",
+ "The flap widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1309,8 +1308,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_SEPARATOR] =
g_param_spec_object ("separator",
- _("Separator"),
- _("The separator widget"),
+ "Separator",
+ "The separator widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1324,8 +1323,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_FLAP_POSITION] =
g_param_spec_enum ("flap-position",
- _("Flap Position"),
- _("The flap position"),
+ "Flap Position",
+ "The flap position",
GTK_TYPE_PACK_TYPE,
GTK_PACK_START,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1339,8 +1338,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_REVEAL_FLAP] =
g_param_spec_boolean ("reveal-flap",
- _("Reveal Flap"),
- _("Whether the flap is revealed"),
+ "Reveal Flap",
+ "Whether the flap is revealed",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1353,8 +1352,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_REVEAL_DURATION] =
g_param_spec_uint ("reveal-duration",
- _("Reveal Duration"),
- _("The reveal transition animation duration, in milliseconds"),
+ "Reveal Duration",
+ "The reveal transition animation duration, in milliseconds",
0, G_MAXINT,
250,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1369,8 +1368,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_REVEAL_PROGRESS] =
g_param_spec_double ("reveal-progress",
- _("Reveal Progress"),
- _("The current reveal transition progress"),
+ "Reveal Progress",
+ "The current reveal transition progress",
0.0, 1.0, 1.0,
G_PARAM_READABLE);
@@ -1384,8 +1383,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_FOLD_POLICY] =
g_param_spec_enum ("fold-policy",
- _("Fold Policy"),
- _("The current fold policy"),
+ "Fold Policy",
+ "The current fold policy",
ADW_TYPE_FLAP_FOLD_POLICY,
ADW_FLAP_FOLD_POLICY_AUTO,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1399,8 +1398,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_FOLD_DURATION] =
g_param_spec_uint ("fold-duration",
- _("Fold Duration"),
- _("The fold transition animation duration, in milliseconds"),
+ "Fold Duration",
+ "The fold transition animation duration, in milliseconds",
0, G_MAXINT,
250,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1416,8 +1415,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_FOLDED] =
g_param_spec_boolean ("folded",
- _("Folded"),
- _("Whether the flap is currently folded"),
+ "Folded",
+ "Whether the flap is currently folded",
FALSE,
G_PARAM_READABLE);
@@ -1434,8 +1433,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_LOCKED] =
g_param_spec_boolean ("locked",
- _("Locked"),
- _("Whether the flap is locked"),
+ "Locked",
+ "Whether the flap is locked",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1453,8 +1452,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_TRANSITION_TYPE] =
g_param_spec_enum ("transition-type",
- _("Transition Type"),
- _("The type of animation used for reveal and fold transitions"),
+ "Transition Type",
+ "The type of animation used for reveal and fold transitions",
ADW_TYPE_FLAP_TRANSITION_TYPE,
ADW_FLAP_TRANSITION_TYPE_OVER,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1472,8 +1471,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_MODAL] =
g_param_spec_boolean ("modal",
- _("Modal"),
- _("Whether the flap is modal"),
+ "Modal",
+ "Whether the flap is modal",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1488,8 +1487,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_SWIPE_TO_OPEN] =
g_param_spec_boolean ("swipe-to-open",
- _("Swipe to Open"),
- _("Whether the flap can be opened with a swipe gesture"),
+ "Swipe to Open",
+ "Whether the flap can be opened with a swipe gesture",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1504,8 +1503,8 @@ adw_flap_class_init (AdwFlapClass *klass)
*/
props[PROP_SWIPE_TO_CLOSE] =
g_param_spec_boolean ("swipe-to-close",
- _("Swipe to Close"),
- _("Whether the flap can be closed with a swipe gesture"),
+ "Swipe to Close",
+ "Whether the flap can be closed with a swipe gesture",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-header-bar.c b/src/adw-header-bar.c
index 42296a4..5937e53 100644
--- a/src/adw-header-bar.c
+++ b/src/adw-header-bar.c
@@ -20,7 +20,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-header-bar.h"
@@ -366,8 +365,8 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
props[PROP_TITLE_WIDGET] =
g_param_spec_object ("title-widget",
- _("Title Widget"),
- _("Title widget to display"),
+ "Title Widget",
+ "Title widget to display",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS);
@@ -385,8 +384,8 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
*/
props[PROP_SHOW_START_TITLE_BUTTONS] =
g_param_spec_boolean ("show-start-title-buttons",
- _("Show start title buttons"),
- _("Whether to show start title buttons"),
+ "Show start title buttons",
+ "Whether to show start title buttons",
TRUE,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -404,8 +403,8 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
*/
props[PROP_SHOW_END_TITLE_BUTTONS] =
g_param_spec_boolean ("show-end-title-buttons",
- _("Show end title buttons"),
- _("Whether to show end title buttons"),
+ "Show end title buttons",
+ "Whether to show end title buttons",
TRUE,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -423,15 +422,15 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
*/
props[PROP_DECORATION_LAYOUT] =
g_param_spec_string ("decoration-layout",
- _("Decoration Layout"),
- _("The layout for window decorations"),
+ "Decoration Layout",
+ "The layout for window decorations",
NULL,
G_PARAM_READWRITE);
props[PROP_CENTERING_POLICY] =
g_param_spec_enum ("centering-policy",
- _("Centering policy"),
- _("The policy to horizontally align the center widget"),
+ "Centering policy",
+ "The policy to horizontally align the center widget",
ADW_TYPE_CENTERING_POLICY, ADW_CENTERING_POLICY_LOOSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index eb5cab0..fa03770 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -6,7 +6,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "gtkprogresstrackerprivate.h"
#include "adw-animation-private.h"
@@ -281,15 +280,15 @@ adw_leaflet_page_class_init (AdwLeafletPageClass *klass)
page_props[PAGE_PROP_CHILD] =
g_param_spec_object ("child",
- _("Child"),
- _("The child of the page"),
+ "Child",
+ "The child of the page",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
page_props[PAGE_PROP_NAME] =
g_param_spec_string ("name",
- _("Name"),
- _("The name of the child page"),
+ "Name",
+ "The name of the child page",
NULL,
G_PARAM_READWRITE);
@@ -306,8 +305,8 @@ adw_leaflet_page_class_init (AdwLeafletPageClass *klass)
*/
page_props[PAGE_PROP_NAVIGATABLE] =
g_param_spec_boolean ("navigatable",
- _("Navigatable"),
- _("Whether the child can be navigated to"),
+ "Navigatable",
+ "Whether the child can be navigated to",
TRUE,
G_PARAM_READWRITE);
@@ -2289,8 +2288,8 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_FOLDED] =
g_param_spec_boolean ("folded",
- _("Folded"),
- _("Whether the widget is folded"),
+ "Folded",
+ "Whether the widget is folded",
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2303,8 +2302,8 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_HHOMOGENEOUS_FOLDED] =
g_param_spec_boolean ("hhomogeneous-folded",
- _("Horizontally homogeneous folded"),
- _("Horizontally homogeneous sizing when the leaflet is folded"),
+ "Horizontally homogeneous folded",
+ "Horizontally homogeneous sizing when the leaflet is folded",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2317,8 +2316,8 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_VHOMOGENEOUS_FOLDED] =
g_param_spec_boolean ("vhomogeneous-folded",
- _("Vertically homogeneous folded"),
- _("Vertically homogeneous sizing when the leaflet is folded"),
+ "Vertically homogeneous folded",
+ "Vertically homogeneous sizing when the leaflet is folded",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2331,8 +2330,8 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_HHOMOGENEOUS_UNFOLDED] =
g_param_spec_boolean ("hhomogeneous-unfolded",
- _("Box horizontally homogeneous"),
- _("Horizontally homogeneous sizing when the leaflet is unfolded"),
+ "Box horizontally homogeneous",
+ "Horizontally homogeneous sizing when the leaflet is unfolded",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2345,22 +2344,22 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_VHOMOGENEOUS_UNFOLDED] =
g_param_spec_boolean ("vhomogeneous-unfolded",
- _("Box vertically homogeneous"),
- _("Vertically homogeneous sizing when the leaflet is unfolded"),
+ "Box vertically homogeneous",
+ "Vertically homogeneous sizing when the leaflet is unfolded",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_VISIBLE_CHILD] =
g_param_spec_object ("visible-child",
- _("Visible child"),
- _("The widget currently visible when the leaflet is folded"),
+ "Visible child",
+ "The widget currently visible when the leaflet is folded",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_VISIBLE_CHILD_NAME] =
g_param_spec_string ("visible-child-name",
- _("Name of visible child"),
- _("The name of the widget currently visible when the children are stacked"),
+ "Name of visible child",
+ "The name of the widget currently visible when the children are stacked",
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2378,36 +2377,36 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_TRANSITION_TYPE] =
g_param_spec_enum ("transition-type",
- _("Transition type"),
- _("The type of animation used to transition between modes and children"),
+ "Transition type",
+ "The type of animation used to transition between modes and children",
ADW_TYPE_LEAFLET_TRANSITION_TYPE, ADW_LEAFLET_TRANSITION_TYPE_OVER,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_MODE_TRANSITION_DURATION] =
g_param_spec_uint ("mode-transition-duration",
- _("Mode transition duration"),
- _("The mode transition animation duration, in milliseconds"),
+ "Mode transition duration",
+ "The mode transition animation duration, in milliseconds",
0, G_MAXUINT, 250,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_CHILD_TRANSITION_DURATION] =
g_param_spec_uint ("child-transition-duration",
- _("Child transition duration"),
- _("The child transition animation duration, in milliseconds"),
+ "Child transition duration",
+ "The child transition animation duration, in milliseconds",
0, G_MAXUINT, 200,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_CHILD_TRANSITION_RUNNING] =
g_param_spec_boolean ("child-transition-running",
- _("Child transition running"),
- _("Whether or not the child transition is currently running"),
+ "Child transition running",
+ "Whether or not the child transition is currently running",
FALSE,
G_PARAM_READABLE);
props[PROP_INTERPOLATE_SIZE] =
g_param_spec_boolean ("interpolate-size",
- _("Interpolate size"),
- _("Whether or not the size should smoothly change when changing between
differently sized children"),
+ "Interpolate size",
+ "Whether or not the size should smoothly change when changing between
differently sized children",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2421,8 +2420,8 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_CAN_SWIPE_BACK] =
g_param_spec_boolean ("can-swipe-back",
- _("Can swipe back"),
- _("Whether or not swipe gesture can be used to switch to the previous child"),
+ "Can swipe back",
+ "Whether or not swipe gesture can be used to switch to the previous child",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -2436,22 +2435,22 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
*/
props[PROP_CAN_SWIPE_FORWARD] =
g_param_spec_boolean ("can-swipe-forward",
- _("Can swipe forward"),
- _("Whether or not swipe gesture can be used to switch to the next child"),
+ "Can swipe forward",
+ "Whether or not swipe gesture can be used to switch to the next child",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_CAN_UNFOLD] =
g_param_spec_boolean ("can-unfold",
- _("Can unfold"),
- _("Whether or not the leaflet can unfold"),
+ "Can unfold",
+ "Whether or not the leaflet can unfold",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_PAGES] =
g_param_spec_object ("pages",
- _("Pages"),
- _("A selection model with the leaflet's pages"),
+ "Pages",
+ "A selection model with the leaflet's pages",
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READABLE);
diff --git a/src/adw-preferences-group.c b/src/adw-preferences-group.c
index 69cde75..ea44b36 100644
--- a/src/adw-preferences-group.c
+++ b/src/adw-preferences-group.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-preferences-group-private.h"
@@ -180,8 +179,8 @@ adw_preferences_group_class_init (AdwPreferencesGroupClass *klass)
*/
props[PROP_DESCRIPTION] =
g_param_spec_string ("description",
- _("Description"),
- _("Description"),
+ "Description",
+ "Description",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -194,8 +193,8 @@ adw_preferences_group_class_init (AdwPreferencesGroupClass *klass)
*/
props[PROP_TITLE] =
g_param_spec_string ("title",
- _("Title"),
- _("Title"),
+ "Title",
+ "Title",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-preferences-page.c b/src/adw-preferences-page.c
index 31e8410..2668fae 100644
--- a/src/adw-preferences-page.c
+++ b/src/adw-preferences-page.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-preferences-page-private.h"
@@ -145,8 +144,8 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
- _("Icon name"),
- _("Icon name"),
+ "Icon name",
+ "Icon name",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -159,8 +158,8 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
*/
props[PROP_TITLE] =
g_param_spec_string ("title",
- _("Title"),
- _("Title"),
+ "Title",
+ "Title",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -173,8 +172,8 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
*/
props[PROP_USE_UNDERLINE] =
g_param_spec_boolean ("use-underline",
- _("Use underline"),
- _("Whether an embedded underline in the text of the title label indicates a
mnemonic"),
+ "Use underline",
+ "Whether an embedded underline in the text of the title label indicates a
mnemonic",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-preferences-row.c b/src/adw-preferences-row.c
index eb8fd32..efbfa0a 100644
--- a/src/adw-preferences-row.c
+++ b/src/adw-preferences-row.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-preferences-row.h"
@@ -112,8 +111,8 @@ adw_preferences_row_class_init (AdwPreferencesRowClass *klass)
*/
props[PROP_TITLE] =
g_param_spec_string ("title",
- _("Title"),
- _("The title of the preference"),
+ "Title",
+ "The title of the preference",
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -127,8 +126,8 @@ adw_preferences_row_class_init (AdwPreferencesRowClass *klass)
*/
props[PROP_USE_UNDERLINE] =
g_param_spec_boolean ("use-underline",
- _("Use underline"),
- _("If set, an underline in the text indicates the next character should be used
for the mnemonic accelerator key"),
+ "Use underline",
+ "If set, an underline in the text indicates the next character should be used for
the mnemonic accelerator key",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-preferences-window.c b/src/adw-preferences-window.c
index 3398149..4400a3f 100644
--- a/src/adw-preferences-window.c
+++ b/src/adw-preferences-window.c
@@ -435,8 +435,8 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
*/
props[PROP_SEARCH_ENABLED] =
g_param_spec_boolean ("search-enabled",
- _("Search enabled"),
- _("Whether search is enabled"),
+ "Search enabled",
+ "Whether search is enabled",
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -449,8 +449,8 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
*/
props[PROP_CAN_SWIPE_BACK] =
g_param_spec_boolean ("can-swipe-back",
- _("Can swipe back"),
- _("Whether or not swipe gesture can be used to switch from a subpage to the
preferences"),
+ "Can swipe back",
+ "Whether or not swipe gesture can be used to switch from a subpage to the
preferences",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-shadow-helper.c b/src/adw-shadow-helper.c
index b06718c..e85c8a7 100644
--- a/src/adw-shadow-helper.c
+++ b/src/adw-shadow-helper.c
@@ -5,11 +5,10 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-gizmo-private.h"
#include "adw-shadow-helper-private.h"
-\
+
/**
* PRIVATE:adw-shadow-helper
* @short_description: Shadow helper used in #AdwLeaflet
@@ -141,8 +140,8 @@ adw_shadow_helper_class_init (AdwShadowHelperClass *klass)
*/
props[PROP_WIDGET] =
g_param_spec_object ("widget",
- _("Widget"),
- _("The widget the shadow will be drawn for"),
+ "Widget",
+ "The widget the shadow will be drawn for",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
diff --git a/src/adw-squeezer.c b/src/adw-squeezer.c
index 5f6002a..0869a9f 100644
--- a/src/adw-squeezer.c
+++ b/src/adw-squeezer.c
@@ -15,7 +15,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-squeezer.h"
@@ -200,15 +199,15 @@ adw_squeezer_page_class_init (AdwSqueezerPageClass *klass)
page_props[PAGE_PROP_CHILD] =
g_param_spec_object ("child",
- _("Child"),
- _("The child of the page"),
+ "Child",
+ "The child of the page",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
page_props[PAGE_PROP_ENABLED] =
g_param_spec_boolean ("enabled",
- _("Enabled"),
- _("Whether the child can be picked or should be ignored when looking for the child
fitting the available size best"),
+ "Enabled",
+ "Whether the child can be picked or should be ignored when looking for the child
fitting the available size best",
TRUE,
G_PARAM_READWRITE);
@@ -1044,46 +1043,46 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
props[PROP_HOMOGENEOUS] =
g_param_spec_boolean ("homogeneous",
- _("Homogeneous"),
- _("Homogeneous sizing"),
- FALSE,
- G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+ "Homogeneous",
+ "Homogeneous sizing",
+ FALSE,
+ G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_VISIBLE_CHILD] =
g_param_spec_object ("visible-child",
- _("Visible child"),
- _("The widget currently visible in the squeezer"),
+ "Visible child",
+ "The widget currently visible in the squeezer",
GTK_TYPE_WIDGET,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_TRANSITION_DURATION] =
g_param_spec_uint ("transition-duration",
- _("Transition duration"),
- _("The animation duration, in milliseconds"),
+ "Transition duration",
+ "The animation duration, in milliseconds",
0, G_MAXUINT, 200,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_TRANSITION_TYPE] =
g_param_spec_enum ("transition-type",
- _("Transition type"),
- _("The type of animation used to transition"),
+ "Transition type",
+ "The type of animation used to transition",
ADW_TYPE_SQUEEZER_TRANSITION_TYPE,
ADW_SQUEEZER_TRANSITION_TYPE_NONE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_TRANSITION_RUNNING] =
g_param_spec_boolean ("transition-running",
- _("Transition running"),
- _("Whether or not the transition is currently running"),
+ "Transition running",
+ "Whether or not the transition is currently running",
FALSE,
G_PARAM_READABLE);
props[PROP_INTERPOLATE_SIZE] =
g_param_spec_boolean ("interpolate-size",
- _("Interpolate size"),
- _("Whether or not the size should smoothly change when changing between
differently sized children"),
- FALSE,
- G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+ "Interpolate size",
+ "Whether or not the size should smoothly change when changing between differently
sized children",
+ FALSE,
+ G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
/**
* AdwSqueezer:xalign:
@@ -1101,8 +1100,8 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
*/
props[PROP_XALIGN] =
g_param_spec_float ("xalign",
- _("X align"),
- _("The horizontal alignment, from 0 (start) to 1 (end)"),
+ "X align",
+ "The horizontal alignment, from 0 (start) to 1 (end)",
0.0, 1.0,
0.5,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1123,16 +1122,16 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
*/
props[PROP_YALIGN] =
g_param_spec_float ("yalign",
- _("Y align"),
- _("The vertical alignment, from 0 (top) to 1 (bottom)"),
+ "Y align",
+ "The vertical alignment, from 0 (top) to 1 (bottom)",
0.0, 1.0,
0.5,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_PAGES] =
g_param_spec_object ("pages",
- _("Pages"),
- _("A selection model with the squeezer's pages"),
+ "Pages",
+ "A selection model with the squeezer's pages",
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READABLE);
diff --git a/src/adw-status-page.c b/src/adw-status-page.c
index 65ec8a6..fb00341 100644
--- a/src/adw-status-page.c
+++ b/src/adw-status-page.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-status-page.h"
@@ -175,8 +174,8 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
- _("Icon name"),
- _("The name of the icon to be used"),
+ "Icon name",
+ "The name of the icon to be used",
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -189,8 +188,8 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
*/
props[PROP_TITLE] =
g_param_spec_string ("title",
- _("Title"),
- _("The title to be displayed below the icon"),
+ "Title",
+ "The title to be displayed below the icon",
"",
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -203,15 +202,15 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
*/
props[PROP_DESCRIPTION] =
g_param_spec_string ("description",
- _("Description"),
- _("The description to be displayed below the title"),
+ "Description",
+ "The description to be displayed below the title",
"",
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_CHILD] =
g_param_spec_object ("child",
- _("Child"),
- _("The child widget"),
+ "Child",
+ "The child widget",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-swipe-tracker.c b/src/adw-swipe-tracker.c
index d57a30d..d49b3d1 100644
--- a/src/adw-swipe-tracker.c
+++ b/src/adw-swipe-tracker.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-swipe-tracker-private.h"
#include "adw-navigation-direction.h"
@@ -1036,8 +1035,8 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
*/
props[PROP_SWIPEABLE] =
g_param_spec_object ("swipeable",
- _("Swipeable"),
- _("The swipeable the swipe tracker is attached to"),
+ "Swipeable",
+ "The swipeable the swipe tracker is attached to",
ADW_TYPE_SWIPEABLE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
@@ -1051,8 +1050,8 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
*/
props[PROP_ENABLED] =
g_param_spec_boolean ("enabled",
- _("Enabled"),
- _("Whether the swipe tracker processes events"),
+ "Enabled",
+ "Whether the swipe tracker processes events",
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1066,8 +1065,8 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
*/
props[PROP_REVERSED] =
g_param_spec_boolean ("reversed",
- _("Reversed"),
- _("Whether swipe direction is reversed"),
+ "Reversed",
+ "Whether swipe direction is reversed",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1081,8 +1080,8 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
*/
props[PROP_ALLOW_MOUSE_DRAG] =
g_param_spec_boolean ("allow-mouse-drag",
- _("Allow mouse drag"),
- _("Whether to allow dragging with mouse pointer"),
+ "Allow mouse drag",
+ "Whether to allow dragging with mouse pointer",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1096,8 +1095,8 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
*/
props[PROP_ALLOW_LONG_SWIPES] =
g_param_spec_boolean ("allow-long-swipes",
- _("Allow long swipes"),
- _("Whether to allow swiping for more than one snap point at a time"),
+ "Allow long swipes",
+ "Whether to allow swiping for more than one snap point at a time",
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-value-object.c b/src/adw-value-object.c
index 762ea35..d5a7ef1 100644
--- a/src/adw-value-object.c
+++ b/src/adw-value-object.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include <gobject/gvaluecollector.h>
#include "adw-value-object.h"
@@ -192,8 +191,9 @@ adw_value_object_class_init (AdwValueObjectClass *klass)
object_class->set_property = adw_value_object_set_property;
props[PROP_VALUE] =
- g_param_spec_boxed ("value", C_("AdwValueObjectClass", "Value"),
- C_("AdwValueObjectClass", "The contained value"),
+ g_param_spec_boxed ("value",
+ "Value",
+ "The contained value",
G_TYPE_VALUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-view-switcher-bar.c b/src/adw-view-switcher-bar.c
index f948e3b..a301222 100644
--- a/src/adw-view-switcher-bar.c
+++ b/src/adw-view-switcher-bar.c
@@ -6,7 +6,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-enums.h"
#include "adw-view-switcher-bar.h"
@@ -192,8 +191,8 @@ adw_view_switcher_bar_class_init (AdwViewSwitcherBarClass *klass)
*/
props[PROP_POLICY] =
g_param_spec_enum ("policy",
- _("Policy"),
- _("The policy to determine the mode to use"),
+ "Policy",
+ "The policy to determine the mode to use",
ADW_TYPE_VIEW_SWITCHER_POLICY, ADW_VIEW_SWITCHER_POLICY_NARROW,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -206,8 +205,8 @@ adw_view_switcher_bar_class_init (AdwViewSwitcherBarClass *klass)
*/
props[PROP_STACK] =
g_param_spec_object ("stack",
- _("Stack"),
- _("Stack"),
+ "Stack",
+ "Stack",
GTK_TYPE_STACK,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -220,8 +219,8 @@ adw_view_switcher_bar_class_init (AdwViewSwitcherBarClass *klass)
*/
props[PROP_REVEAL] =
g_param_spec_boolean ("reveal",
- _("Reveal"),
- _("Whether the view switcher is revealed"),
+ "Reveal",
+ "Whether the view switcher is revealed",
FALSE,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-view-switcher-button.c b/src/adw-view-switcher-button.c
index ce17212..c58b4ff 100644
--- a/src/adw-view-switcher-button.c
+++ b/src/adw-view-switcher-button.c
@@ -6,7 +6,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-view-switcher-button-private.h"
@@ -235,8 +234,8 @@ adw_view_switcher_button_class_init (AdwViewSwitcherButtonClass *klass)
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
- _("Icon Name"),
- _("Icon name for image"),
+ "Icon Name",
+ "Icon name for image",
"text-x-generic-symbolic",
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE);
@@ -252,8 +251,8 @@ adw_view_switcher_button_class_init (AdwViewSwitcherButtonClass *klass)
*/
props[PROP_NEEDS_ATTENTION] =
g_param_spec_boolean ("needs-attention",
- _("Needs attention"),
- _("Hint the view needs attention"),
+ "Needs attention",
+ "Hint the view needs attention",
FALSE,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE);
diff --git a/src/adw-view-switcher-title.c b/src/adw-view-switcher-title.c
index ed5712b..abcdd92 100644
--- a/src/adw-view-switcher-title.c
+++ b/src/adw-view-switcher-title.c
@@ -6,7 +6,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-view-switcher-title.h"
#include "adw-squeezer.h"
@@ -225,8 +224,8 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
*/
props[PROP_POLICY] =
g_param_spec_enum ("policy",
- _("Policy"),
- _("The policy to determine the mode to use"),
+ "Policy",
+ "The policy to determine the mode to use",
ADW_TYPE_VIEW_SWITCHER_POLICY, ADW_VIEW_SWITCHER_POLICY_AUTO,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -239,8 +238,8 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
*/
props[PROP_STACK] =
g_param_spec_object ("stack",
- _("Stack"),
- _("Stack"),
+ "Stack",
+ "Stack",
GTK_TYPE_STACK,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -253,8 +252,8 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
*/
props[PROP_TITLE] =
g_param_spec_string ("title",
- _("Title"),
- _("The title to display"),
+ "Title",
+ "The title to display",
NULL,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -267,8 +266,8 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
*/
props[PROP_SUBTITLE] =
g_param_spec_string ("subtitle",
- _("Subtitle"),
- _("The subtitle to display"),
+ "Subtitle",
+ "The subtitle to display",
NULL,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -281,8 +280,8 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
*/
props[PROP_VIEW_SWITCHER_ENABLED] =
g_param_spec_boolean ("view-switcher-enabled",
- _("View switcher enabled"),
- _("Whether the view switcher is enabled"),
+ "View switcher enabled",
+ "Whether the view switcher is enabled",
TRUE,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -295,8 +294,8 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
*/
props[PROP_TITLE_VISIBLE] =
g_param_spec_boolean ("title-visible",
- _("Title visible"),
- _("Whether the title label is visible"),
+ "Title visible",
+ "Whether the title label is visible",
TRUE,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-view-switcher.c b/src/adw-view-switcher.c
index 1e04ff6..434829e 100644
--- a/src/adw-view-switcher.c
+++ b/src/adw-view-switcher.c
@@ -9,7 +9,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-enums.h"
#include "adw-view-switcher.h"
@@ -504,8 +503,8 @@ adw_view_switcher_class_init (AdwViewSwitcherClass *klass)
*/
props[PROP_POLICY] =
g_param_spec_enum ("policy",
- _("Policy"),
- _("The policy to determine the mode to use"),
+ "Policy",
+ "The policy to determine the mode to use",
ADW_TYPE_VIEW_SWITCHER_POLICY, ADW_VIEW_SWITCHER_POLICY_AUTO,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -524,8 +523,8 @@ adw_view_switcher_class_init (AdwViewSwitcherClass *klass)
*/
props[PROP_NARROW_ELLIPSIZE] =
g_param_spec_enum ("narrow-ellipsize",
- _("Narrow ellipsize"),
- _("The preferred place to ellipsize the string, if the narrow mode label does not
have enough room to display the entire string"),
+ "Narrow ellipsize",
+ "The preferred place to ellipsize the string, if the narrow mode label does not have
enough room to display the entire string",
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_NONE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -539,8 +538,8 @@ adw_view_switcher_class_init (AdwViewSwitcherClass *klass)
*/
props[PROP_STACK] =
g_param_spec_object ("stack",
- _("Stack"),
- _("Stack"),
+ "Stack",
+ "Stack",
GTK_TYPE_STACK,
G_PARAM_EXPLICIT_NOTIFY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-window-title.c b/src/adw-window-title.c
index 2d07806..b211716 100644
--- a/src/adw-window-title.c
+++ b/src/adw-window-title.c
@@ -5,7 +5,6 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
#include "adw-window-title.h"
@@ -126,8 +125,8 @@ adw_window_title_class_init (AdwWindowTitleClass *klass)
*/
props[PROP_TITLE] =
g_param_spec_string ("title",
- _("Title"),
- _("The title to display"),
+ "Title",
+ "The title to display",
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -142,8 +141,8 @@ adw_window_title_class_init (AdwWindowTitleClass *klass)
*/
props[PROP_SUBTITLE] =
g_param_spec_string ("subtitle",
- _("Subtitle"),
- _("The subtitle to display"),
+ "Subtitle",
+ "The subtitle to display",
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]