From patchwork Wed Nov 7 22:52:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafal Luzynski X-Patchwork-Id: 994558 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-97046-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lingonborough.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="iq7AYnIz"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42r1tY4Gmwz9s9J for ; Thu, 8 Nov 2018 09:53:57 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; q= dns; s=default; b=AHs6HeVi/MZntJtndEyZRrAPgkJiOWrtzpXAt0xim5ePWz oHfdfiQPXueKB4coxt9kCzsjbdPz2CfTekHE2KQECtQ1IiMsuLoUsc1mGqxxz5fA 7J0Z3GLSKpAi0uZX8S4G932y4R/6SZMgj47ZQEdMRgMrUrNzwIgQQ0QQgA6xI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= default; bh=U1GS+aSrhxaj5yNGQ5ahJj4iJfw=; b=iq7AYnIzHH25tCkAZwkN 2QdNY0U7sbvY7IVUt0g0OBQfQLsEsbzpKedMWQ+J1++J/cFpslM6/S7l680lVYNE M37Cq842pwQ0y0MQpCg+bps8X5D7rzhQ8mFkDkakGOFTHYf3ejQCksrpakMpLnOT cVFdsJZJCyZEcrdoMBE/E7E= Received: (qmail 104083 invoked by alias); 7 Nov 2018 22:53:51 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 103780 invoked by uid 89); 7 Nov 2018 22:53:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.5 required=5.0 tests=AWL, BAYES_40, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*x:Mailer, H*UA:Mailer, wherever, articles X-HELO: shared-ano163.rev.nazwa.pl X-Spam-Score: 0 Date: Wed, 7 Nov 2018 23:52:15 +0100 (CET) From: Rafal Luzynski To: libc-alpha@sourceware.org Message-ID: <516986310.253327.1541631135195@poczta.nazwa.pl> In-Reply-To: <1137258056.253288.1541630672417@poczta.nazwa.pl> References: <1137258056.253288.1541630672417@poczta.nazwa.pl> Subject: [PATCH 1/2] sq_AL: Use the correct date and time formats (bug 10496, 23724). MIME-Version: 1.0 Albanian locale uses the 12-hour clock but some time formats did not use any AM/PM indicator making the time ambiguous. This commit adds "%p" wherever it was missing. It also sets the correct date format because the old "%Y-%b-%d" produced rather weird results like "2018-Sht-28". All time formats come from CLDR but as few changes have been introduced by this commit as possible. Some articles from MSDN and other available online sources have been also taken into account. [BZ #10496] [BZ #23724] * localedata/locales/sq_AL (t_fmt): Set to "%l:%M:%S.%p %Z". (t_fmt_ampm): Likewise. (d_t_fmt): Set to "%a %-d %b %Y %l:%M:%S.%p". (date_fmt): Add, set to "%a %-d %b %Y %l:%M:%S.%p %Z". (d_fmt): Set to "%-d.%-m.%y". --- localedata/locales/sq_AL | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/localedata/locales/sq_AL b/localedata/locales/sq_AL index 9cec37a..a90251f 100644 --- a/localedata/locales/sq_AL +++ b/localedata/locales/sq_AL @@ -303,16 +303,19 @@ mon "janar";/ am_pm "PD";"MD" % % Appropriate date and time representation -d_t_fmt "%Y-%b-%d %I.%M.%S.%p %Z" +d_t_fmt "%a %-d %b %Y %l:%M:%S.%p" +% +% Appropriate date representation for date(1) +date_fmt "%a %-d %b %Y %l:%M:%S.%p %Z" % % Appropriate date representation -d_fmt "%Y-%b-%d" +d_fmt "%-d.%-m.%y" % % Appropriate time representation -t_fmt "%I.%M.%S. %Z" +t_fmt "%l:%M:%S.%p %Z" % % Appropriate 12 h time representation (%r) -t_fmt_ampm "%I.%M.%S.%p %Z" +t_fmt_ampm "%l:%M:%S.%p %Z" week 7;19971130;1 first_weekday 2 END LC_TIME