Commit f45e4d61 authored by Claude Paroz's avatar Claude Paroz
Browse files

Add i18n basic structure

Closes #3.
parent d25101db
......@@ -28,9 +28,11 @@ project('call', 'c',
calls_id = 'sm.puri.Calls'
calls_homepage = 'https://source.puri.sm/Librem5/calls'
calls_name = meson.project_name()
calls_version = meson.project_version()
subdir('libgdbofono')
subdir('po')
subdir('src')
subdir('doc')
subdir('data')
......
src/calls-call-data.c
src/calls-call-display.c
src/calls-call-holder.c
src/calls-call-selector-item.c
src/calls-dummy-call.c
src/calls-dummy-origin.c
src/calls-encryption-indicator.c
src/calls-main-window.c
src/calls-mm-call.c
src/calls-mm-origin.c
src/calls-mm-provider.c
src/calls-new-call-box.c
src/calls-ofono-call.c
src/calls-ofono-object.c
src/calls-ofono-origin.c
src/calls-ofono-provider.c
src/calls-party.c
src/ui/call-display.ui
src/ui/call-selector-item.ui
src/ui/call-window.ui
src/ui/encryption-indicator.ui
src/ui/history-header-bar.ui
src/ui/main-window.ui
src/ui/new-call-box.ui
src/ui/new-call-header-bar.ui
i18n = import('i18n')
i18n.gettext(calls_name, preset : 'glib')
......@@ -22,6 +22,7 @@
*
*/
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#define HANDY_USE_UNSTABLE_API
......@@ -85,6 +86,10 @@ main (int argc,
GtkApplication *app;
int status;
textdomain (GETTEXT_PACKAGE);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
app = gtk_application_new (APP_ID, G_APPLICATION_FLAGS_NONE);
g_set_prgname (APP_ID);
g_signal_connect (app, "activate", G_CALLBACK (show_window), NULL);
......
......@@ -60,8 +60,11 @@ calls_dummy_sources = ['calls-dummy-call.c', 'calls-dummy-call.h',
'calls-dummy-provider.c', 'calls-dummy-provider.h',
]
prefix = get_option('prefix')
config_data = configuration_data()
config_data.set_quoted('APP_ID', calls_id)
config_data.set_quoted('GETTEXT_PACKAGE', calls_name)
config_data.set_quoted('LOCALEDIR', join_paths(prefix, get_option('localedir')))
config_data.set_quoted('PACKAGE_URL', calls_homepage)
config_data.set_quoted('PACKAGE_VERSION', calls_version)
config_data.set_quoted('VCS_TAG', '@VCS_TAG@')
......
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