Control: tags -1 + patch On 2019-08-26 07:55 +0200, Sven Joachim wrote:
> Package: libcwidget4 > Version: 0.5.18-3 > > The libcwidget4 package ships its translations under > /usr/share/locale/*/LC_MESSAGES/libcwidget3.mo. This is bad, because > these files conflict with the ones from libcwidget3v5, they should be > named /usr/share/locale/*/LC_MESSAGES/libcwidget4.mo instead. > > See bug #655689[1] for the initial discussion about including the soname in > the translation file names, and why these are currently called > libcwidget3.mo rather than just libcwidget.mo. Attached is a patch against the master branch in cwidget-upstream which takes care of that, I have not looked what it would take to apply it to the Debian packaging. Having to change three files for an SONAME bump is not great. Another option would be to set the domain back to 'cwidget' and ship the translations in their own package, say libcwidget-l10n. Then both libcwidget4 and a later libcwidget5 package could declare a relationship to libcwidget-l10n, probably Recommends. Cheers, Sven
From eecbdc90642ca124afde7f9548dbc8500cb96907 Mon Sep 17 00:00:00 2001 From: Sven Joachim <svenj...@gmx.de> Date: Mon, 26 Aug 2019 20:21:32 +0200 Subject: [PATCH] Change gettext domainname to 'libcwidget4' This accommodates the domain to the changed SONAME. --- po/Makevars | 2 +- src/cwidget/generic/util/i18n.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/po/Makevars b/po/Makevars index 45c398c..df35198 100644 --- a/po/Makevars +++ b/po/Makevars @@ -5,7 +5,7 @@ # Use library package name, to not clash with other versions if several are # installed at the same time -DOMAIN = libcwidget3 +DOMAIN = libcwidget4 # These two variables depend on the location of this directory. diff --git a/src/cwidget/generic/util/i18n.h b/src/cwidget/generic/util/i18n.h index 88fb058..66f975e 100644 --- a/src/cwidget/generic/util/i18n.h +++ b/src/cwidget/generic/util/i18n.h @@ -24,7 +24,7 @@ // i18n definitions -#define CWIDGET_DOMAIN "libcwidget3" +#define CWIDGET_DOMAIN "libcwidget4" #ifdef HAVE_LOCALE_H -- 2.23.0