| 1 |
Description: Fix broken i18n support |
| 2 |
Upstream's migration to meson, prior to the repository being archived, broke |
| 3 |
i18n support, such that starting connman-gtk with any supported LC_LANG |
| 4 |
would fail to load the relevant translation. |
| 5 |
Author: Nick Morrott <[email protected]> |
| 6 |
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992589 |
| 7 |
Forwarded: not-needed |
| 8 |
Last-Update: 2022-02-11 |
| 9 |
--- |
| 10 |
--- a/meson.build |
| 11 |
+++ b/meson.build |
| 12 |
@@ -28,6 +28,8 @@ |
| 13 |
gtk = dependency('gtk+-3.0', version: '>=3.22') |
| 14 |
glib = dependency('glib-2.0', version: '>=2.50') |
| 15 |
|
| 16 |
+i18n = import('i18n') |
| 17 |
+ |
| 18 |
conf_data = configuration_data() |
| 19 |
openconnect = disabler() |
| 20 |
cc = meson.get_compiler('c') |
| 21 |
@@ -48,7 +50,7 @@ |
| 22 |
conf_data.set('USE_OPENCONNECT', openconnect.found()) |
| 23 |
conf_data.set('USE_STATUS_ICON', get_option('use_status_icon')) |
| 24 |
conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name()) |
| 25 |
|
| 26 |
+conf_data.set_quoted('CONNMAN_GTK_LOCALEDIR', get_option('prefix') + '/' + get_option('localedir') + '/') |
| 27 |
|
| 28 |
conf_data.set('version', meson.project_version()) |
| 29 |
configure_file(input : 'config.h.in', |
| 30 |
--- a/po/POTFILES.in |
| 31 |
+++ b/po/POTFILES.in |
| 32 |
@@ -1,10 +1,10 @@ |
| 33 |
|
| 34 |
|
| 35 |
+data/connman-gtk.desktop.in |
| 36 |
src/agent.c |
| 37 |
|
| 38 |
+src/configurator.c |
| 39 |
src/connection.c |
| 40 |
src/dialog.c |
| 41 |
src/main.c |
| 42 |
+src/openconnect_helper.c |
| 43 |
src/service.c |
| 44 |
src/settings.c |
| 45 |
src/settings_content.c |
| 46 |
@@ -13,4 +13,3 @@ |
| 47 |
src/util.c |
| 48 |
src/vpn.c |
| 49 |
src/wireless.c |
| 50 |
|
| 51 |
--- a/po/meson.build |
| 52 |
+++ b/po/meson.build |
| 53 |
@@ -1,25 +1 @@ |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
+i18n.gettext(meson.project_name(), preset: 'glib') |