From patchwork Sat Dec 22 00:53:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafal Luzynski X-Patchwork-Id: 1017754 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-98742-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="plgwFHn7"; 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 43M6Sd4Fglz9sCQ for ; Sat, 22 Dec 2018 11:53:53 +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=j14iL7D5qYgnDG6upVIdy+b5gkS4JEPI+z2NiMNn+p63gT fVIMOES5QIzH0bYW6u1sXmD2Nnvi4PzGk5iw73J53JT0jADPZCP4cxHMaqUNGB7Y xEk2oOdCJ1RGf/donveSgRCtjJ2ECOmxlRx2wzQYHLHij169KOge3SzoHadOI= 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=0mRURo65uLFGK2mwFyNpetFES64=; b=plgwFHn7Swx1nl0bIyw9 rbzy0DqHt7uW4NVCXSVM0AnQygmn+hjxDfw4tXWFheMTjrO5ZwlXiFeIRwicFeIW cGlXTii9MSxEb9/GbfrDHVdb6Ikwu+z3WPZX6q54dc13RPLvD7pwRyGhWOJpScf/ KPw6DA2AAlTIXIxbFZ1qc8Y= Received: (qmail 95413 invoked by alias); 22 Dec 2018 00:53:47 -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 95394 invoked by uid 89); 22 Dec 2018 00:53:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.0 required=5.0 tests=BAYES_20, 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, Appropriate, 10496 X-HELO: shared-ano163.rev.nazwa.pl X-Spam-Score: -1 Date: Sat, 22 Dec 2018 01:53:38 +0100 (CET) From: Rafal Luzynski To: libc-alpha@sourceware.org Message-ID: <1912966131.45592.1545440018578@poczta.nazwa.pl> In-Reply-To: <160383412.45589.1545439891665@poczta.nazwa.pl> References: <160383412.45589.1545439891665@poczta.nazwa.pl> Subject: [PATCH v2 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 "%I:%M:%S.%p %Z". (t_fmt_ampm): Likewise. (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p". (date_fmt): Add, set to "%a %-d %b %Y %I:%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..c96d23e 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 %I:%M:%S.%p" +% +% Appropriate date and time representation for date(1) +date_fmt "%a %-d %b %Y %I:%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 "%I:%M:%S.%p %Z" % % Appropriate 12 h time representation (%r) -t_fmt_ampm "%I.%M.%S.%p %Z" +t_fmt_ampm "%I:%M:%S.%p %Z" week 7;19971130;1 first_weekday 2 END LC_TIME