i18n: use dummy localizations to avoid dependencies
authorZygmunt Krynicki <me@zygoon.pl>
Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)
committerZygmunt Krynicki <me@zygoon.pl>
Tue, 28 Jan 2025 06:59:45 +0000 (06:59 +0000)
commit07219773f105ab48c3be136e67f35a857f51fc3f
tree704376cd6040426ee2a0d18c2954b14aa4fe3709
parentd64c190f43be8a3af256eb4a5c21b5e8abdbed11
i18n: use dummy localizations to avoid dependencies

Upstream snapd uses the github.com/ojii/gettext.go package for access to
translation catalogs. This package is currently not available in Debian
and prevents building the package. As such, replace the real
implementation with a simple dummy one that always uses the English
input strings.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
i18n/i18n.go
i18n/i18n_test.go