mirror of
https://github.com/clearlinux/linux-steam-integration.git
synced 2026-09-06 22:01:27 +00:00
frontend: Make things build again with translations
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
@@ -41,8 +41,11 @@ prefix = get_option('prefix')
|
||||
datadir = join_paths(prefix, get_option('datadir'))
|
||||
vendordir = join_paths(datadir, 'defaults', meson.project_name())
|
||||
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
||||
localedir = join_paths(prefix, get_option('localedir'))
|
||||
cdata.set_quoted('SYSTEMCONFDIR', sysconfdir)
|
||||
cdata.set_quoted('VENDORDIR', vendordir)
|
||||
cdata.set_quoted('LOCALEDIR', localedir)
|
||||
cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
||||
|
||||
# Configurables
|
||||
cdata.set_quoted('LSI_PRELOAD_LIBS', get_option('with-preload-libs'))
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "lsi.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -11,8 +11,10 @@
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "main-window.h"
|
||||
|
||||
/**
|
||||
@@ -22,6 +24,11 @@ int main(int argc, char **argv)
|
||||
{
|
||||
GtkWidget *window = NULL;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
|
||||
gtk_init(&argc, &argv);
|
||||
|
||||
window = lsi_settings_window_new();
|
||||
|
||||
Reference in New Issue
Block a user