summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2020-01-19 17:21:30 -0800
committerChristian Hergert <chergert@redhat.com>2020-01-19 17:24:35 -0800
commitec20d0fac1aa90ed17bbce1dd3ce9354638eef84 (patch)
treea057c7b63fa4194e0ff41efc519c64bb3457c366 /tests
parenta0664d356601ff035904d902e1b34c4b2337e0cc (diff)
downloadlibpeas-ec20d0fac1aa90ed17bbce1dd3ce9354638eef84.tar.gz
i18n: simplify i18n for use within libpeas
We don't need a public (but not exposed via headers) function in our ABI to do gettext. Instead, we can just wrap _() to use g_dgettext() with a predefined GETTEXT_PACKAGE. Additionally, instead of requiring callers to check/initialize the libpeas gettext textdomain, we can use a static constructor to set that up once at startup. Related !24 Fixes #35
Diffstat (limited to 'tests')
-rw-r--r--tests/libpeas-gtk/plugin-manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/libpeas-gtk/plugin-manager.c b/tests/libpeas-gtk/plugin-manager.c
index fb0be47..614ccea 100644
--- a/tests/libpeas-gtk/plugin-manager.c
+++ b/tests/libpeas-gtk/plugin-manager.c
@@ -19,14 +19,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
-#include <glib.h>
#include <gtk/gtk.h>
+
#include <libpeas/peas.h>
-#include <libpeas/peas-i18n.h>
+#include <libpeas/peas-i18n-priv.h>
#include <libpeas-gtk/peas-gtk.h>
#include "testing/testing.h"