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>
Thu, 19 Sep 2024 12:43:40 +0000 (14:43 +0200)
commitd27d7b82b43431dea23efaf929e76d69b41faf0f
tree67c3c61dd2f93f70ced61bdbd3951e1bb1d240a3
parentd5ace1c45908a1cf6475c595ab75a94807cfd3e3
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