Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTBz4-0003S6-0j for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jul 2017 18:58:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dTBz3-0007lQ-1w for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jul 2017 18:58:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dTBxW-00053c-3c for pgsql-hackers@postgresql.org; Thu, 06 Jul 2017 18:57:02 +0000 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dTBxO-0002TP-RZ for pgsql-hackers@postgresql.org; Thu, 06 Jul 2017 18:57:00 +0000 Received: by mail-qk0-x22b.google.com with SMTP id 16so10248813qkg.2 for ; Thu, 06 Jul 2017 11:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=AvHyWCOWCtGn6k9s/MGWdnkMABBEV2vznMUQ9y9Kgts=; b=LgVkQcgR1DrvsPoyZA9dWRoU3nC7J2SdR0ch9inRF6oS0yg8iNLHYhaxeMINM4DE2m 0nubEgeeKNqlJgWS8K1SkGb6BT2n1m5Uk4H1umsZBw8UpoC6Qa54YUwLU4yjK+PWNCnR twXIynBYy0xbFkLmJw6FJ4hPIGZTm6s/OU48bclKx4ezM1fNOqOVrvG0rs6Fxdyrjf1f YOWmJlIWzITigH8oO7+b7vB4W67byJdH0MN+lgctQ+LdeTwdMEwZghxhVzcQBRZAK4nJ WoxCP2/tarUybmmBnpCqydjgD98IEP/jFUQAfJxdVrTZJCV6qCjRV66OI4yC6lOLcTSU DQGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=AvHyWCOWCtGn6k9s/MGWdnkMABBEV2vznMUQ9y9Kgts=; b=n/Eo8sD/iQ9hTYHtdj+CNzZ6RDyPeoxc1DkcuXuLdMj4uYwKt57NTVY3Xqhsq0ulWc mqUOppgVk0+/cz9eMElcCuKjaJbV2J6jJ+naQxewiRE7TvKbJa969ODqhbpreen9AbJ+ P8leM8UyJ6fhpQPmks1kjMTIKvZwLIzbq8a1n4hW8nEHDymf1maQt3AG23B8IJUUn05s 861/QBUzebY8dxI2CYrp6S3qHRgBXCP4NwaAJW9ulpoiU1WM+S5kcpqckJrsr0kuD8ig CJrLQsPxG1TK2AAdRc4lLVuPgUvyqE4ZoC0beqiEvC5rWcT2ie4vOtoZGQV90WJkYDJ1 MdtQ== X-Gm-Message-State: AKS2vOzH2LCFrfvoXGX7pJau5Qi4vg2helmT36hNTfF5hxFsYuoLssNg hW126w58dW6XqULm X-Received: by 10.55.24.15 with SMTP id j15mr63294518qkh.40.1499367413115; Thu, 06 Jul 2017 11:56:53 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.217.209.130]) by smtp.gmail.com with ESMTPSA id f203sm717743qkb.33.2017.07.06.11.56.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 11:56:52 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0CC0D456; Thu, 6 Jul 2017 14:56:45 -0400 (-04) Date: Thu, 6 Jul 2017 14:56:45 -0400 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-hackers@postgresql.org, Carlos Chapi Subject: Re: [COMMITTERS] pgsql: pg_test_timing: Add NLS Message-ID: <20170706185645.nfgdq52qlxiexicl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Eisentraut wrote: > pg_test_timing: Add NLS > > Also straighten out use of time unit abbreviations a bit. We (well, Carlos Chapi, who's doing the translation work now) just noticed that this has a bug in this line + printf("%6s %10s %10s\n", _("< us"), _("% of total"), _("count")); _() marks the strings with the c-string flag, which means that the %-specifiers are checked by gettext, but the % in the third literal is not a printf specifier. So there's no correct way to write the translation. We need to use a different xgettext trigger there, one that doesn't set c-format, but I don't know what. Babel is now complaining: /home/nlsuser/admin/wwwtools/scm/postgresql-master/src/bin/pg_test_timing/po/es.po:73: format specifications in 'msgid' and 'msgstr' for argument 1 are not the same where the line is #: pg_test_timing.c:181 #, c-format msgid "% of total" msgstr "% del total" -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers