libmalcontent-ui: Use library i18n functions

Rather than application i18n functions and `#include`s. This ensures
that the correct translation domain is used.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-04-27 11:55:10 +01:00
parent 0d31a38855
commit 3556813c55
4 changed files with 10 additions and 4 deletions

View File

@ -21,7 +21,7 @@
#include "config.h"
#include <glib/gi18n.h>
#include <glib/gi18n-lib.h>
#include <string.h>
#include "gs-content-rating.h"

View File

@ -19,10 +19,12 @@
* - Philip Withnall <withnall@endlessm.com>
*/
#include "config.h"
#include <gio/gio.h>
#include <glib.h>
#include <glib-object.h>
#include <glib/gi18n.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include "restrict-applications-dialog.h"

View File

@ -19,12 +19,14 @@
* - Philip Withnall <withnall@endlessm.com>
*/
#include "config.h"
#include <flatpak.h>
#include <gio/gdesktopappinfo.h>
#include <gio/gio.h>
#include <glib.h>
#include <glib-object.h>
#include <glib/gi18n.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <libmalcontent/app-filter.h>

View File

@ -20,11 +20,13 @@
* - Philip Withnall <withnall@endlessm.com>
*/
#include "config.h"
#include <libmalcontent/malcontent.h>
#include <locale.h>
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
#include <glib/gi18n.h>
#include <glib/gi18n-lib.h>
#include <strings.h>
#include "gs-content-rating.h"