summaryrefslogtreecommitdiff
path: root/libpeas/peas-i18n-priv.h
Commit message (Collapse)AuthorAgeFilesLines
* janitorial: use #pragma onceChristian Hergert2023-03-221-4/+1
| | | | | We can rely on modern compilers to support #pragma once instead of doing the #ifndef style.
* janitorial: add SPDX-License-Identifier: LGPL-2.1-or-laterChristian Hergert2023-03-221-0/+2
| | | | | Just a nice thing to have in headers to make it clearer for people who casually find themselves reading, and perhaps copying, the code.
* i18n: simplify i18n for use within libpeasChristian Hergert2020-01-191-0/+32
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