Commit 05d1b9d3 authored by Guido Gunther's avatar Guido Gunther

Add po support

This enables us to use translations
parent c3d1cbfe
......@@ -68,6 +68,6 @@ configure_file(
gnome = import('gnome')
subdir('src')
subdir('data')
subdir('po')
subdir('src')
src/background.c
src/favorites.c
src/lockscreen.c
src/menu.c
src/panel.c
src/phosh.c
src/settings.c
src/ui/settings-menu.ui
src/ui/top-panel.ui
i18n = import('i18n')
i18n.gettext('phosh', preset : 'glib')
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the phosh package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: phosh\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-01 18:31+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/ui/settings-menu.ui:120
msgid "Rotation"
msgstr ""
......@@ -12,9 +12,12 @@
#include <string.h>
#include <glib-object.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gdk/gdkwayland.h>
#include "config.h"
#include "phosh-mobile-shell-client-protocol.h"
#include "phosh.h"
......@@ -562,6 +565,10 @@ phosh ()
int main(int argc, char *argv[])
{
textdomain (GETTEXT_PACKAGE);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
gtk_init (&argc, &argv);
g_object_new (PHOSH_TYPE_SHELL, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment