[gtksourceview] utils: rename dgettext()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] utils: rename dgettext()
- Date: Sun, 24 Sep 2017 09:49:41 +0000 (UTC)
commit 294f7f7f7b0b5adf616ecf7510941725b9e21544
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Sep 24 11:46:02 2017 +0200
utils: rename dgettext()
gtksourceview/gtksourcelanguage.c | 2 +-
gtksourceview/gtksourceview-utils.c | 6 +++---
gtksourceview/gtksourceview-utils.h | 2 +-
po/Makevars | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage.c b/gtksourceview/gtksourcelanguage.c
index ac92d66..823a12c 100644
--- a/gtksourceview/gtksourcelanguage.c
+++ b/gtksourceview/gtksourcelanguage.c
@@ -475,7 +475,7 @@ _gtk_source_language_translate_string (GtkSourceLanguage *language,
{
g_return_val_if_fail (string != NULL, NULL);
- return _gtk_source_dgettext (language->priv->translation_domain, string);
+ return _gtk_source_utils_dgettext (language->priv->translation_domain, string);
}
/**
diff --git a/gtksourceview/gtksourceview-utils.c b/gtksourceview/gtksourceview-utils.c
index f8417bd..4da4bd4 100644
--- a/gtksourceview/gtksourceview-utils.c
+++ b/gtksourceview/gtksourceview-utils.c
@@ -302,14 +302,14 @@ _gtk_source_utils_pango_font_description_to_css (const PangoFontDescription *fon
}
/*
- * _gtk_source_dgettext:
+ * _gtk_source_utils_dgettext:
*
* Try to translate string from given domain. It returns
* duplicated string which must be freed with g_free().
*/
gchar *
-_gtk_source_dgettext (const gchar *domain,
- const gchar *string)
+_gtk_source_utils_dgettext (const gchar *domain,
+ const gchar *string)
{
const gchar *translated;
gchar *tmp;
diff --git a/gtksourceview/gtksourceview-utils.h b/gtksourceview/gtksourceview-utils.h
index 60ea248..2811e0d 100644
--- a/gtksourceview/gtksourceview-utils.h
+++ b/gtksourceview/gtksourceview-utils.h
@@ -42,7 +42,7 @@ gchar * _gtk_source_utils_pango_font_description_to_css (const
PangoFontDescrip
/* Note: it returns duplicated string. */
G_GNUC_INTERNAL
-gchar * _gtk_source_dgettext (const gchar *domain,
+gchar * _gtk_source_utils_dgettext (const gchar *domain,
const gchar *msgid) G_GNUC_FORMAT(2);
G_END_DECLS
diff --git a/po/Makevars b/po/Makevars
index 26b9ebe..d5ef055 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -8,7 +8,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2
--keyword=g_dngettext:2,3 --keyword=_gtk_source_dgettext:2 --add-comments
+XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2
--keyword=g_dngettext:2,3 --keyword=_gtk_source_utils_dgettext:2 --add-comments
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]