From nobody Sun Feb 8 16:49:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576500050; cv=none; d=zohomail.com; s=zohoarc; b=bJeaQD2L4KyIopP+U7Dvx9mCLJsewsLSoXQo5svz5VGI78scqGgCjnTp/s3fwz0T7kc8oxZX/2TZckHwD4YRPlNkGZjdYp9seALAX1xpFSwo/wvNpLw01vg0u70jyabTGR0iMmMvTjZGIYJhp0R+vXQ7i/f/O/hU5pmiW8cEey0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500050; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6GPhTnvNcDQEovP30QwbxcyMYa5eL4oGyZIEkMaroDk=; b=Kwdi0CGiyxehXcaZpja8kWc5q0W0L9r1HZDfv7vcAMzZhlUKt2Kwf4/rBvz2GoAgrIRYPYzRZUDXuLhfco41wjFSTzL11V7IS2FbE5Q/+SzGo0FFNc/dczJz840AVuttNi89aC2bKxXcQaRXoVmZeZgWFw7w8uwqbZfdEs8jN1I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1576500050943621.5295306025481; Mon, 16 Dec 2019 04:40:50 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-381-Cp8SrjpAPuKAN8_-Z-oZvQ-1; Mon, 16 Dec 2019 07:40:48 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4F29B800EBF; Mon, 16 Dec 2019 12:40:42 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1FECB5D9E2; Mon, 16 Dec 2019 12:40:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CB5AE18089CE; Mon, 16 Dec 2019 12:40:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBGCeefU004725 for ; Mon, 16 Dec 2019 07:40:40 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8379460BF7; Mon, 16 Dec 2019 12:40:40 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-24.ams2.redhat.com [10.36.112.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 65B2D60BF4; Mon, 16 Dec 2019 12:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576500049; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6GPhTnvNcDQEovP30QwbxcyMYa5eL4oGyZIEkMaroDk=; b=LZ+hokUlT0njC1JjKtkrK6j8KzTIZXe61qBcc2WwnEpYMFpMM3ph9Cv0n42pj6bHtV6nm+ 0cx5LTs6+ivRLlTTMVOf1SI3u+7/2fn+tyjqQ6OgawpGTDucfDM6+ZCoHu1UHi9Umj8jNm l8shNRxKfVxGK7rNthY6igz5Ut/oXGQ= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Mon, 16 Dec 2019 12:40:32 +0000 Message-Id: <20191216124032.282759-3-berrange@redhat.com> In-Reply-To: <20191216124032.282759-1-berrange@redhat.com> References: <20191216124032.282759-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [glib PATCH 2/2] po: change update rules to use weblate instead of zanata X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: Cp8SrjpAPuKAN8_-Z-oZvQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The Zanata project is dead and so Fedora is transitioning over to using Weblate for managing translations. With Weblate, languages are only created on the server when the first translation is started, so we must check to see if any new languages exist during download, so that they can be added to the local languages list. Signed-off-by: Daniel P. Berrang=C3=A9 --- po/Makefile.am | 20 +++++++++++++++++--- po/zanata.xml | 7 ------- 2 files changed, 17 insertions(+), 10 deletions(-) delete mode 100644 po/zanata.xml diff --git a/po/Makefile.am b/po/Makefile.am index 65827ac..cb72e0c 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -55,13 +55,27 @@ update-mini-po: $(POTFILE) done =20 push-pot: $(POTFILE) - zanata push --push-type=3Dsource + wlc upload --method replace -i libvirt-glib.pot libvirt-glib/application/= en =20 -pull-po: $(POTFILE) - zanata pull --create-skeletons +pull-po: $(POTFILE) check-new-langs + @for lang in $(LANGS); do \ + echo "Downloading $$lang" && \ + wlc download -o $$lang.po libvirt-glib/application/$$lang ; \ + done $(MAKE) update-mini-po $(MAKE) update-gmo =20 +check-new-langs: + @for po in `wlc ls libvirt-glib/application | \ + grep filename | grep -v 'en.po' | \ + sed -e 's/filename: //' -e 's/.po/.mini.po/'` ; \ + do \ + if ! test -f "$$po" ; \ + then \ + echo "New language $$po in weblate" && exit 1; \ + fi ; \ + done + $(POTFILE): POTFILES $(POTFILE_DEPS) $(XGETTEXT) -o $@-t $(XGETTEXT_ARGS) \ --files-from=3D$(abs_srcdir)/POTFILES diff --git a/po/zanata.xml b/po/zanata.xml deleted file mode 100644 index 042c695..0000000 --- a/po/zanata.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - https://fedora.zanata.org/ - libvirt-glib - master - gettext - --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list